|
MasterG Newbie
Joined: 23 May 2005 Posts: 2
|
Posted: Mon May 23, 2005 9:00 pm
Opposite of onwalkend |
For a Script i need the opposite of onwalkend, a thing like onwalkbegin. The MUD features a mode called "ultrakurz" (translated: extremely short) which forces no output while walking. I want to use it in my map-based speedwalks, because it scrolls at the moment. So everytime i double-click on a room in the map, it should first send "ultrakurz", then the walk and then with onwalkend "lang" (long mode).
MasterG |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon May 23, 2005 10:13 pm |
You could just use an alias. That's all onwalkend is.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
MasterG Newbie
Joined: 23 May 2005 Posts: 2
|
Posted: Mon May 23, 2005 10:19 pm |
I want to double-click on the map to speedwalk somewhere. I can't use an Alias there.
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue May 24, 2005 9:47 am |
The is no actual onwalkbegin. What you have to do is use an #ONINPUT trigger to catch sending of directions. Then check the state of %inwalk, or possibly %destroom with a further calculation for whether it is a single step away. Then use a variable as a flag for your "ultrkurz" state. Once you detect that you are doing a speedwalk and not in the ultrakurz mode use #SEND to set yourself into that mode and set your flag. Onwalkend would then send "lang" and clear the flag.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|