Throw()
set src in usr.contents
usr<<"You have thrown a pokeball"
var/A = new/obj/Pokeball
A:name = "[usr]"
A:loc=usr.loc
A:Gowner=usr
A:dir = usr.dir
walk(A,usr.dir)
Problem description:If I add a del proc for the one inside contents,the new pokeball won't be created.
if(M.hp >= 50)
if(!M.client)
M.loc = src
world<<"[src] captured [M]"
walk(src,0)
M:Owner = "[src]"
src.Capture = "[M]"
src.name = "Pokeball [Capture]"
return
else
world << "[src] captured [M]"
src.Capture = "[M]"
M:Owner = "[src]"
src.name = "Pokeball [Capture]"
walk(src,0)
return
Problem description:Well....if I place the M in the pokeball-s contents it will just walk out,if I freeze M it will still walk out,and If I create another pokemon inside everything will work but the code will stop at the point where it has to create the pokemon,so the new pokemon won't be created.
How do I define that the pokeball returns to the user (Gowner)? The capture thingy is under Bump() so there is no usr there.