ID:178557
 
Ive read through the lava post and it just looks like a huge mess to me ... I was wondering if anyone knew the right way to make lava take away hp instead of instantly killing characters. any help would be great. thanks
turf
Lava
icon = 'lava.dmi'
Entered()
usr.IsInOrNearLava = 1
Exited()
usr.IsInOrNearLava = 0

proc
Lava()
Start
if(usr.IsInOrNearLava == 1)
usr.HP -= 1
usr << "It's hot!"
sleep(50)
goto(Start)
In response to Thief Jack
thanks a ton
In response to Dontfallin
Great I spoke too soon.... I keep getting this error. Im new to this so I dont really understand it:

usr.IsInOrNearLava: undefined var

could some one explain what this means so I dont have to bother anybody else... and maybe help me fix it. thanks I appreciate it
In response to Dontfallin
Dontfallin wrote:
usr.IsInOrNearLava: undefined var

You need to define that variable. Something like,
mob
     var/IsInOrNearLava = 0

Also, you may want to enter src.Lava() like the following.
Entered()
     usr.IsInOrNearLava = 1
     src.Lava()

That will call the proc, otherwise it will never get called and nothing would happen.