mob/create_character //the default mob
var/mob/character //later we'll be switching client to this
Login()
var/charactername = input("What is your name?","Name",src.key) //you should know this..
switch(input("What race do you wish to be?","Race","Daba") in list("Daba","Baiy"))
if("Daba") //if they chose to be a monkey
character = new /mob/daba()
if("Baiy")
character = new /mob/baiy()
character.name = charactername
src.client.mob = character
del(src) //delete the old mob
if(usr.team == 1) usr.Move("dabastart") //relocate the daba to the daba start point
if(usr.team == 2) usr.Move("baiystart") //relocate the baiy to the baiy start point
For some reason, it won't work. Can somebody fix my "if" statements or whatever is necessary to be able to warp my mobs to a different location? (Yes, I have already created a turf named "dabastart" and "baiystart", and placed them on the map, to note.)
I think it should be:
This is assuming that dabastart and baiystart are areas
Also, whe they join a races you need to do something like
usr.team = 1
so that the value is set for the if to check