mob/NEW1
icon='NewLoadDel.dmi'
icon_state="newtl"
Click()
var
Eyes
Hair
choices
icon = 'human.dmi'
Elf
Human
var/mob_path = "mob/choices/"
var/choice = input("Please select a race") in list ("Elf","Human")
mob_path += choice
var/mob/choices/new_mob = new(mob_path)
new_mob.icon_state = choice
new_mob.Eyes = input("Please select your eye color.") in list ("Black")
new_mob.Hair = input("Please select your hair color.") in list ("Black")
new_mob.name = input("Please select a name.") as text
new_mob.Move(locate(48,59,1))
src.client.mob = new_mob
del(src)
src.client.mob = new_mob is giving bad argument definition, I'm trying to get it so that when I click on the mob it activates the character creation questionnaire
The above is the base type for a screen button that will allow you to change the clicking mob's variable specified by operation if the action variable is ACTION_SET, or call a clicking mob's proc specified by operation if the action variable is ACTION_CALL. value in the case of ACTION_SET is the value that the variable will be changed to. value in the case of ACTION_CALL is either a list of arguments, a single argument, or in the case of null, no argument will be passed through the call.
Let's check out how we'd use something like this:
This snippet only shows on-screen selection menu, but it should be flexible enough to do everything you need.