// 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; }