Icon Stats Problem in Developer Help
|
|
Code:
mob var/HP = 9999
proc Deathcheck() if (HP <= 0) world << "[usr] has died." del (src)
verb Attack(mob/Victim in oview(1)) var/damage if (src.icon == "Mog.dmi") damage = 204 if (src.icon == "Shadow.dmi") damage = 220 oview() << "[usr] attacks [Victim] for [damage]" HP -= damage
|
Problem description:
I'm trying to make damage causes by the attack verb different depending on the icon used. Yet it isn't working and i've tried several outcomes and they all choose the attack as 0.
|