|
DLite Newbie
Joined: 27 Jun 2012 Posts: 9
|
Posted: Tue Dec 15, 2015 7:02 pm
A simple if/else trigger |
I did a search, but I couldn't come up with anything that worked.
I'm sure it's very straightforward for those who know zmud. I want to make a simple blacklist trigger:
^(%w) tells you 'follow'
#var newleader %1
#if (@newleader==@blacklisted) {nothing} else {follow %1}
I've added certain leaders to a variable #blacklisted. But how is the if/else to be set up?
Cheers,
D. |
|
|
|
Medakan Novice
Joined: 15 Dec 2015 Posts: 41 Location: Seattle
|
Posted: Wed Dec 16, 2015 2:11 am |
I think...
#IF (%ismember(@newleader,@blacklisted)) {#noop} {follow %1}
Taziar Medakan @ WoTmud |
|
|
|
Medakan Novice
Joined: 15 Dec 2015 Posts: 41 Location: Seattle
|
Posted: Wed Dec 16, 2015 5:34 pm |
Or instead of the #noop you could do something like:
#ECHO {Denied! @newleader is blacklisted!}
Taziar Medakan @ WoTmud |
|
_________________ Taziar Medakan @ WoTMUD |
|
|
|
|
|