obj/dude2/Bump()
Dudify()
mob/proc/Dudify(mob/dude/M)
usr.Dots += 1
del src
if(usr.Dots == 127)
usr << alert("LEVEL COMPLETE!")
Problem description: lets say i want an obj to delete itself and edit the stats of someone wen it was stood on by a certain mob, how would i go about tht, cos i just get either nothing happening, OK written on screen or 1000's of proc crashes
There's your culprit. First you delete src, and then you expect for src to still exist, as you want the proc to continue.
This will work much better. Instead of deleting src, simply set it's loc to null. You probably never knew this, but there's a built-in garbage collector. Afterwards, it will see that there's a mob sitting in a null location with no references to anything whatsoever, and it will delete it automatically.
I have no idea if src is a player, and if src is a player, it won't be automatically deleted because it's still being linked by the client. In that case, it'll get deleted as usual with del src, but only if there's a player attached to it.
Last, but not least.
Lummox Jr wrote:
01000100011000010111010001100001