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
MasterG
Newbie


Joined: 23 May 2005
Posts: 2

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
MasterG
Newbie


Joined: 23 May 2005
Posts: 2

PostPosted: 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.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
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