var/HP = 9999
if (HP <= 0)
world << "[usr] has died."
Attack(mob/Victim in oview(1))
if (src.icon == "Mog.dmi") damage = 204
if (src.icon == "Shadow.dmi") damage = 220
oview() << "[usr] attacks [Victim] for [damage]"
HP -= damage
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.