Remade Dungeon Level One: Central
Remade Dungeon Level One: Central. Added Didiamus' creature overrides. Full compile.
This commit is contained in:
20
_module/nss/sc_chk_looted.nss
Normal file
20
_module/nss/sc_chk_looted.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oSelf = OBJECT_SELF;
|
||||
|
||||
string sPlacableTag = GetTag(oSelf);
|
||||
|
||||
int nPlayerLooted = GetLocalInt(oPC, "PlayerLooted_" + sPlacableTag); // Unique flag for each player
|
||||
int nBeenLooted1 = GetLocalInt(oSelf, "BeenLooted1_" + sPlacableTag);
|
||||
|
||||
// Check if the player has already attempted searching this placable
|
||||
if (nPlayerLooted == 1 || nBeenLooted1 == 1)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user