 |
voltage Newbie
Joined: 04 Nov 2001 Posts: 4 Location: Australia
|
Posted: Wed Nov 28, 2001 11:18 am
simple newby brewer question |
i set up a variable called 'healsbrewed'
and set a math trigger so every time i brew a heal (get heal brewed successfully message) the variable goes up 1. this is an easy question i think, but how can i set a quit trigger to kick in when the variable reaches a certain amount?
eg - when healsbrewed = 500
south;save;quit
thanks, voltage |
|
|
|
 |
Acaila Apprentice
Joined: 30 Aug 2001 Posts: 187 Location: Netherlands
|
Posted: Wed Nov 28, 2001 12:09 pm |
Just add an #IF command after your #MATH like this:
#TRIGGER {Brewed succesfully message} {#MATH HealsBrewed {@HealsBrewed + 1};#IF (@Healsbrewed = 500) {south;save;quit}}
Btw, to just add to numeric variables you can also use #ADD.
Acaila |
|
|
|
 |
|
|
|