Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2025-04-03 11:24:16 -04:00
parent 3ba3cf1b81
commit 5e558169a0
6086 changed files with 1502996 additions and 1 deletions

View File

@@ -0,0 +1,67 @@
#include "scorekeep"
void main()
{
object oPC = GetLastUsedBy();
object oMod = GetModule();
object oTombChest = GetObjectByTag("tomb_chest");
object oTombChest2 = GetObjectByTag("tomb_chest2");
object oTombChest3 = GetObjectByTag("tomb_chest3");
object oItem;
int oItemCount = 0;
if (GetLocalInt(oMod, "mod_mode")==1)
{
PlaySound("sim_cntresist");
FloatingTextStringOnCreature
("** Not availible in campaign manager mode **", oPC);
return;
}
oItem = GetFirstItemInInventory(oTombChest);
while (oItem!=OBJECT_INVALID)
{
++oItemCount;
oItem = GetNextItemInInventory(oTombChest);
}
oItem = GetFirstItemInInventory(oTombChest2);
while (oItem!=OBJECT_INVALID)
{
++oItemCount;
oItem = GetNextItemInInventory(oTombChest2);
}
oItem = GetFirstItemInInventory(oTombChest3);
while (oItem!=OBJECT_INVALID)
{
++oItemCount;
oItem = GetNextItemInInventory(oTombChest3);
}
if (oItemCount==0)
{
FloatingTextStringOnCreature("Saving...", oPC);
StoreKills(oPC);
DelayCommand(0.3, StoreDeaths(oPC));
DelayCommand(0.6, StoreChall(oPC));
DelayCommand(0.9, StoreMon(oPC));
DelayCommand(1.2, StoreHits(oPC));
DelayCommand(1.5, StoreDamage(oPC));
DelayCommand(1.6, StoreSwings(oPC));
DelayCommand(1.7, StoreAOCscore(oPC));
DelayCommand(1.8, StoreDeity(oPC));
DelayCommand(1.9, ExportSingleCharacter(oPC));
DelayCommand(2.0, FloatingTextStringOnCreature("** Data recorded successfully **", oPC));
PlaySound("gui_select");
DelayCommand(2.1, PlaySound("sce_positive"));
}
else
{
PlaySound("sim_cntresist");
//FloatingTextStringOnCreature("You have forgotten your possessions in the storage chests!", oPC);
ActionStartConversation(oPC, "score_save", TRUE, FALSE);
}
}