Added a faction, and minor stuff

Adding  faction goes through every area. I had no idea.
This commit is contained in:
EpicValor
2023-08-28 22:46:32 -05:00
parent 00305fc3a5
commit ac21a61c37
642 changed files with 44575 additions and 6193 deletions

View File

@@ -0,0 +1,19 @@
// sc_ra_rnd_dialog
// by: Tsurani.Nevericy
int StartingConditional()
{
object oSelf = OBJECT_SELF;
string sParam = GetScriptParam("iDialogueNum");
int nCheck = GetLocalInt(oSelf, "iDialogue");
if (!nCheck) // if no random value yet
SetLocalInt(oSelf, "iDialogue", Random(10)+1);
int nVal = StringToInt(sParam);
if (nVal == nCheck)
{
DeleteLocalInt(oSelf, "iDialogue");
return TRUE;
}
return FALSE;
}