mob
proc
ChooseCharacter()
var/list/characters = src.CharacterList()
var/newCharacterChoice = "New Character"
var/DeleteCharacterChoice = "Delete Character"
var/list/menu = new()
menu += characters
menu += newCharacterChoice
menu += DeleteCharacterChoice
var/result = input("Character Creation") in menu
if (result == newCharacterChoice)
src.CreateCharacter()
if (result == DeleteCharacterChoice)
src.DeleteCharacter()
src.ChooseCharacter()
else
var/success = src.client.LoadMob(result)
if (success)
del(src)
else
src.ChooseCharacter()
client/proc/LoadMob(char_ckey)
var/firstletter=copytext(src.ckey, 1, 2)
var/savefile/F = new("players/[firstletter]/[src.ckey].sav")
F["/[ckey]/[char_ckey]"]>>src.mob
Problem description:
When i click Load character it loads their character but ur standing right in the middle of the title screen.
it loads the vars of the player. not the last location the player had.
heres a example:
I'm a little tired at the moment, so I think I did something wrong but I think it'll work.
O-matic