Aschbourne_PRC8/_module/nss/per_safe_item_op.nss

19 lines
438 B
Plaintext
Raw Permalink Normal View History

2024-06-14 10:48:20 -04:00
//ScarFace's Persistent Baking system -OnOpen-
void main()
{
object oPC = GetLastOpenedBy();
string sKey = GetPCPublicCDKey(oPC);
int iCount = 1;
string sCount;
string sResRef;
location lLoc = GetLocation(OBJECT_SELF);
while (iCount <= 100)
{
sCount = IntToString(iCount);
RetrieveCampaignObject("STORAGE", sKey+sCount, lLoc, OBJECT_SELF, oPC);
DeleteCampaignVariable("STORAGE", sKey+sCount, oPC);
iCount++;
}
}