|
zeiuszeppo Novice
Joined: 22 Nov 2001 Posts: 48 Location: Italy
|
Posted: 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 |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
zeiuszeppo Novice
Joined: 22 Nov 2001 Posts: 48 Location: Italy
|
Posted: 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 |
|
|
|
|
|