Spearguard
density=0
icon='Paperguard.dmi'
icon_state="1stay"
New()
..()
flick("1",src)
Del()
flick("1del",src)
..()
Enter()
flick("1",src)
usr<<"You run into the Spearguard and are impaled!"
usr.DamageProc(75,"Health",src.Owner)
usr.Bloody()
return
Problem description:
This basically is supposed to damage whoever it hits if they run into it. Enter is probably not the proc I'm supposed to use here, but I'm not sure. It's an object, so I assume thats why Enter wouldn't work, even when I made the object not dense and Enter() caused a return at the end of it. Should I make the object dense, and if so, which proc should I call to utilize these effects?
Enter() doesn't work because objects stepping over src aren't entering src's contents, like an item object might for a player. Enter() and Cross() are also not suitable because they aren't meant for effects, they're just checked to see if the movement is allowed to happen.