Remade Dungeon Level One: Central

Remade Dungeon Level One: Central.  Added Didiamus' creature overrides.  Full compile.
This commit is contained in:
Jaysyn904
2023-09-17 23:08:55 -04:00
parent 84d583b489
commit d168e90e83
225 changed files with 189628 additions and 114247 deletions

View File

@@ -1,16 +1,14 @@
#include "x0_i0_partywide"
//:: Returns true if PC passes a DC 10 search check.
//:: Returns true if the PC passes a DC 10 search check.
//:: Only allows one chance to search
int StartingConditional()
{
object oPC = GetPCSpeaker();
object oPC = GetPCSpeaker();
string sPlacableTag = GetTag(OBJECT_SELF);
int nPartySearched = GetLocalInt(oPC, "PartySearched_" + sPlacableTag); // Unique flag for each placable
int nPlayerSearched = GetLocalInt(oPC, "PlayerSearched_" + sPlacableTag); // Unique flag for each player
// Check if the party has already successfully searched at this placable
if (nPartySearched == 1)
// Check if the player has already attempted searching this placable
if (nPlayerSearched == 1)
{
return FALSE;
}
@@ -18,13 +16,15 @@ int StartingConditional()
// Check if the player's search skill check is successful against DC 10
if (GetIsSkillSuccessful(oPC, SKILL_SEARCH, 10))
{
// Set the flag on every member of the party to ensure it's only run once per party
SetLocalIntOnAll(oPC, "PartySearched_" + sPlacableTag, 1);
// Set the flag on the player to ensure it's only run once per player
SetLocalInt(oPC, "PlayerSearched_" + sPlacableTag, 1);
return TRUE; // Condition met, continue with the conversation
}
else
{
// Set the flag on the player to ensure it's only run once per player
SetLocalInt(oPC, "PlayerSearched_" + sPlacableTag, 1);
return FALSE;
}
}
@@ -37,6 +37,33 @@ int StartingConditional()
//:: Returns true if PC passes a DC 10 search check
/*int StartingConditional()
{
//:: Declare major variables
object oPC = GetPCSpeaker();
// Check if the player's search skill check is successful against DC 10
if (GetIsSkillSuccessful(oPC, SKILL_SEARCH, 10))
{
//:: Player passed the search check
return TRUE;
}
else
{
//:: Player failed the search check
return FALSE;
}
} */