Jump to content
  • 0
Sign in to follow this  
jupeto

Error with switch script command

Question

switch (jobname(Class)) {
    case "Acolyte":
        mes "I'm an Acolyte";
        break;
    case "Thief":
        mes "I'm a Thief";
        break;
    case "Merchant":
        mes "I'm a Merchant";
        break;
}

 

 

 Above example produces
 
script error in file
parse syntax: expect ':'
 
(pointed in the double quotation mark after the case in `case "Acolyte"`)
 
 
Please enlighten me... Thanks
 
EDIT: fixed by just using the Class id for each job, thanks
Edited by jupeto

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

yes you got to use the id's or the constants (e.g. Job_Acolyte)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.