RATDOG/_module/nss/sc_ra_rnd_rumour.nss
Jaysyn904 1cbe12fdda Added random dialog & dungeon rumor system.
Added random dialog & dungeon rumor system.
2022-12-05 19:05:00 -05:00

20 lines
456 B
Plaintext

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