for(var/mob/M in range(O,4))
M.overlays+=I
M.health-=rand(35,60)
sleep(1)
M.overlays-=I
sleep(1)
M.Death()
Problem description:The O would be the object that causes this. There is one problem. My character has 100 health and this is supposed to do from 35 to 60. Yet, my character dies after being hit by this. Why is that? Also, just so I won't have to post again, is it possible to have the games interface to become full screen when the game starts?
With the code that was supplied, im guessing that the M.Death() proc is actually where a mob dies, and in this case, you just call M.Death() without actually checking to see if the mobs health reaches 0 or not. After you subtract the damage from the health, Check whether the health has dropped to sufficient levels for a 'death' and then call the Death proc for the mob.