Ancordia_PRC8/_module/nss/fmsumvrocklowhp.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

24 lines
578 B
Plaintext

void main()
{
if (GetPlotFlag(OBJECT_SELF))
{
return;
}
ExecuteScript("nw_ch_ac6", OBJECT_SELF);
effect eVis = EffectVisualEffect(VFX_IMP_UNSUMMON);
if (GetLocalInt(OBJECT_SELF, "lowhp"))
{
return;
}
else if ( GetCurrentHitPoints( OBJECT_SELF ) <= 5 )
{
SpeakString("My service is concluded.", TALKVOLUME_TALK);
SetLocalInt(OBJECT_SELF, "lowhp", 1);
DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, OBJECT_SELF));
DelayCommand(2.5, DestroyObject(OBJECT_SELF));
}
}