Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Rathern
Newbie


Joined: 02 Apr 2004
Posts: 5
Location: New Zealand

PostPosted: 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?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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}
Reply with quote
Rathern
Newbie


Joined: 02 Apr 2004
Posts: 5
Location: New Zealand

PostPosted: Sat Apr 03, 2004 6:24 am   
 
Thanks, that works great.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net