mob
proc
Paralyzed()
while(Paralyze)
usr.Paralyze=1
usr<<"You cut [src]'s Tendons slowing their movement!"
usr.Savedspeed = usr.Move_Delay
usr.Move_Delay = 10
sleep(1200)
usr.Move_Delay = usr.Savedspeed
src<<"Your tendons miraculously heal!"
usr<<"[src]'s Tendons heal"
usr.Paralyze=0
Thats the Paralysis proc thingy
obj
ParalyzingK
icon = 'paralayzed kunai.dmi'
density = 1
Bump(A)
if(ismob(A))
var/mob/M = A
if(M.Kaiten||M.sphere)
return
if(M.counter)
del(src)
return
if(M.PK==0)
return
var/damage = round(src.nin*2)
if(damage >= 1)
M.health -= damage
M.Paralyzed()
view(M) << "[M] was hit by Paralyzing Kunai for [damage] damage!!"
var/mob/O = src.Gowner
M.Death(O)
del(src)
if(istype(A,/turf/))
var/turf/T = A
if(T.density)
del(src)
if(istype(A,/obj/))
del(src)
object i want to make it were when it hits the target it Paralyzes them
Problem description:
(no errors) i dont know why it wont Paralyze the target when the object hits them i have it set were if it bumps them it would Paralyze(slow there movements) them but its not working can some1 help?
i have tried many possiblites but none seem too work
Take the while loop out of your Paralyzed proc.
(Sometimes I wonder where people these days learn to code?)