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
Haldrik
Wanderer


Joined: 03 Sep 2007
Posts: 88

PostPosted: Wed Sep 26, 2007 11:55 am   

How to turn off an alias in the middle of execution?
 
Hey guys, I'm trying to figure out a way to turn this alias off in the middle of it, i.e. when @death = 1. Right now if it equals 1 it basically does nothing until the Alarm timers run out, where it then echos. Any ideas ?:)

Thanks.

Code:

death = 0
feint left %1
#Alarm +1.5 {
  #if {@death = 0} {draw left %1}
  #alarm +4.5 {
    #if {@death = 0} {sweep left %1}
    #Alarm +4.5 {
      #if {@death = 0} {slice right %1}
      #Alarm +6.5 {
        #if {@death = 0} {
          chop right %1
          #Alarm +6.5 {#echo Attack RT Done}
          }
        }
      }
    }
  }
[/code]
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Wed Sep 26, 2007 12:18 pm   
 
Try the #abort command. If you give "1" as the flag, it should abort the whole alias, and because your alarms are nested, they won't be created.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Haldrik
Wanderer


Joined: 03 Sep 2007
Posts: 88

PostPosted: Wed Sep 26, 2007 9:00 pm   
 
Thank you. Its perfect :P

I really did try looking for this command!

I tried #Stop, #end.... yea that was all i could think of :P


#Abort is exactly what I need.
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