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
yeedoo
Beginner


Joined: 13 Dec 2007
Posts: 16

PostPosted: Thu Dec 13, 2007 8:18 am   

how to tell ZMUD that the command "#walk @room_num" has finished ?
 
in using mapper,i want to do something after the #walk finished,i don't konw how to tell ZMUD that the "#walk @room_num" has finished.
for exemple
if i want to show a message after i enter the room
simply i write
#walk 16;#show entered the room
but the #show command always work before i enter the room

so if i want to make a trigger using the message after enter the room,it always works at a wrong time.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Dec 13, 2007 1:36 pm   
 
You are looking for the special alias onwalkend. The mapper call this alias when it completes the speed walk.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
yeedoo
Beginner


Joined: 13 Dec 2007
Posts: 16

PostPosted: Fri Dec 14, 2007 2:49 am   
 
if i am in #1 room
#walk 20;#show i have entered 20th room
The command #show works indeed after #walk 20.
in fact i need sever seconds to through the path.but the #show command display the message before i realy arrive the room.

maybe like this?
#walk 20;#wa 1000;#show i have entered 20th room
but if there are so many rooms i want to check ,it will cost a long time to wait

Quote:
You are looking for the special alias onwalkend. The mapper call this alias when it completes the speed walk.


what about the special alias? and how could do that? could you show more ditails?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Dec 14, 2007 3:07 am   
 
Enter this at at the command line
Code:
#CLASS {System|AutoMapperAll}
#ALIAS onwalkend {#EXEC {@WalkEnd};WalkEnd=""}
#VAR WalkEnd {} {}
#CLASS 0
Now your example walks become
#walk 16;WalkEnd="#SHOW entered the room"
#walk 20;WalkEnd="#SHOW i have entered 20th room"


I made it slightly more complex to give an additional protection against doing the commands a second time.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
yeedoo
Beginner


Joined: 13 Dec 2007
Posts: 16

PostPosted: Fri Dec 14, 2007 3:46 am   
 
Quote:

Code:
#CLASS {System|AutoMapperAll}
#ALIAS onwalkend {#EXEC {@WalkEnd};WalkEnd=""}
#VAR WalkEnd {} {}
#CLASS 0

one question ,in zmud 5.55 The mapper could call this alias automatically after enter the room?
Quote:

#walk 16;WalkEnd="#SHOW entered the room"

so shall i add this
Code:
#walk 16;WalkEnd="#SHOW entered the room" ;onwalkend


but the message is still display beforce i really entered the room[/code]
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Dec 14, 2007 3:55 am   
 
Oh! You have to mention a version right off the bat if you are not using the current version, otherwise we are all likely will suggest things that didn't get added to zMud until 2 years after the version you are using.

Since you are using 5.55 I can't really help you solve this problem short of an extremely complex script. I would suggest upgrading at least to the current 7.21 which has the feature I have been suggesting. 7.21 is still supported in these forums, but the zMud product will not be developed and further. It may be in your best interests to move straight to the latest public version of CMud.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
yeedoo
Beginner


Joined: 13 Dec 2007
Posts: 16

PostPosted: Fri Dec 14, 2007 4:51 am   
 
sorry for not mention the version no.
thank you for your help.
by the way where could i find a reference about these problem? if i still want to use zmud 5.55
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Dec 14, 2007 2:25 pm   
 
The short answer is nowhere. The help files have all been long updated and forum threads are hard to come by. You really should upgrade to the latest version, or to CMUD.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
yeedoo
Beginner


Joined: 13 Dec 2007
Posts: 16

PostPosted: Sat Dec 15, 2007 12:43 am   
 
oh.it seemed like i went back from the mars Wink
as you told me,i should update my vision now to 7.21 .since i was more familiar with ZMUD than CMUD
Reply with quote
Leyline
Wanderer


Joined: 03 Feb 2007
Posts: 64

PostPosted: Mon Dec 17, 2007 11:21 pm   
 
Yeah, just upgrade to zmud 7.21
be sure to keep a backup of your old 5.55
I had some character import problems going to 7.21 without goign thru 6.x first.

But once I ironed it all out, 7.21 has been good, new functions and features you will appreciate, the mapper auto config works better too.
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