Fixed randomized commoner dialog & rumors

Fixed randomized commoner dialog & rumors
This commit is contained in:
Jaysyn904
2023-09-05 21:39:54 -04:00
parent 2f9f5fe435
commit 7f697d7467
79 changed files with 256 additions and 22 deletions

View File

@@ -3,10 +3,13 @@
int StartingConditional()
{
object oSelf = OBJECT_SELF;
string sParam = GetScriptParam("iRumorNum");
int nCheck = GetLocalInt(oSelf, "iRumor");
if (!nCheck) // if no random value yet
object oSelf = OBJECT_SELF;
string sParam = GetScriptParam("iRumourNum");
int nCheck = GetLocalInt(oSelf, "iRumor");
//:: Set a random value if var doesn't exist
if (!nCheck)
SetLocalInt(oSelf, "iRumor", Random(60)+1);
int nVal = StringToInt(sParam);
@@ -15,5 +18,6 @@ int StartingConditional()
DeleteLocalInt(oSelf, "iRumor");
return TRUE;
}
return FALSE;
}