mob/create_character
Login()
spawn()
var/empty = "<empty-slot>"
var/list/res = src.CheckSave()
var/ans = src.LoginOptions(res)
var/compare = cmptext(ans,empty)
if(compare)
src.CreateCharacter()
else if(cmptext(ans,""))
world<<"Cancel"
else
src.LoadProc()
Problem description:
I'm trying to check if the output of src.LoginOptions() is equal to empty. The code above returns 0, as well as doing a simple
switch(ans)
if("<empty-slot>")
doesn't work. Don't know what to do, this should be an easy thing to do