19 lines
438 B
Plaintext
19 lines
438 B
Plaintext
|
//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++;
|
||
|
}
|
||
|
}
|