|
Haldrik Wanderer
Joined: 03 Sep 2007 Posts: 88
|
Posted: 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] |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
|
Haldrik Wanderer
Joined: 03 Sep 2007 Posts: 88
|
Posted: 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. |
|
|
|
|
|