turf
land1
icon = 'icons/land1.dmi'
lava
icon_state = "L1_Lava"
Entered(atom/a)
..(a)
if(ismob(a))
var/mob/m = a
var/lost = 5
m.health -= lost
m << "You fell in lava; you lost [lost] hit points."
this code works great in my learning project, but does not work in the demo game. could this be a focus issue again. if so, could you lead me in the right direction. perhaps a small tutor would be great.
Also, when you change a mob's health you need to use the set_health() proc. That's the proc that causes the health meter to update and checks if the mob died. The line of code should be: m.set_health(m.health - lost)