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_dialog.nss
Normal file
19
_module/nss/sc_ra_rnd_dialog.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
// sc_ra_rnd_dialog
|
||||
// by: Tsurani.Nevericy
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
object oSelf = OBJECT_SELF;
|
||||
string sParam = GetScriptParam("iDialogueNum");
|
||||
int nCheck = GetLocalInt(oSelf, "iDialogue");
|
||||
if (!nCheck) // if no random value yet
|
||||
SetLocalInt(oSelf, "iDialogue", Random(10)+1);
|
||||
|
||||
int nVal = StringToInt(sParam);
|
||||
if (nVal == nCheck)
|
||||
{
|
||||
DeleteLocalInt(oSelf, "iDialogue");
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
Reference in New Issue
Block a user