mob
proc
ChooseCharacter()
src.name = input("Please name your kombatant. ","Name input")
switch(input("Please choose your kombatant.") in list("Scorpion","Sub-Zero","Retile","Johnny Cage","Goro"))
if("Scorpion")
icon = 'Scorpion.dmi'
icon_state = "scorpion"
world << "<font color=gray size=2> -SERVER INFO- <font color = green>[src]Logged in for the first time."
usr.loc = locate(1,1,2)
Save()
if("Sub-Zero")
icon = 'Sub zero.dmi'
icon_state = "subzero"
world << "<font color=gray size=2> -SERVER INFO- <font color = green>[src]Logged in for the first time."
usr.loc = locate(1,1,2)
Save()
if("Reptile")
icon = 'Reptil.dmi'
icon_state = "Reptil"
world << "<font color=gray size=2> -SERVER INFO- <font color = green>[src]Logged in for the first time."
usr.loc = locate(1,1,2)
Save()
if("Johnny Cage")
icon = 'Johnny Cage.dmi'
icon_state = "Johnny Cage"
world << "<font color=gray size=2> -SERVER INFO- <font color = green>[src]Logged in for the first time."
usr.loc = locate(1,1,2)
Save()
if("Goro")
icon = 'Goro.dmi'
icon_state = "Goro"
world << "<font color=gray size=2> -SERVER INFO- <font color = green>[src]Logged in for the first time."
usr.loc = locate(1,1,2)
Save()
Problem description:
I have no error in my code but, it seems that when I go to log in and choose a chracter it always gives me goro. this also happend when i only had two people to choose from and sub zero was the last on the list so it seems to be whoever is last they get that icon even though they chose a differt character. Can somone please tell me what is wrong. If you get what I am trying to say please help me.