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
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Mar 23, 2002 7:39 pm   

Keep track the auto mapper
 
Definately doable. You just need to tell the
automapper that you have moved.

quote:

Syntax: #MO direction

Move in the specified direction on the mapper.



eg
#TRIGGER {^You drive your cart (%w).} {#MOVE %1}

I personnaly like triggering on mud output
as then I know the mud has moved/is moving me.

TonDiening
Beta Upgrading to 6.26
Reply with quote
kognesty
Newbie


Joined: 08 Jan 2001
Posts: 8
Location: USA

PostPosted: Wed Mar 27, 2002 9:48 pm   
 
As I have experienced, and this might not be true for everyone, the #MOVE command is used during mapping and fails miserably when in follow mode. However, this might be unique to my mud. So it might work best to trigger on a successful move, i.e. trigger after the command and catch the automapper up to your movements. This can be done by setting up two triggers, one to capture your movement and one to tell the automapper you've moved and where. Setup an on command trigger that saves your direction to a variable then setup a pattern matching trigger to your exits line (if you have one).
You would get something like this:
push cart %w - pattern
#var dir %1 - action
push cart %1 - action
[Exits: (*)] - pattern
#MOVE @dir - action
#OK - action

Again the first suggestion made might work flawlessly but this is an alternative incase your #move command is behaving poorly.
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