I've recently begun programming and have been slowly working on building something from an RPG demo.
I'm having issues with allowing the user to create things like skin tone, hair color, eye color. I'm not sure how to reflect the correct icons for each state, say if they chose light skin, their avatar would be represented by the light skinned icon.
mob/create_pc Login() var/mob/character var/classlist[] = list("Dragoon","Mage","Paladin","Priest") var/charactername = src.key if((src.key == "Ironsoul") || (src.key == "YourName")) classlist += "GM" alert(src, "Welcome to [world.name], initializing character creation...click OK to continue.") switch(input("Choose a class.","Class Selection","Dragoon") in classlist) if("Dragoon") character = new /mob/pc/dragoon() if("Mage") character = new /mob/pc/mage() if("Paladin") character = new /mob/pc/paladin() if("Priest") character = new /mob/pc/priest() if("GM") character = new /mob/pc/gm/a/b/c() character.name = charactername src.client.mob = character if(character.name == null) character.name = src.key del(src)
|
Not sure where to go from here.
any help for a newbie would be much appreciated.
for hair and eye color you need to do src.overlays+=
'iconname.dmi'
for skin tone you that should be which type of base so u need to do src.icon='icon.dmi'