Code (Where I am assigning my deathAnim variable with the icon_state of the src on death):
proc
DeathCheck()
if (src.HP <= 0)
src.icon_state = deathAnim
sleep(30)
experience += expAmount
del(src)
Code (An example of a pallette icon state and an animated icon state):
mob
/**
* Ant NPC Data
*/
Ant
icon = 'ant.dmi'
icon_state = "stand"
deathAnim = "death_emote"
desc = "Yuck! It's squashing time!"
expAmount = 5
HP = 50
defence = 0;
/**
* Black Widow NPC Data
*/
Black_Widow
icon = 'black_widow.dmi'
icon_state = "stand"
deathAnim = "death_emote"
desc = "I hope it doesn't bite me!"
expAmount = 55
HP = 550
defence = 0
Ok to save people time, my ant does not have any animations at all, it was the first icon I created from doing a tutorial into DM. The black widow however is one that has walk animations and I made it death animations (I made death animations for every single direction)
TLDR; I'm wondering why the ant has the death animation showing while the black widow does not?
P.S: Each icon is named "stand" and "death_emote" respectively.
PICTURES:
[img]http://prntscr.com/bpkt7w[/img]
[img]http://prntscr.com/bpktb9[/img]
[img]http://prntscr.com/bpkthe[/img]