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
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Fri Sep 27, 2002 7:00 pm   

sim a run in the mapper
 
Hi guys.
I'd like to write an alias to sim a run to let zmud automapper follow correctly my moves.
run w -> automapper "understands" what I mean and bring me to the last west location
Has someone done it? Or can help me?

zeius
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Oct 02, 2002 1:32 pm   
 
Largely it would depend on what your mud output looks like.

Do you need it to "run w" till it can no longer go west or is it just a few rooms west then it stops?

Do you get a statement like "You run west." then another "You run west." for everyroom? See help on #MOVE
quote:

#MOVE north
forces the mapper to move one room to the north



Ton Diening
Reply with quote
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Wed Oct 02, 2002 1:37 pm   
 
i solved with this trigger on imput:

pattern:
run (?)

value:
#MATH MovCon 0
#UNTIL (%roomlink( %roomnum, %1)<=0 AND %roomlink( %roomnum, %1)!=-2) {
#MOVE %1
#MATH MovCon @MovCon+1
#IF (@MovCon=25) {#AB 1}
}

This one has a check for a max running locations (25, can change it) to not lock processor computation.
The !=-2 is for two room linking two different zones otherwise zmud stop the moving at the last
first zone location.
The trigger runs well
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