Aantioch_Infernum/_module/nss/sc_ra_rnd_rumors.nss
EpicValor 49aab355dd Cleaned up and enhanced badlands area
jaysyn got the rumormill convo working
updated all the npcs that use it
2023-09-05 21:26:15 -05:00

24 lines
484 B
Plaintext

// sc_ra_rnd_rumors
// by: Tsurani.Nevericy
int StartingConditional()
{
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(13)+1);
int nVal = StringToInt(sParam);
if (nVal == nCheck)
{
DeleteLocalInt(oSelf, "iRumor");
return TRUE;
}
return FALSE;
}