ID:149138
 
The output line is flagged with an error: bad argument definition.
Lava
icon = 'lava.dmi'
Entered(0)
O << "OUCH! You are burned!"
usr.HP -= 1
Drafonis wrote:
The output line is flagged with an error: bad argument definition.
Lava
icon = 'lava.dmi'
Entered(0)
O << "OUCH! You are burned!"
usr.HP -= 1

You put 0 (zero) instead of O in the argument.

BTW, that usr.HP should be O.HP; you can't use usr here. I recommend changing the proc thus:
turf/Lava
icon = 'lava.dmi'
Entered(atom/movable/O)
if(ismob(O))
var/mob/M=O
M << "OUCH! You are burned!"
M.HP=max(M.HP-1,0)
if(M.HP<=0) M.Die()

You'll probably want to eventually change this to set up some kind of timer system to repeatedly burn the player every second or so.

Lummox JR