ID:261432
 
var/choice = input("What is your race?") in list("Human","Alien","Trandoshan","Martian")
if(choice == ("Human" || ("Trandoshan")))
var/choice1 = input("What is your hair style?") in list("Wierd", "Cool", "Spidey style", "Neato","Spiffy")
if(choice == ("Alien" || ("Martian")))
var/choice2 = input("What is your eye color?") in list("Black","Brown","Red","Green","Blue")
var/choice3 = input("What is your alignment?") in list("Good","Neutral","Evil")
if(choice == "Human")
if(choice1 == "Spideystyle")
if(choice2 == "Black")
if(choice3 == "Good")
new_mob = new/mob/human()
usr.race = "Human"


not quite sure why this wouldn't work
var/choice = input("What is your race?") in list("Human","Alien","Trandoshan","Martian")
if(choice == ("Human" || ("Trandoshan")))
var/choice1 = input("What is your hair style?") in list("Wierd", "Cool", "Spidey style", "Neato","Spiffy")
if(choice == ("Alien" || ("Martian")))
var/choice2 = input("What is your eye color?") in list("Black","Brown","Red","Green","Blue")
var/choice3 = input("What is your alignment?") in list("Good","Neutral","Evil")
if(choice == "Human")
if(choice1 == "Spideystyle")
if(choice2 == "Black")
if(choice3 == "Good")
new_mob = new/mob/human()
usr.race = "Human"

Now i can read it well.
In response to Kappa the Imp
hrm well I'll save my objections of kappa kyle once this is answered
In response to Peter Parker
Peter Parker wrote:
hrm well I'll save my objections of kappa kyle once this is answered


IM NOT CAPPA KYLE.KAPPA THE IMP IS FROM FINAL FANTASY.WHY THE HELL ARE YOU SAYING JUNK THAT YOU DON'T EVEN KNOW?????????Now i won't help you.Sorry about typing in caps,he annoys me.

-Kappa the Imp


In response to Kappa the Imp
rofl, sorry paranoid : \ oh well I figure it out
In response to Kappa the Imp
Well your code is very buffled up.. First your not switching the var/choice and in this you don't really need if(choice==) Vortezz has a good little library just for this I'll provide you with a link when I find it.
You misunderstand the way the boolean comparison || works.

Take a look at this line:
if(choice == ("Alien" || ("Martian")))

That is the same as doing this:
if(choice == 1)

Why? Because the text "Alien" and the text "Martian" each evaluate to TRUE, the same as every other piece of text treated as a boolean value.

What you probably want to do is this:
if(choice == "Alien" || choice == "Martian")

Or you could condense it if the list gets long:
if(choice in list("Alien", "Martian"))
In response to Skysaw
Skysaw wrote:
What you probably want to do is this:
> if(choice == "Alien" || choice == "Martian")
>

Or you could condense it if the list gets long:
> if(choice in list("Alien", "Martian"))
>


Oooo... I never thought of that. Very nice!