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
ID:149138
Jun 28 2002, 5:22 am
|
|
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:
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