mob/player
Login() world << "<b> \red [usr] logs on!"
alert("Welcome to X-Men Unlimited","Ok")
src.name = input("What is your characters codename","Name",src.key)
switch(input("What is your alignment?")in list("Good", "Evil", "Neutral")
if("Good")
usr.icon = 'good.dmi'
alert("Welcome to the X-Men","Ok")
if("Evil")
alert("Welcome to the Brotherhood","Ok")
usr.icon = 'evil.dmi'
if("Neutral")
alert("Welcome to the Morlocks!","Ok")
usr.icon = 'morlock.dmi'
Problem description:
I am new to coding and everytime I try to complie this I get:
Xmen.dm:7:error: if: missing comma ',' or right-paren ')'
Can anyone let me know what exactly is wrong, I seem to always get some sort of error in my code and I can never solve it.
switch(input(usr,"stuf her")in list("LOL","OMG")
INDENT HERE if("LOL")
INDENT HERE INDENT HERE //stuff
you ident after if() too