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
bair
Beginner


Joined: 31 Oct 2006
Posts: 22

PostPosted: Thu Jun 14, 2007 7:22 pm   

Unmatched braces?
 
Pattern: @fleename

Commands:

Code:
@fleedir
if (@chasetype==0) {
c curse @fleename
stance grizzlie
}
if (@chasetype==1) {
mm @fleename
stance grizzlie
}
#t- flee


Error compiling script:
unmatched braces

I don't get it.


Tried doing it like this as well
Code:
@fleedir
if (@chasetype=0) {c curse @fleename;stance grizzlie} {mm @fleename;stance grizzlie}
#t- flee


Says the error is right after @fleename
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Thu Jun 14, 2007 7:46 pm   
 
You need to use a # before the if to make it a command #if
Also you need to use the #send or #execute command on variables in Cmud to send them to the mud.

Code:
#exec @fleedir
#if (@chasetype==0) {
c curse @fleename
stance grizzlie
}
#if (@chasetype==1) {
mm @fleename
stance grizzlie
}
#t- flee
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
bair
Beginner


Joined: 31 Oct 2006
Posts: 22

PostPosted: Thu Jun 14, 2007 8:01 pm   
 
oh wow..cant believe i didnt realize that..too much java, thanks.
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