|
Katoki Newbie
Joined: 20 Jul 2013 Posts: 7
|
Posted: Wed Jul 15, 2020 4:38 pm
trying to get this ALARM/IF command to work properly |
I have a trigger set to fire off of
"*shakes off the dream."
#ALARM +%random(4,7) {#if (@targ != Nobody & @dsend=on) {dsend}}
I'm trying to get it to compile the IF command when the ALARM goes off.
it sets the alarm perfectly at a random second between 4 and 7 and fires but it doesnt compile the IF command, instead this is what is sent via the script debugger
[+6-> #if (@targ != Nobody & @dsend=on) {dsend}]
what i am i missing?
Thank you. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Fri Jul 17, 2020 2:00 pm |
#ALARM +%random(4,7) {#if ((@targ != Nobody) && (@dsend=on)) {dsend}}
And requires two &s, also, better to encapsulate each subexpression. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|
|
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
|
|