ID:179701
 
I have been looking at this for a while and i am not understanding why this doesnt take me to a map
#include
client/base_num_characters_allowed = 8
world/mob = /mob/creating_character
mob/creating_character
base_save_allowed = 0 // If player quits before choosing, don't want to save this mob.

Login()
// Spawn here to avoid problems with calling prompts during login.
spawn()
src.CreateCharacter()

proc/CreateCharacter()
// In this case, the code creates a /mob/human or /mob/ogre with the specified attributes.

// Get the character information from them. (You would probably want to do with this a browser page.)
var/prompt_title = "New Character"
var/help_text = "What do you want to name the character?"
var/default_value = key
var/char_name = input(src, help_text, prompt_title, default_value) as null|text

if (!char_name)
// Guess they don't want to create a new character after all, so send them to choose a character.
client.base_ChooseCharacter()
return

// Make sure there isn't already a character named that.
// Character names are stored as ckey, so get the ckey version of the name.
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.CreateCharacter()
return

var/list/classes = list("Human","Namek","Changling","Majin","Ginyu","Android"," Saiyan")
help_text = "What race would you like?"
var/char_class = input(src, help_text, prompt_title, default_value) in classes

// Okay we have enough information, so it's time to create the character and switch the player to it.
var/mob/new_mob
switch(char_class)
if("Human")
switch(input("Which human would you like?","HUMANS")in list("Krillen","Tien","Yamcha"))
if("Krillen")
src.icon='Krillen.dmi'
src.loc=locate(2,89,1)
new_mob = new /mob/Krillen()
if ("Tien")
src.icon='Tien.dmi'
new_mob = new /mob/Tien()
src.loc=locate("Start")
if("Yamcha")
src.icon='Yamtcha.dmi'
new_mob = new /mob/Yamtcha()
src.loc=locate("Start")
if("Namek")
switch(input("Wich namek would you like","NAMEKS")in list("Piccolo","Nail"))
if("Piccolo")
src.icon='Piccolo.dmi'
new_mob = new /mob/Piccolo()
src.loc=locate("Start")
if("Nail")
src.icon='Nail.dmi'
new_mob = new /mob/Nail()
src.loc=locate("Start")
if("Changling")
alert("For right now all i have is frieza ok.")
src.icon='Frieza.dmi'
new_mob = new /mob/Frieza()
src.loc=locate("Start")
if("Majin")
switch(input("Which majin would you like","MAJINS")in list("Buu","Dabura","Majin Vegeta"))
if("Buu")
src.icon='Buu.dmi'
new_mob = new /mob/Buu()
src.loc=locate("Start")
if("Dabura")
src.icon='Dabura.dmi'
new_mob = new /mob/Dabura()
src.loc=locate("Start")
if("Majin Vegeta")
src.icon='MajinVegeta.dmi'
new_mob = new /mob/Majinvegeta()
src.loc=locate("Start")
if("Ginyu")
switch(input("Wich ginyu would you like","GINYUS")in list("Guldo","Recoom","Burter","Jeice","Ginyu"))
if("Guldo")
src.icon='Guldo.dmi'
new_mob = new /mob/Guldo()
src.loc=locate("Start")
if("Recoom")
src.icon='Recoom.dmi'
new_mob = new /mob/Recoom()
src.loc=locate("Start")
if("Burter")
src.icon='Burter.dmi'
new_mob = new /mob/Burter()
src.loc=locate("Start")
if("Jeice")
src.icon='Jeice.dmi'
new_mob = new /mob/Jeice()
src.loc=locate("Start")
if("Ginyu")
src.icon='Ginyu.dmi'
new_mob = new /mob/Ginyu()
src.loc=locate("Start")
if("Android")
switch(input("Wich android would you like","ANDROIDS")in list("16","17","18"))
if("16")
src.icon='Android16.dmi'
new_mob = new /mob/Android16()
src.loc=locate("Start")
if("17")
src.icon='Android17.dmi'
new_mob = new /mob/Android17()
src.loc=locate("Start")
if("18")
src.icon='Andriod18.dmi'
new_mob = new /mob/Andriod18()
src.loc=locate("Start")
if("Saiyan")
switch(input("Wich saiyan would you like","SAIYANS")in list("Goku","Vegeta","Trunks","Gohan"))
if("Goku")
src.icon='Goku.dmi'
new_mob = new /mob/Goku()
src.loc=locate("Start")
if("Vegeta")
src.icon='Vegeta.dmi'
new_mob = new /mob/Vegeta()
src.loc=locate("Start")
if("Trunks")
src.icon='Trunks.dmi'
new_mob = new /mob/Trunks()
src.loc=locate("Start")
if("Gohan")
src.icon='Gohan.dmi'
new_mob = new /mob/Gohan()
src.loc=locate("Start")

// Set the attributes.
new_mob.name = char_name

// Now switch the player client over to the new mob and delete myself since I'm no longer needed.
src.client.mob = new_mob
var/turf/first_location = locate("Start")
new_mob.Move(first_location)
del(src)
i have the "Start" tag as well and i cant figure why it doesnt work
i have also tried the regular (1,1,1)thing but i have no luck with it so please help me out
Thanks
Read the FAQ to learn how to write your own code, and then you won't have to use a library that you don't understand.
In response to Nadrew
I understand the lib i just dont understand why it wont locate me at the start tag
my friend used the same code he gave it to me and i switched the names to fit my need and it didnt work yet it still worked for him so i dont know why that would be
In response to Greg
Is the tag named start or Start?
In response to Nadrew
Yes both are named "Start"
i have been wondering why it doesnt work and i cant figure it out
the closest i have came is it shoes the map with no mob in it and thats the best i can do with that lib
In response to Greg
You mean you have two "Start" tags? If that's the case that's your problem. You should only have one turf with the "Start" tag because having more than one will make it so it cannot find one so it doesn't find it period.