|
bair Beginner
Joined: 31 Oct 2006 Posts: 22
|
Posted: 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 |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: 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 |
|
|
|
bair Beginner
Joined: 31 Oct 2006 Posts: 22
|
Posted: Thu Jun 14, 2007 8:01 pm |
oh wow..cant believe i didnt realize that..too much java, thanks.
|
|
|
|
|
|