 |
clash Newbie
Joined: 14 Dec 2001 Posts: 3
|
Posted: Sun Dec 16, 2001 7:30 pm
Cancel a loop with a trigger. |
Okay, here's what I want to do. I want to loop a command over and over no specific number of times, until trigger turns it off.
So let's say, for an example I triggered "You are Thirsty" to "Drink Water" over and over and over until the the Mud sends me "You are no longer thirsty" and it would turn the loop off...(just and example that's not what I'm going to use it for) I don't even know where to start on this one, because the #loop command always requires a number.
Someone told me that this is impossible to do with JUST Zmudscript, but I'm a firm believer that anything is possible ;). Anyways if you can point me in the right direction I'm sure I can figure it out. |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Sun Dec 16, 2001 7:45 pm |
#VAR TryingToDrink 0
#ALIAS alDrink {TryingToDrink=1;~drink water;#ALARM {+1} {#IF (TryingToDrink) {alDrink}}}
#TRIGGER {^You are Thirsty} {alDrink}
#TRIGGER {^You are no longer thirsty} {TryingToDrink=0}
You can do it other ways but they tend to have bad effects, the least of which is you spam your mud and it disconnects you. |
|
|
 |
iljhar GURU

Joined: 10 Oct 2000 Posts: 1116 Location: USA
|
Posted: Sun Dec 16, 2001 8:45 pm |
Just adding something to Vijilante's post, (s)he's missing a @ in there:
#ALIAS alDrink {TryingToDrink=1;~drink water;#ALARM {+1} {#IF (@TryingToDrink) {alDrink}}}
Iljhar |
|
|
 |
|
|