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


Joined: 09 Nov 2009
Posts: 4

PostPosted: Mon Nov 16, 2009 8:53 am   

trying to figure out how to convert a trigger...
 
Hello, this is a zmud trigger that I'm trying to get to work on cmud. I'm not really sure what the compatibility report is telling me to do.... here's the trigger:
Pattern: (%d)$^(%w)
Value: #if (@checkingscript=1) {%2=%1}

the error it gives me in the report:
Does not Compile: Unmatched braces at row 0 col 27

what is unmatched? I'm just not getting it to work
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Nov 16, 2009 3:00 pm   
 
I think the message is misleading. The problem is that the compiler is confused by your expression "%2=%1". I don't think this will work in Cmud. You can't start a command line with %2, or any other function or built-in variable starting with %. The solution would be to replace this with "#var %2 %1"
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