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
Solaras
Wanderer


Joined: 11 Mar 2002
Posts: 93

PostPosted: Tue Sep 02, 2003 1:39 pm   

Follow trigger
 
I am trying to make a trigger to update my map when following.
this is the mud output:

You follow Jolly Green Giant, The Tall Guy west to A Forest

I tried to make the trigger as follows

You follow * (%t) to *

and the command

#MOVE %t

that didnt work and my pattern testing comes up with no match

anyone have a solution?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Sep 02, 2003 2:16 pm   
 
A little testing will reveal that %t matches single-letter directions. Since your output is full words, use %w instead.

Pattern:
You follow * (%w) to
Command:
#MOVE %1
Reply with quote
Droid
Novice


Joined: 28 Aug 2003
Posts: 49

PostPosted: Tue Sep 02, 2003 2:39 pm   
 
You follow * %3 to *
#MOVE %3

try that.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Sep 02, 2003 4:25 pm   
 
No, don't use Droid's example. Sorry, Droid but we discourage all use of %1..%n inside a trigger's pattern. I believe that this was initially supported for TinTin compatibility, but right now it is deprecated. Using that syntax inside a trigger's pattern is not technically correct and results might be unexpected.
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