Defup alias

by Merik

Back to Mechanic's Corner.

Merik2009-10-07 19:50:32
So I'm trying to make an alias that does all my defenses at one time if I hit it. However, about half of them all burn balance/EQ. How would I go about making it so it does all of them all the way through?

The one way I can think of right now is just putting up a variable for when I hit the alias, then trigger the lines of the defs in order to #temp the next def, but I'm hoping there's an easier way.
Lehki2009-10-07 20:01:33
QUOTE (Merik @ Oct 7 2009, 03:50 PM) <{POST_SNAPBACK}>
So I'm trying to make an alias that does all my defenses at one time if I hit it. However, about half of them all burn balance/EQ. How would I go about making it so it does all of them all the way through?

The one way I can think of right now is just putting up a variable for when I hit the alias, then trigger the lines of the defs in order to #temp the next def, but I'm hoping there's an easier way.

That's one way to do it.

If you're on zMUD, you could give a trigger different states, every time it fires it goes to the next state. Add a state for each eq/balance using def that fires off the recover line.

Could also put the commands for each def in a variable list, and have just one trigger that pops one off the list and does it until the list is empty.

The variable list is probably the cleanest looking one, imo.
Zallafar2009-10-07 22:03:21
I have the needed balances associated with each command, so I just queue up all the defs at once and let the queueing system figure out which ones it can do in what order as eq, balance, potion balance, herb balance, etc. comes available.