mob/proc/Bleed(br,bs)
for()
var/i
usr.health -= br
sleep(10)
bleed = br
ChkBld(bs)
mob/Move()
if(bleed)
if(/obj/blood in usr.loc)
return
new/obj/blood(usr.loc)
..()
Problem description:
This is the code I have so far. It works except I want the game to check if there is already blood on a tile before it adds some, and for the script to iteriate a variable until it equals bs, at which point it sets br back to 0. The way the script works, is when you want something to make something bleed you call usr.Bleed(br,bs) where br is the amount of damage per second and bs is the amount of second. So far I have the first part down, but need help with it stopping when it reaches bs, and only putting one blood on a square.