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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
chris_c300
Newbie


Joined: 19 Dec 2008
Posts: 7

PostPosted: Mon Aug 16, 2010 4:46 am   

Old Triggers not working in 3.22a
 
After I upgraded to 3.22a, some of my old triggers suddenly stopped working. I noticed that they all have the %if function in the script and the error is always the same. Here is a part of the script in one of the triggers that are not working.

Code:

#print %if(@focus_ok==1,%ansi(11)F,%ansi(3,blink)*)


And the error message when I use the check syntax function is this:
Quote:

extra ) parenthesis at row 8 col 63


I can't seem to find the extra parentheses
Sad

Any suggestions? Thanks.
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Mon Aug 16, 2010 8:32 am   
 
%if was changed a bit, this should work:

Code:
#print %if(@focus_ok==1,{%ansi(11)F}, {%ansi(3,blink)*})
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Aug 16, 2010 4:37 pm   
 
Or, properly enclose string values in " quotes like you should. Like this:
Code:
#print %if(@focus_ok==1,%ansi(11)"F",%ansi(3,blink)"*")

The " around the F is optional, but the " around * is required for CMUD to treat it like a string value.

Or, the {} around the entire string like GeneralStonewall mentions should work too.
Reply with quote
chris_c300
Newbie


Joined: 19 Dec 2008
Posts: 7

PostPosted: Wed Aug 18, 2010 4:11 am   
 
Ah I see! Thanks! Very Happy
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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