ID:172502
 
    Login()
var/charactername = input("What is your name?","Character Name")
switch(input("Pick a Character.","Character Pick") in list("Human","Machine","Terminator Model 101","Terminator TX","Turret Control"))
if ("Machine")
character = new /mob/characters/Machine()
if ("Terminator Model 101")
character = new /mob/characters/Terminator_Model_101()
if ("Terminator TX")
character = new /mob/characters/Terminator_TX()
if ("Turret Control")
character = new /mob/characters/Turret_Control()
if ("Human")
switch(input("Which Gender?","Human Gender") in list("Male","Female"))

if ("Male")
character = new /mob/characters/HumanMale()
if ("Male")
character = new /mob/characters/HumanFeMale()


Heres the problem Login.dm:28:error::invalid expression

Line of Error: switch(input("Which Gender?","Human Gender") in list("Male","Female"))

thanks for all help attempting comments ^^
Majinveku wrote:
    Login()
> var/charactername = input("What is your name?","Character Name")
> switch(input("Pick a Character.","Character Pick") in list("Human","Machine","Terminator Model 101","Terminator TX","Turret Control"))
> if ("Machine")
> character = new /mob/characters/Machine()
> if ("Terminator Model 101")
> character = new /mob/characters/Terminator_Model_101()
> if ("Terminator TX")
> character = new /mob/characters/Terminator_TX()
> if ("Turret Control")
> character = new /mob/characters/Turret_Control()
> >>>> if ("Human")
> switch(input("Which Gender?","Human Gender") in list("Male","Female"))
>
> if ("Male")
> character = new /mob/characters/HumanMale()
> if ("Male")
> character = new /mob/characters/HumanFeMale()

Heres the problem Login.dm:28:error::invalid expression

Line of Error: switch(input("Which Gender?","Human Gender") in list("Male","Female"))

thanks for all help attempting comments ^^
You have an 'if("Human")' statement in your code, but you dont have anythin after if, hence the error. Either finish off the if statement or take it out.
In response to Lazyboy
It has if ("human" but then I want it to switch if you choose human to a choice?
In response to Majinveku
Majinveku wrote:
It has if ("human" but then I want it to switch if you choose human to a choice?
To choose the gender for humans in a switch, make sure that the whole switch statement after the human if is indented once more.
Eg
switch(var)
if(blah)
switch(var1)
if(blah1)
You way you have it now is
switch(var)
if(blah)
switch(var1)
if(blah1)