ID:1098953
 
(See the best response by NNAAAAHH.)
Code:
race = prompt("Blabla, which race will it be, sir?","Ding","Dong","Dung");
mob
race
icon = 'races.dmi'

if race = "Ding"
icon_state = "Ding_icon"
else if race = "Dong"
icon_state = "Dong_icon"
else if race = "Dung"
icon_state = "Dung_icon"
else
// Print message that says invalid selectio


Problem description:

***I know the above isn't accurate byond code, just musing a bit***


So, I am using the RPG Framework to help me learn BYOND. Right now I am trying to come up with a way for a race selection type thing. I want players to be prompted to select a race at character creation. And then, depending on their choice, I want to assign them the icon that represents that race.

I was hoping to have some kind of graphical interface that would give an icon/image of each race and a description as well as starting stats/skills that the race gets. I fear that may be a bit beyond my ability.

Any help (be it code, links to guides, or anything else) would be greatly appreciated.
Best response
On my game i use that look:
//here up the proc
src.Race = input("What race are you?","Race") in list("Race1","Race2","Race3")

if(src.Race == "Race1")
usr.Human() //The race variable
src.Born = input("Where do you want to born?","Born Place") in list("Place1","Place2","Place3","Place4")
if(src.Born == "Place1")
src.loc = locate(33,185,1) // Start cords
src.Respawn = 1 // If player dead this are the defaut respawn cords
else if(src.Born == "Place2")
src.loc = locate(163,39,1) // Start cords
src.Respawn = 2
else if(src.Born == "Place3")
src.loc = locate(162,161,1) // Start cords
src.Respawn = 3
else if(src.Born == "Place4")
src.loc = locate(5,5,1) // Start cords
src.Respawn = 4
else if(src.Race == "Race2")
src.loc = locate(5,5,1) // Start cords
usr.Race2() //Race2 variable
else if(src.Race == "Race3")
src.loc = locate(5,5,1) // Start cords
usr.Race3()

mob
proc
Human()
icon = 'Player.dmi'
Race2()
icon = 'Player.dmi'
icon_state = "Race2"
Race3()
icon = 'Race.dmi'