mob/dimscrawler
name = "dims Crawler"
icon = 'monsters.dmi'
icon_state = "DW"
density = 0
Die()
new /obj/credit(loc)
del src
New()
start
walk_rand(src,2)
sleep(10)
goto start
proc/bite()
usr in view(1)
usr.HurtMe(12)
usr << "Dims Crawler bites you"
Ive trying to make my enemy the dims crawler to do damage when there next to you and I'm clueless on how to do it
|
I wrote an article explaining exactly this process once upon a time:
https://www.byond.com/forum/post/43124 If you read that, you'll have a much better understanding for how to solve this problem, and a lot of other problems you'll run into in the future. |
Added:
I see you have a goto loop in the new statement there. I would refrain from the way you are using it.
But following the same logic every slept second you should do a check to see if anything is around them to "bite()"
It seems you also are using verb logic in your Bite proc as well. As well as forgetting the "set" part of that line. Check out the reference on "settings verbs" to see that.