area
battlearea1
Entered(atom/movable/A)
if(ismob(A))
var/mob/M=A
M.onbattlefield="battlearea1"
Exited(atom/movable/A)
if(ismob(A))
var/mob/M=A
M.onbattlefield= null
This works perfectly when i exit the thing there is no battles, but i wanted to make sure that if someone logs out it goes back to null, so when they log in they wont have battles. Here's my exit code:
Logout()
src.onbattlefield= null
del(src)
i still get into to battles when i log in. if i put usr it works but i cant get into one battle even if i enter the turf. Whats a way to solve this?
ID:178769
Apr 6 2002, 8:03 pm
|
|
I usually reset my battle vars on login.
put something like
mob
Login()
if(src.battlevar == null)
return 0
else
src.battlevar = null
Something like that should work, though im not to sure about the return 0 part ive not used that vary much.