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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Katoki
Newbie


Joined: 20 Jul 2013
Posts: 5

PostPosted: 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 &amp @dsend=on) {dsend}]

what i am i missing?

Thank you.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4238
Location: Pensacola, FL, USA

PostPosted: 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: Shalimar#3679
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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