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
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Sun Mar 21, 2004 10:01 am   

Mapper following trigger
 
I have a bunch of triggers set up atm to make follow my movement on the map when I'm following someone else. They all look similar to:

#TR {(%w) leaves (%w).$You follow (%w)} {#move %2}

There are rooms in the mud I play that you cannot enter while riding a horse, and it gives you a message such as this:

You can't ride in there.

Which I counteract by the trigger:

#TR {You can't ride in there.} {#NODIR}

Unfortunately, when the two collide, i have problems. Say I'm riding a horse, and the person i'm following is not. Something like this will happen:


Whoever leaves east.
You follow Whoever.

You can't ride in there.

Since the first trigger has already moved my place on the map, the second does no good in stopping the movement of the marker. How could i counteract this?
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Sun Mar 21, 2004 12:59 pm   
 
Try this:

#TR {(%w) leaves (%w).$You follow (%w)} {#move %2}
#cond {You can't ride in there.} {#move %pathreverse(%copy(%t2,1,1))} {within|param=2}
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Mon Mar 22, 2004 7:03 am   
 
Thnx, worked 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