mob
var
mob/Target
meister = ""
Login()
if(src.client)
if(!src) return
var/Load = input("Would You Like to Load?","Load Game") in list("Yes", "No")
if(Load=="Yes")
var/savefile/F = new("Save/[src.ckey]")
Read(F)
F["name"] >> src.name
var/mob/M = new(usr.loc)
M.dir = usr.dir
step(M,M.dir)
if(src.name!="")
M.meister = src.name
M.Wander()
proc
Wander()
while(src)
if(src.client)
break
else
sleep(5)
for(var/mob/M in oview(10))
if(M.client)
if(src.meister==M.name)
src.Target = M
break
if(src.Target)
step_towards(src,src.Target)
to be honest, im not sure whats exactly wrong with the code, there is another section of code that has another, more specific type of NPC that uses the Wander proc and runs just fine.
you guys usually don't steer me wrong, so don't start now
...please
Also, don't directly call Read(). You can just load the savefile to the mob:
That calls Read() automagically.
You didn't give any errors, so I can't help you further than that.