Added random dialog & dungeon rumor system.

Added random dialog & dungeon rumor system.
This commit is contained in:
Jaysyn904
2022-12-05 19:05:00 -05:00
parent 6c78e38de8
commit 1cbe12fdda
17 changed files with 9719 additions and 34 deletions

View File

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