void main() { if(GetCurrentHitPoints(OBJECT_SELF) > 570) { ClearAllActions(TRUE); SpeakString("Ahh... The Suffering is over.", TALKVOLUME_TALK); SetImmortal(OBJECT_SELF, FALSE); effect eDeath = EffectDeath(TRUE, TRUE); DelayCommand(1.0f, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDeath, OBJECT_SELF)); } }