|
Rathern Newbie
Joined: 02 Apr 2004 Posts: 5 Location: New Zealand
|
Posted: Sat Apr 03, 2004 3:25 am
Capture Next Line after trigger |
I have search for 'capture the next line' etc and I have not found exaclty what I am after.
Text from Mud:
You utter the syllables, 'gqflz'.
You send your vision outward.
A Large Picnic Area
Trigger will be on:
You send your vision outward.
And I want to grab the room name which is on the next line.
A Large Picnic Area
So far I have this:
#TRIGGER {You send your vision outward} {#var room_string %trim( %line)
We have
%line the last line received from the MUD
%line2 the line before the last line received
%line3 the line before the line before the last line received
What do you use for next line? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Apr 03, 2004 4:39 am |
I'd just use a multistate trigger.
#TR {You send your vision outward}
#COND {(*)} {#VAR room_string %trim( "%1")} {Looplines|Param=1} |
|
|
|
Rathern Newbie
Joined: 02 Apr 2004 Posts: 5 Location: New Zealand
|
Posted: Sat Apr 03, 2004 6:24 am |
Thanks, that works great.
|
|
|
|
|
|