25 lines
809 B
Plaintext
25 lines
809 B
Plaintext
|
#include "NW_I0_GENERIC"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
int nHPPercent = GetPercentageHPLoss(OBJECT_SELF);
|
||
|
int nHasSpawnedDeepHorrors = GetLocalInt(OBJECT_SELF, "SpawnedDeepHorrors");
|
||
|
|
||
|
if (nHPPercent <= 25 && !nHasSpawnedDeepHorrors)
|
||
|
{
|
||
|
SetLocalInt(OBJECT_SELF, "Summoning", TRUE);
|
||
|
ClearAllActions(TRUE);
|
||
|
ActionSpeakString("ARRRGH!");
|
||
|
ActionWait(1.0f);
|
||
|
ActionSpeakString("Creatures of the Deep, I summon thee.");
|
||
|
ActionPlayAnimation(ANIMATION_LOOPING_CONJURE2, 1.0f, 2.0f);
|
||
|
DelayCommand(3.2f, ExecuteScript("mdg_hignardhsumm", OBJECT_SELF));
|
||
|
SetLocalInt(OBJECT_SELF, "SpawnedDeepHorrors", TRUE);
|
||
|
DelayCommand(3.5f, SetLocalInt(OBJECT_SELF, "Summoning", FALSE));
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ExecuteScript("nw_c2_default3", OBJECT_SELF);
|
||
|
}
|
||
|
|