Area & Encounter work. Added override kobold skins.
Area & Encounter work. Added override kobold skins. Remade "Gorgon Den". Setup spawning in "Gargoyle Den". Setup spawning in "City of Baleas: Wizard's Tower". Added CODI AI to more creatures & NPCs.
This commit is contained in:
@@ -85,9 +85,37 @@ int SpawnCheckPCs(object oSpawn)
|
||||
}
|
||||
}
|
||||
//
|
||||
|
||||
//:: Spawn with a 25DC Skill Check
|
||||
if (nCheckPCs == 2)
|
||||
{
|
||||
// Get Current Number of Children
|
||||
int nSpawnCount = GetLocalInt(oSpawn, "SpawnCount");
|
||||
|
||||
if (nSpawnCount == 0)
|
||||
{
|
||||
// DC of Hidden Placeable
|
||||
int nItemDC = 25;
|
||||
|
||||
// Player's Skill
|
||||
int nSkill = GetSkillRank(SKILL_SEARCH, oPC);
|
||||
|
||||
// Do Skill Check
|
||||
int nDCCheck = d20() + nSkill;
|
||||
if (nDCCheck >= nItemDC)
|
||||
{
|
||||
// Placeable Spotted!
|
||||
string sSpotted = "You notice a hidden compartment in one of the daggers with ring in it.";
|
||||
FloatingTextStringOnCreature(sSpotted, oPC, TRUE);
|
||||
//Spawn it!
|
||||
nProcessSpawn = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
//:: Spawn with a 25DC Skill Check
|
||||
|
||||
// Spawn Based on Journal Quest Entry
|
||||
if (nCheckPCs == 1)
|
||||
if (nCheckPCs == 3)
|
||||
{
|
||||
// Check Journal Quest Entry
|
||||
int nQuest = GetLocalInt(oPC, "NW_JOURNAL_ENTRYQuest1");
|
||||
@@ -100,7 +128,7 @@ int SpawnCheckPCs(object oSpawn)
|
||||
//
|
||||
|
||||
// Spawn Based on Item in PC Inventory
|
||||
if (nCheckPCs == 2)
|
||||
if (nCheckPCs == 4)
|
||||
{
|
||||
// Check Player for Item
|
||||
object oItem = GetFirstItemInInventory(oPC);
|
||||
|
Reference in New Issue
Block a user