Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
voltage
Newbie


Joined: 04 Nov 2001
Posts: 4
Location: Australia

PostPosted: 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
Reply with quote
Acaila
Apprentice


Joined: 30 Aug 2001
Posts: 187
Location: Netherlands

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net