//The name of the player ends up being the name of the mob,
//instead of what the input is....
mob/creation
var
character
Login()
src.name = input("What is your name?","Character Creation",src.client.key)as text
classpick()
src.client.mob = character
proc
classpick()
switch(input("What is your class?","Character Creation")in list("Fighter","Rogue","Apprentice"))
if("Fighter")
switch(input("Do you want to keep this class?","Character Creation")in list("Yes","No"))
if("Yes")
src.class = "Fighter"
character = new /mob/fighter
if("No")
classpick()
if("Rogue")
switch(input("Do you want to keep this class?","Character Creation")in list("Yes","No"))
if("Yes")
src.class = "Rogue"
character = new /mob/rogue
if("No")
classpick()
if("Apprentice")
switch(input("Do you want to keep this class?","Character Creation")in list("Yes","No"))
if("Yes")
src.class = "Apprentice"
character = new /mob/apprentice
if("No")
classpick()
ID:147966
![]() Aug 31 2003, 5:13 pm
|
|
![]() Aug 31 2003, 5:22 pm
|
|
The problem is that you are taking in the input, and then creating a new mob for the player. Ask the player for their name after the new mob is created for them (in this instance, after the class is chosen).
|
//it is still not working heres the whole coding for it:
mob/creation var character Login() classpick() src.client.mob = character proc namepick() src.name = input("What is your name?","Character Creation")as text classpick() switch(input("What is your class?","Character Creation")in list("Fighter","Rogue","Apprentice")) if("Fighter") switch(input("Do you want to keep this class?","Character Creation")in list("Yes","No")) if("Yes") src.class = "Fighter" character = new /mob/fighter namepick() if("No") classpick() if("Rogue") switch(input("Do you want to keep this class?","Character Creation")in list("Yes","No")) if("Yes") src.class = "Rogue" character = new /mob/rogue namepick() if("No") classpick() if("Apprentice") switch(input("Do you want to keep this class?","Character Creation")in list("Yes","No")) if("Yes") src.class = "Apprentice" character = new /mob/apprentice namepick() if("No") classpick() |