Added a faction, and minor stuff
Adding faction goes through every area. I had no idea.
This commit is contained in:
19
_module/nss/sc_ra_rnd_rumors.nss
Normal file
19
_module/nss/sc_ra_rnd_rumors.nss
Normal 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(13)+1);
|
||||
|
||||
int nVal = StringToInt(sParam);
|
||||
if (nVal == nCheck)
|
||||
{
|
||||
DeleteLocalInt(oSelf, "iRumor");
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
Reference in New Issue
Block a user