|
layman8 Beginner
Joined: 30 Nov 2005 Posts: 12 Location: fwefas
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
layman8 Beginner
Joined: 30 Nov 2005 Posts: 12 Location: fwefas
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
|
|