Unknown2006-08-16 17:21:50
Hello, I'm basically new here and have very little idea how to write scripts, etc. Now, I read a little about the #alarm command in another thread. However, it didn't quite...register with me. Would someone mind explaining how I should do something like this:
You have slain a young rat.
#alarm ####
get rat
I can get the #wait command to work. But, not the #alarm.
Please and thanks!
You have slain a young rat.
#alarm ####
get rat
I can get the #wait command to work. But, not the #alarm.
Please and thanks!
Taika2006-08-16 17:26:01
The alarm command is this:
#ALARM
#ALARM
Unknown2006-08-16 17:34:47
QUOTE(Taika @ Aug 16 2006, 12:26 PM) 320139
The alarm command is this:
#ALARM
Thank you. How would I create one that would not delete itself after one use though?
Taika2006-08-16 17:44:27
Well, I think what you want is what I put... This way, the TRIGGER will not delete itself, but the alarm will only go off once for each time the trigger fires.
If you don't put the +, the alarm will fire every five seconds (which is what I meant by it won't delete itself).
If you don't put the +, the alarm will fire every five seconds (which is what I meant by it won't delete itself).
Unknown2006-08-16 17:49:39
Ooo, I feel like an idiot. Thanks for the help!
Unknown2006-08-16 19:20:01
Better way.
#Trigger {^%dh, %dm, %dp, %den, %dw (*)} {#IF (%pos(e, %1) and %pos(b, %1)) {#forall @todo {%i};todo=""}} "" {nocr|prompt}
Then if there is anything you need to do when you recover balance, you make a trigger for it like...
#Trigger {You have slain a rat, whatever this looks like} {todo=%additem(get rat, @todo)}
Or some gold drops
#Trigger {sovereigns spill from the corpse.} {todo=%additem(get gold, @todo)}
To make it easier, you could even make an alias.
#Alias addtodo {todo=%additem( %1, @todo)}
That way whenever you make a new trigger you just put in ADDTODO whatever, and it'll do it next time you have balance and equilibrium.
You could also add on to that prompt trigger if you wanted to capture you mana/health/willpower/endurance values, queue up your healing, put in an autosipper, etc. If you use an alarm, you will often find yourself waiting a few extra seconds for your trigger to kick in and pick it up, or trying to early when you don't have equilibrium/balance yet.
#Trigger {^%dh, %dm, %dp, %den, %dw (*)} {#IF (%pos(e, %1) and %pos(b, %1)) {#forall @todo {%i};todo=""}} "" {nocr|prompt}
Then if there is anything you need to do when you recover balance, you make a trigger for it like...
#Trigger {You have slain a rat, whatever this looks like} {todo=%additem(get rat, @todo)}
Or some gold drops
#Trigger {sovereigns spill from the corpse.} {todo=%additem(get gold, @todo)}
To make it easier, you could even make an alias.
#Alias addtodo {todo=%additem( %1, @todo)}
That way whenever you make a new trigger you just put in ADDTODO whatever, and it'll do it next time you have balance and equilibrium.
You could also add on to that prompt trigger if you wanted to capture you mana/health/willpower/endurance values, queue up your healing, put in an autosipper, etc. If you use an alarm, you will often find yourself waiting a few extra seconds for your trigger to kick in and pick it up, or trying to early when you don't have equilibrium/balance yet.