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
acaykath
Wanderer


Joined: 03 Aug 2005
Posts: 84

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Jan 07, 2007 3:44 am   
 
change the first line that says #SWITCH to #SWITCH 1 as a workaround
_________________
Zmud Support Library
Zmud Knowledge Base
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