Initial Commit

Initial Commit.
This commit is contained in:
Jaysyn904
2025-09-14 15:40:46 -04:00
parent 7083b33d71
commit 1eefc84201
19230 changed files with 11539227 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#include "mali_string_fns"
void main()
{
object oArea = GetArea(OBJECT_SELF);
int iChoice = GetLocalInt(OBJECT_SELF, "iConvChoice");
int iPage = GetLocalInt(OBJECT_SELF, "iConvPage");
int iPageLen = 10;
int iOffset = iPage * iPageLen;
int iEnc = iChoice + iOffset;
string sNum;
if (iEnc < 10)
{ sNum = "0" + IntToString(iEnc); }
else
{ sNum = IntToString(iEnc); }
string sEnc = GetLocalString(oArea, "encounter_" + sNum);
if (TestStringAgainstPattern("OFF:**", sEnc))
{ sEnc = RestWords(sEnc, "OFF:"); }
else
{ sEnc = "OFF:" + sEnc; }
SetLocalString(oArea, "encounter_" + sNum, sEnc);
}