HiddenTradition_PRC8/_module/nss/h2c_random1of5.nss
2024-06-20 15:47:42 -04:00

26 lines
641 B
Plaintext

//::///////////////////////////////////////////////
//:: Random 1 of 5 (Condition Script)
//:: H2c_Random1of5.nss
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Saves out a random number between 1 and 5.
Returns TRUE if it equals 1.
*/
//:://////////////////////////////////////////////
//:: Created By: Rob Bartel
//:: Created On: October 16, 2003
//:://////////////////////////////////////////////
int StartingConditional()
{
int iRandom = Random(5)+1;
SetLocalInt(OBJECT_SELF, "iRandom", iRandom);
if (iRandom == 1)
{
return TRUE;
}
return FALSE;
}