ID:948720
 
i want to make a verb for gms to change other peoples races. i have tried many ways, but i cant seem to get it right. any suggestions?

How are you defining what race a player is? Do they have a variable such as race = "goblin" or race = "human, or are they based on type paths (/mob/human, /mob/demon, etc)?
In response to LordAndrew
just the simple
<code> mob var race = "" </code>
In response to LordAndrew
and this is how it is changed
                var/race = input("What were you born as?","Choose a Birth Race") in list (/*"Moki",*/)
switch(race)

/* if("Moki")
mobcreation = new /mob/PC()
mobcreation.race = "Moki"
mobcreation.icon = 'Moki.dmi'
mobcreation.powerlevel = 150
mobcreation.powerlevel_max = 150
mobcreation.ki = 150
mobcreation.ki_max = 150
mobcreation.strength = 10
mobcreation.strength_max = 10
mobcreation.defence = 10
mobcreation.defence_max = 10
mobcreation.contents += new/obj/Techniques/Regenerate
mobcreation.contents += new/obj/Transform/Transform
mobcreation.Karma()

oh great another zeta rip but the code you showed above would work but here is what i would try something like this
obj/Character
var
BaseHP=0
BaseMP=0
TestCharacter
icon='icon goes here.dmi'
icon_state="icon_state goes here"
BaseHP=1000
BaseMP=1000//you can set their base stats here
var/list/AllCharacters=list(new/obj/Characters/TestCharacter)
mob/verb/ChangeCharacter()
var/obj/Characters/I=input("Change Character") as null|anything in AllCharacters//shows the list of all availiable characters
if(!I) return//If nothing is selected return nothing
src.Race=new I.type//set their race
src.HP=I.BaseHP
src.MP=I.BaseMP

but if you want to let user select different player race then something like this
obj/Character
var
BaseHP=0
BaseMP=0
TestCharacter
icon='icon goes here.dmi'
icon_state="icon_state goes here"
BaseHP=1000
BaseMP=1000//you can set their base stats here
var/list/AllCharacters=list(new/obj/Characters/TestCharacter)
mob/verb/ChangeCharacter()
var/obj/Characters/I=input("Change Character") as null|anything in AllCharacters//shows the list of all availiable characters
if(!I) return//If nothing is selected return nothing
var/list/AllPP=list()
for(var/mob/M in world) if(M.client) AllPPL+=M
var/mob/user=input("CHange whoes") as null|anything in AllPPL
if(!user) return
user.Race=new I.type//set their race
user.HP=I.BaseHP
user.MP=I.BaseMP