|
acaykath Wanderer
Joined: 03 Aug 2005 Posts: 84
|
Posted: Sun Jan 07, 2007 2:03 am
Trigger Not Compiling, what am I doing Wrong? |
Code: |
#SWITCH
(@vanity = 1) {
#VAR vanitymob {ginger house}
c 'carnal reach' vanitymob
#MATH vanity @vanity + 1 }
(@vanity = 2) {
#VAR vanitymob {buff ginger}
c 'carnal reach' vanitymob
#MATH vanity @vanity + 1 }
(@vanity = 3) {
#VAR vanitymob {suicidal}
c 'carnal reach' vanitymob
#MATH vanity @vanity + 1 }
(1) {
#VAR vanity {1}
.2wne
sell vanity } |
As far as I can tell, I've made no mistakes, yet it does not compile. Any help would be appreciated. Thanks in advance. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Jan 07, 2007 2:08 am |
I'm guessing it's the first condition not being on the same line as the #SWITCH command. Another thing that might be suspect is the closing braces not being on their own line.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Jan 07, 2007 3:44 am |
change the first line that says #SWITCH to #SWITCH 1 as a workaround
|
|
|
|
|
|