mob/players
proc
NewChar()
if(!src.window)
src.window=1
var/prompt_title="Dragonball Pandemonium"
var/help_text="What do you want to name the character?"
var/default_value=src.key
var/char_name=input(src,help_text,prompt_title,default_value)as null|text
if(!char_name) {src.window=0;return}
var/ckey_name=ckey(char_name)
var/list/characters=client.base_CharacterNames()
if(characters.Find(ckey_name)) {alert("You already have a character named that! Please choose another name.");src.window=0;return}
var/list/classes=list("Half Saiyan","Saiya-Jin","Namek","Ma-Jin","Human-Type Android","Human","Changling")
help_text="Which class would you like to be?"
default_value="Saiya-Jin"
var/char_class=input(src,help_text,prompt_title,default_value)as null|anything in classes
var/mob/new_mob=new()
if(!char_class) {src.window=0;return}
else
switch(char_class)
if("Saiya-Jin") new_mob=new/mob/players/classes/saiyan()
if("Half Saiyan") new_mob=new/mob/players/classes/halfsaiyan()
if("Human") new_mob=new/mob/players/classes/human()
if("Namek") new_mob=new/mob/players/classes/namek()
if("Ma-Jin") new_mob=new/mob/players/classes/buu()
if("Human-Type Android") new_mob=new/mob/players/classes/android()
if("Changling") new_mob=new/mob/players/classes/changling()
else src.window=0
new_mob.name=char_name
src.client.mob=new_mob
var/turf/first_location=locate(5,4,2)
var/a
if(new_mob.type==/mob/players/classes/human||new_mob.type==/mob/players/classes/halfsaiyan||new_mob.type==/mob/players/classes/saiyan)
world<<"<font color=blue size=1><b>Server Information</b></font>: <b>[new_mob.name] ([src])</b> has entered the game.</font>"
new_mob.Move(first_location)
if(new_mob.type==/mob/players/classes/saiyan) a="Saiya-Jin"
if(new_mob.type==/mob/players/classes/halfsaiyan) a="Half Saiyan"
if(new_mob.type==/mob/players/classes/human) a="Human"
new_mob<<"<b>You feel a strange sensation as your spirit begins to form into the shape of a body. You are now a [a].</b>"
sleep(30)
new_mob<<"<b>Strange Man</b>, \"Hi, my name is Yamcha! You're new to this world, so here are how things are going to work.\""
sleep(40)
new_mob<<"<b>Yamcha</b>, \"First, you are going to select a skin tone, do this by double clicking me. After this, it will ask you if you are satisfied with your skin tone. Whenever you feel comfortable with your skin tone, select \"Yes\" when it asks you if you're satisfied.\""
else
if(new_mob.type==/mob/players/classes/buu) a="Ma-Jin"
if(new_mob.type==/mob/players/classes/android) a="Human-Type Android"
if(new_mob.type==/mob/players/classes/namek) a="Namek"
if(new_mob.type==/mob/players/classes/changling) a="Changling"
new_mob.loc=locate(1,1,3)
new_mob<<"<b>You feel a strange sensation as your spirit begins to form into the shape of a body. You are now a [a].</b>"
del(src)
This is the current title screen system I use, I have it to where when someone clicks the "New" button it runs this proc, but anyways, onto the main point.
I was wondering how I could make it to where the actual player can't move until the "conversation" ends. I have the variable set up to work under mob/players/Move(), and that part works, but I don't know how to set the variable correctly so that they can't move during the "conversation". Seeing as it sets src.client.mob to the new_mob variable before the conversation, src.move=1 isn't going to work.
I've tried a LOT of things and I remade my thread because it already had about 3 spaced bumps.