42 lines
811 B
Plaintext
42 lines
811 B
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 OnOpen
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetLastOpenedBy();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
|
|
|
|
if (DoOnce==TRUE) return;
|
|
|
|
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
|
|
|
|
object oTarget;
|
|
object oSpawn;
|
|
oTarget = oPC;
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_mumfight", GetLocation(oTarget));
|
|
|
|
oTarget = oSpawn;
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
oTarget = oSpawn;
|
|
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_WAIL_O_BANSHEES), GetLocation(oTarget));
|
|
|
|
}
|
|
|