I want this object, which has density 1, when it Bumps into something, if it is a mob with certain vars, to hurt it, or if it is a certain Turf, to delete itself, else carry on. Here is my code:
obj
kame
icon = 'kame.dmi'
icon_state = ""
layer = MOB_LAYER + 99
Bump(mob/M)
if(istype(M,/mob))
if(M.npp == 1||M.npc == 1)
else
M.powerlevel -= ((3500 * usr.Str)/M.Def)
else
if(istype(M,/turf))
if(M.dif == 0)
step(src,src.dir)
else
del(src)
else
step(src,src.dir)
del(src)
Any help would be greatly appreciated!
~GokuSS4Neo~
A few tips I can give you:
Lummox JR