Removed JAI
Removed JAI, added CODI AI. Fixed encounters & NPCs in Forest of Hope Central. Fixed Outcast store not opening. Added Druid Grove & associated NPCS.
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name ra_rnd_pirat_spw
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:: Copyright (c) NWN Dark Sun
|
||||
//:: Copyright (c) 2022 Project RATDOG
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
NPC OnSpawn event script caller to run
|
||||
CODI AI & PRC events.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Default On Spawn script
|
||||
|
||||
|
||||
2003-07-28: Georg Zoeller:
|
||||
|
||||
If you set a ninteger on the creature named
|
||||
@@ -24,10 +26,17 @@
|
||||
nearby or in the module (checks near first).
|
||||
It will make that NPC this horse's master.
|
||||
|
||||
20221201: Jaysyn
|
||||
Modified to read desired CODI AI spawner
|
||||
from string var "SPAWN_TYPE" set on the NPC,
|
||||
defaults to fighter.
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Keith Warner, Georg Zoeller
|
||||
//:: Created On: June 11/03
|
||||
//:: Modified By: Jaysyn
|
||||
//:: Modified On: 20221201
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
const int EVENT_USER_DEFINED_PRESPAWN = 1510;
|
||||
@@ -39,6 +48,7 @@ const int EVENT_USER_DEFINED_POSTSPAWN = 1511;
|
||||
#include "rnd_commoner_inc"
|
||||
#include "ra_rnd_armor_inc"
|
||||
|
||||
|
||||
void ShrinkEm(object oPC)
|
||||
{
|
||||
SetObjectVisualTransform(oPC, OBJECT_VISUAL_TRANSFORM_SCALE, 0.5f);
|
||||
@@ -52,7 +62,17 @@ void GrowEm(object oPC)
|
||||
void main()
|
||||
{
|
||||
string sTag;
|
||||
string sResRef = GetResRef(OBJECT_SELF);
|
||||
|
||||
string sSpawnType = GetLocalString(OBJECT_SELF,"SPAWN_TYPE");
|
||||
|
||||
if (sSpawnType == "")
|
||||
{
|
||||
sSpawnType = "no_spw_ftr";
|
||||
}
|
||||
|
||||
object oNPC;
|
||||
|
||||
// User defined OnSpawn event requested?
|
||||
int nSpecEvent = GetLocalInt(OBJECT_SELF,"X2_USERDEFINED_ONSPAWN_EVENTS");
|
||||
|
||||
@@ -63,7 +83,6 @@ void main()
|
||||
SignalEvent(OBJECT_SELF,EventUserDefined(EVENT_USER_DEFINED_PRESPAWN ));
|
||||
}
|
||||
|
||||
//:: Initialize Mount System
|
||||
sTag=GetLocalString(OBJECT_SELF,"X3_HORSE_OWNER_TAG");
|
||||
if (GetStringLength(sTag)>0)
|
||||
{ // look for master
|
||||
@@ -447,8 +466,13 @@ void main()
|
||||
DelayCommand(0.0f, ApplyEffectToObject(DURATION_TYPE_PERMANENT,eVis,OBJECT_SELF));
|
||||
}
|
||||
|
||||
// Check for randomizations.
|
||||
//:: Check for randomizations.
|
||||
|
||||
//:: Randomize Armor
|
||||
RndPirateArmor(OBJECT_SELF);
|
||||
ActionEquipMostEffectiveArmor();
|
||||
|
||||
//:: Randomize / Set Name
|
||||
ms_Nomenclature(OBJECT_SELF);
|
||||
|
||||
int nKeepskin = GetLocalInt(OBJECT_SELF,"RA_KEEPSKIN");
|
||||
@@ -471,19 +495,19 @@ void main()
|
||||
rnd_tattoo(OBJECT_SELF);
|
||||
}
|
||||
|
||||
//:: Randomize Armor
|
||||
RndPirateArmor(OBJECT_SELF);
|
||||
ActionEquipMostEffectiveArmor();
|
||||
|
||||
|
||||
// Execute default OnSpawn script.
|
||||
ExecuteScript("nw_c2_default9", OBJECT_SELF);
|
||||
//:: Execute CODI AI OnSpawn script.
|
||||
ExecuteScript(sSpawnType, OBJECT_SELF);
|
||||
|
||||
// Execute PRC OnSpawn script.
|
||||
//:: Execute default OnSpawn script.
|
||||
//ExecuteScript("nw_c2_default9", OBJECT_SELF);
|
||||
|
||||
//:: Execute PRC OnSpawn script.
|
||||
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
|
||||
|
||||
|
||||
//Post Spawn event requeste
|
||||
//Post Spawn event request
|
||||
if (nSpecEvent == 2 || nSpecEvent == 3)
|
||||
{
|
||||
SignalEvent(OBJECT_SELF,EventUserDefined(EVENT_USER_DEFINED_POSTSPAWN));
|
||||
|
Reference in New Issue
Block a user