generated from Jaysyn/ModuleTemplate
24 lines
717 B
Plaintext
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));
|
|
}
|