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
ssulli1
Newbie


Joined: 21 Oct 2002
Posts: 2

PostPosted: Mon Oct 21, 2002 7:25 pm   

Help with setting triggers to toggle on and off
 
I would like to create a process using Zmud that would allow the ability to turn on and off specific triggers. This would entail mostly spells(ie...c armor) and would use a command like spellson or spellsoff to toggle on/off the spells that I have triggers for. I already have triggers to automatically cast the spells.
pattern: You feel less armored.
value: #CW cyan
c armor
Would like to keep the color part but be able to toggle on and off the "c armor".
Any help would be appreciated.
Reply with quote
AzCowboy
Adept


Joined: 09 Nov 2000
Posts: 222
Location: USA

PostPosted: Mon Oct 21, 2002 7:54 pm   
 
I would use a variable, and a #IF statement in the trigger value to detect if it should cast the spell or not...

pattern: You feel less armored
#CW Cyan

#IF (@spellson) {c armor}


This would only cast the spell if the variable spellson was not 0...

use
#var spellson 1
to turn it on, and
#var spellson 0
to turn it off. (this could be put into aliases, or my personal favorite, toggle buttons...)
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