20 lines
451 B
Plaintext
20 lines
451 B
Plaintext
|
// 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;
|
||
|
}
|