generated from Jaysyn/ModuleTemplate
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
#include "nw_i0_generic"
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 1.2
|
|
|
|
For download info, please visit:
|
|
http://www.angelfire.com/space/lilacsoul */
|
|
|
|
//Put this OnDeath
|
|
void main()
|
|
{
|
|
ExecuteScript("prc_npc_death", OBJECT_SELF);
|
|
ExecuteScript("prc_pwondeath", OBJECT_SELF);
|
|
|
|
object oKiller = GetLastKiller();
|
|
if (!GetIsObjectValid(oKiller)) return;
|
|
|
|
object oPC;
|
|
if (GetIsPC(oKiller))
|
|
oPC = oKiller;
|
|
else
|
|
oPC = GetMaster(oKiller);
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
object oTarget;
|
|
object oSpawn;
|
|
oTarget = oPC;
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_waterhuge", GetLocation(oTarget));
|
|
|
|
oTarget = oSpawn;
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
oTarget = oSpawn;
|
|
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_ICESTORM), GetLocation(oTarget));
|
|
|
|
oTarget = oPC;
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectKnockdown(), oTarget, 60.0f);
|
|
|
|
oTarget = oPC;
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectStunned(), oTarget, 160.0f);
|
|
|
|
}
|
|
|