I'm trying to make it so that when you open up, it asks you for your name and job class. Here's the code:
..()
usr.name = input("What is your name?","Name Your Character")
var/icon = input("Which Job Class will you choose?","Choose Your Job Class")in list("Black Mage","Fighter","Monk")
switch(icon)
if("Black Mage")
usr.icon = 'blackmage.dmi'
if("Fighter")
usr.icon = 'fighter.dmi'
if("Monk")
usr.icon = 'monk.dmi'
(I tried to make the indents good, they get screwed up when I paste the code in)
Now, the problem is.. Well, it just doesn't do what you choose. If you choose Black Mage, it'll be a Fighter, if I choose the Fighter, it'll be invisible, and if I choose Monk it'll be fighter. It's just all screwed up. And yeah, I have all the dmi name states and all that stuff right. Is there something wrong with the code? Help would be appreciated.. Thanks.
"icon" is already a var. You don't want to use "icon". Call it "class" instead, like THIS...
var/class = input("Which Job Class will you choose?","Choose Your Job Class")in list("Black Mage","Fighter","Monk")
switch(class)
(Changes highlighted in bold.)
There. Now actually take the advice you're given, for once! I'm not answering the same question for a third time.