I made my own Character Handling "System" (It can load a character, Create a new character, and save the characters.)
I made a new mob called "New".
I set the "New" mob to call my createchar proc at Login()(because I don't have an actual select a character proc yet.)
I set world/mob = /mob/New. Everything goes, it relocates to 1,1,1. But then it sends the world a message saying that I logged out, and it doesn't locate my mob on the map, although it does set my view to the startpoint, any idea why?
My Create Character code:
mob
proc
NewChar()
Start:
var/char_name = input ("What would you like your character name to be?")as null|text
if(!char_name)
src << "I am sorry, but you need to enter a character name."
goto Start:
else
alert("Are you sure you want your character to be named [char_name]?", "Confirm","Yes","No")
if("Yes")
src.client.mob = /mob/Player
loc = locate(1,1,1)
SaveChar(char_name)
if("No")
return
You are setting mob to a type path, not an instance. Then you change the location of the mob/New instead of the client's new mob.
Replace those lines with this:
src.client.mob = new/mob/Player(locate(1,1,1))