Files
HeroesStone_PRC8/_module/nss/07_randenctrig.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

24 lines
717 B
Plaintext

//::///////////////////////////////////////////////
//:: 07_randenctrig
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Script used in onenter of a deactivated encounter
it searches fo a variable stored on the encounter
and determines the chance that this encounter may be active
see encounter "07_RANDFIRETEMP"
*/
//:://////////////////////////////////////////////
//:: Created By: ruelk
//:: Created On: 2/21/04
//:://////////////////////////////////////////////
void main()
{
int nChance = GetLocalInt(OBJECT_SELF, "Chance");
if (d100() > nChance)
return;
SetEncounterActive(TRUE,OBJECT_SELF);
DelayCommand(2.0,SetEncounterActive(FALSE,OBJECT_SELF));
}