PWE_PRC8/_module/nss/mummybring.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

42 lines
795 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 OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int nInt;
nInt=GetLocalInt(oPC, "isthereaportal");
if (!(nInt == 1))
return;
object oTarget;
object oSpawn;
oTarget = GetWaypointByTag("portalspawn");
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_mumcleric", GetLocation(oTarget));
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
oTarget = oSpawn;
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_GATE), GetLocation(oTarget));
}