Initial commit. Updated release archive.
This commit is contained in:
25
_module/nss/h2c_random1of5.nss
Normal file
25
_module/nss/h2c_random1of5.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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;
|
||||
}
|
||||
Reference in New Issue
Block a user