orc
icon = 'icons.dmi'
icon_state = "orc"
health = 30
damage = 4
wealth = 10
proc
deathcheck()
if (health <= 0)
if (src.wealth >= 1)
var/obj/gold/golddrop = src.wealth
world << "[src] dies!"
del(src)
Hi all, I appologise if this should be simple but Iv spent the last hour and a half trying to figure this out.
I want to make the deathcheck command initiate a gold drop according to the wealth of the specific npc. Please could someone help with this.