Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
cazador
Apprentice


Joined: 08 Dec 2005
Posts: 108

PostPosted: Sun Jan 13, 2008 3:41 am   

speedwalk event
 
How do I create an event that is called when I begin to speed walk? What I basically want to do is to have the event enable a class that only works while I am speed walking.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sun Jan 13, 2008 6:26 am   
 
Short answer: you don't. It'll probably be added in the future.

Long answer:

#oninput {^{n|e|s|w|nw|sw|ne|se|u|d}$} {#if (!@WalkInProgress AND %walkactive()) {WalkInProgress=1;do whatever}}
#event OnWalkEnd {WalkInProgress=0}

You might need (or want) to test the value of %destroom() as well, or instead of %walkactive().
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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