I know I've seen various references, and hints on how to do this but so far I have not found the code I'm looking for. I'm having problems adding to my current code which has the default player set to PC. But what I'd like to do is add in addition to the pc, a menu that ask u, "Male/Female" when u enter the game, then depending on which u choose your character will be given the correct icon. I see lots of games with this, but I can't see their code.
Any suggestions? Code? Tutorial? Demo, where I can see how the code is written?
LJR
Copyright © 2025 BYOND Software.
All rights reserved.
---------------------------------------
mob/Login()
usr.name = input("What is your name?") as text // text prompt
usr.gender = input("What is your gender?") in list("male","female")
if (usr.gender == "male") icon = 'pc.dmi'
else if (usr.gender == "female") icon = 'pc-girl.dmi'
else icon = 'pc.dmi'
return ..()
---------------------------------------
LJR
Creator of the RPG, "Kemet"