mob/var/tmp
transfered = 0
TransPerson
mob/Yama/verb
MT(mob/npcs/M in oview(6))
set name = "Mind Transfer Jutsu"
set category = "Jutsus"
usr.Handseals()
if(usr.firing) return
if(M.CNNPC){usr<<"You cannot control NPCs";return}
else
if(usr.TransPerson==null)
if(usr.chakra>=1000)
usr.chakra -= 1000
usr.TransPerson = M
usr.controlled=M
M.controller = usr
usr.controller = usr
M.Frozen = 0
usr.client.eye = M
usr.client.perspective=EYE_PERSPECTIVE|EDGE_PERSPECTIVE
sleep(600)
view(M) << "[usr] is no longer controlling [M]."
usr.TransPerson = null
M.Frozen = 0
usr.chakra -= 100
usr.controlled=null
usr.client.eye = usr
usr.client.perspective=MOB_PERSPECTIVE
else
usr << "Need more chakra!"
return
else
view(M) << "[usr] is no longer controlling [M]."
usr.TransPerson = null
usr.Frozen = 0
usr.controlled=null
usr.client.eye = usr
usr.client.perspective=MOB_PERSPECTIVE
return
mob/var/atom/movable/controlled
mob/var/atom/movable/controller
mob/Move(l,d)
if(controlled)
step(controlled,d)
else
return ..()
Problem description:
The problem is that every single time I do this jutsu, the person that I am trying to control is always able to move. I am trying to make it so the person that does that jutsu is in control and not the person that is being affected until the time limit is done.