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


Joined: 30 Nov 2005
Posts: 12
Location: fwefas

PostPosted: Wed Nov 30, 2005 8:29 am   

Can anyone explain more about "onwalkend"?
 
I search through help files and noticed that there's an auto-excute alias "onwalkend". I assigned some value to that alias, like:
#al onwalkend {'say onwalkend works!}
However, in 99% cases it doesn't appear. No matter by clicking destination in the map(slow mode), or by command #walk @roomnum, or #sl @path.
Only one time, it works when I'm testing a portal. However it doesn't appear again when I repeat.
Weird? Interesting?
Can anyone help about this? This alias would be helpful a lot when making robot...
_________________
Hi, this is layman
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Nov 30, 2005 9:25 am   
 
Sadly it was working for many versions and then became bugged and hasn't been fixed yet. You can stimulate it through an odd use of onroomenter.

#ALIAS onroomenter {#IF (%inwalk) {#IF (%destroom=%roomnum) {onwalkend}}}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
layman8
Beginner


Joined: 30 Nov 2005
Posts: 12
Location: fwefas

PostPosted: Wed Nov 30, 2005 3:20 pm   
 
Good idea...I tried this and it works.

#ALIAS onroomenter {#IF (%inwalk) {} {#IF (@destroom=%roomnum) {onwalkend}}}

when walk end %inwalk return false, so I changed it to the false condition;
and %destroom return -1. So destroomnum need be previously stored.
_________________
Hi, this is layman
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Dec 01, 2005 12:50 am   
 
I am glad you figured it out. I thought all those states were updated after onroomenter finished for the final room. I will try to keep in mind that they are before the last onroomenter for future questions.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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