Wooden_Floor
icon = 'turfs.dmi'
icon_state = "weakfloor"
var
health = 5
Click()
bounds_dist(usr, src)
if(usr.hand1 == "")
if(src.health > 0)
src.health -= 1
usr << "The [src]'s health is now [health]"
view() << "Bang!"
if(src.health == 0)
del(src)
usr << "Your broke [src]!"
view() << "[usr] has broken [src]!"
Problem description: I have no idea, even after looking at the reference, how I can make it so that if the user is within a few pixels of the floor, they can break it. But when I try to make the bounds_dist into a proc, it throws errors. So really, I need to know how to limit the Click range.
Thanks so much for all the help in advance, because I need it -_-
if(bounds_dist(usr,src))
I believe you have to use it in an IF statement. ^^