ID:148036
 
I need some serious help. First off this code worked fine when i tested it but when i updated my game, it didnt work. I'm just wondering if anyone can tell me whats wrong with it.
mob/npcs/Trainer
icon='npcs.dmi'
icon_state="10"
density=1
verb
Talk()
set src in oview(1)
switch(input("I will change your class for you. Which class do you want?","Class")in list("Soldier","Knight","Cleric","Mage"))
if("Soldier")
if(usr.gen==2)


usr.icon='characters.dmi'
usr.icon_state="soldierm"

usr.class="Soldier"


if(usr.gen==1)


usr.icon='characters.dmi'
usr.icon_state="soldierf"

usr.class="Soldier"

if("Knight")
if(usr.gen==2)


usr.icon='characters.dmi'
usr.icon_state="knightm"

usr.class="Knight"

if(usr.gen==1)


usr.icon='characters.dmi'
usr.icon_state="knightf"

usr.class="Knight"
if("Cleric")
if(usr.gen==2)


usr.icon='characters.dmi'
usr.icon_state="clericm"

usr.class="Cleric"

if(usr.gen==1)


usr.icon='characters.dmi'
usr.icon_state="clericf"

usr.class="Cleric"
if("Mage")
if(usr.gen==2)


usr.icon='characters.dmi'
usr.icon_state="magem"

usr.class="Mage"

if(usr.gen==1)


usr.icon='characters.dmi'
usr.icon_state="magef"

usr.class="Mage"

The problem is, when i talk to the trainer in this case, he does the first part and a list comes up with soldier, knight, etc. I click it and then nothing happens




um...did you define the usr's gender? you have to make sure it's defined before you goto the trainer...