Variables & Timers

These conditions and actions are applicable specifically to variables (internal, global or local) and timers (global or entity based).

CONDITIONS

ETIMERGREATER=X

Description: Is true if the entity’s timer is greater than X milliseconds. This timer cannot be seen by other entities.

Range: X > 0 (no upper limit)

Example: :etimergreater=1000:state=1

TIMERGREATER=X

Description: Is true if the game’s timer is greater than X milliseconds. This timer can be seen by any entity.

Range: X >0 (no upper limit)

Example: :timergreater=1000:state=1

VAREQUAL=X and VAREQUAL=VarName X

Description: Is true if the variable defined by “VarName” equals X. If no “VarName” is provided, the current variable, defined by globalvar or localvar, is tested.

Range: VarName = Variable name (global or local)

        X = 3.4x10±38 (float variable range from Dark Basic Pro)

Example 1: :varequal=PrimaryObjective 2:state=1

Example 2: :always:globvar=1

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 120px">                            :varequal=5:state=1

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 70.9pt">VARGREATER=X and VARGREATER=VarName X

<p style="margin: 0cm 0cm 6pt 40px">Description: Is true if the variable defined by “VarName” is greater than X. If no “VarName” is provided, the current set variable, defined by globalvar or localvar, is tested.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Variable name (global or local)

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 120px">       X = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 80px">    Example 1:  :vargreater=PrimaryObjective 2:state=1

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 120px">Example 2: :always:globvar=1

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 70.9pt">                                   :vargreater=5:state=1

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 70.9pt">VARLESS=X and VARLESS=VarName X

<p style="margin: 0cm 0cm 6pt 40px">Description: Is true if the variable defined by “VarName” is less than. If no X “VarName” is provided, the current set variable, defined by globalvar or localvar, is tested.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Variable name (global or local)

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 120px">       X = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 120px">Example 1: :varless=PrimaryObjective 2:state=1

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 120px">Example 2: :always:globvar=1

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 70.9pt">                                   :varless=5:state=1

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 70.9pt">VARNOTEQUAL=X and VARNOTEQUAL= VarName X

<p style="margin: 0cm 0cm 6pt 40px">Description: Is true if the variable defined by “VarName” is not equal to X. If no “VarName” is provided, the current set variable, defined by globalvar or localvar, is tested.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Variable name (global or local)

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 120px">       X = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 120px">Example 1: :varnotequal=PrimaryObjective 2:state=1

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 120px">Example 2: :always:globvar=1

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 120px">                            :varnotequal=5:state=1

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 70.9pt">ACTIONS

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 70.9pt">ADDVAR=VarName Y

<p style="margin: 0cm 0cm 6pt 40px">Description: This adds Y to variable called VarName. The variable can be global or local.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Variable name (internal, global or local)

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 42.55pt">                        Y = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=0:addvar=KillCount 1

<p style="margin: 0cm 0cm 6pt">DECVAR=X

<p style="margin: 0cm 0cm 6pt 40px">Description: This reduces the current set variable by X. To use this action with named created using dimvar, use the setvar action prior to this action.

<p style="margin: 0cm 0cm 6pt 40px">Range: X = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="margin: 0cm 0cm 6pt 40px">Example: :always:setvar=HealthPacks

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 2cm">                             :state=0:decvar=1

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 2cm">DIMLOCALVAR=VarName

<p style="margin: 0cm 0cm 6pt 40px">Description: This creates a local variable that can only be accessed by the FPI script.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Your variable name.

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=0:dimlocalvar=PassWordAttempts

<p style="margin: 0cm 0cm 6pt">DIMVAR=VarName

<p style="margin: 0cm 0cm 6pt 40px">Description: This creates a global variable that can only be accessed by all FPI scripts.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Your variable name.

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=0:dimvar=KillCount

<p style="margin: 0cm 0cm 6pt">DIVVAR=VarName Y

<p style="margin: 0cm 0cm 6pt 40px">Description: This divides the variable called VarName by Y. the variable can be local or global.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Variable name (internal, global or local)

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 120px">       Y = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=1:divvar=1 10

<p style="margin: 0cm 0cm 6pt">ETIMERSTART

<p style="margin: 0cm 0cm 6pt 40px">Description: This starts the entity’s own timer. This timer cannot be seen by any other entity.

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=0:etimerstart

<p style="margin: 0cm 0cm 6pt">GLOBALVAR=X

<p style="margin: 0cm 0cm 6pt 40px">Description: This sets the FPI to look at global variable X.

<p style="margin: 0cm 0cm 6pt 40px">Range: X = 0 to 99, or a named variable

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=0:globalvar=1

<p style="margin: 0cm 0cm 6pt">INCVAR=X

<p style="margin: 0cm 0cm 6pt 40px">Description: This increases the current set variable by X. To use this action with named created using dimvar, use the setvar action prior to this action.

<p style="margin: 0cm 0cm 6pt 40px">Range: X = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="margin: 0cm 0cm 6pt 40px">Example: :always:setvar=HealthPacks

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 80px">                            :state=0:incvar=1

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 2cm">LOCALVAR=X

<p style="margin: 0cm 0cm 6pt 40px">Description: This sets the FPI to look at local variable X.

<p style="margin: 0cm 0cm 6pt 40px">Range: X = 0 to 99, or named variable

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=0:localvar=1

<p style="margin: 0cm 0cm 6pt">MODVAR=VarName Y

<p style="margin: 0cm 0cm 6pt 40px">Description: This performs a modulus operation to the variable called VarName by Y. the variable can be local or global. The modvar action is similar to the wrapvar action with the exception that Y defines the ‘wrap around’ point. For example modvar=RotateAngle 360 is the same is wrapvar=RotateAngle.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Variable name (internal, global or local)

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 120px">        Y = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=0:modvar=Seconds 60

<p style="margin: 0cm 0cm 6pt">MULVAR=VarName Y

<p style="margin: 0cm 0cm 6pt 40px">Description: This multiplies the variable called VarName by Y. the variable can be local or global.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Variable name (internal, global or local)

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 120px">        Y = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=1:mulvar=$PH 10

<p style="margin: 0cm 0cm 6pt">SETVAR=Y and SETVAR=VarName Y

<p style="margin: 0cm 0cm 6pt 40px">Description: This sets the variable called VarName to Y. the variable can be local or global. If no “VarName” is provided, the current set variable, defined by globalvar or localvar, is used.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Variable name (internal, global or local)

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 120px">        Y = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 120px">Example 1: :state=0:setvar=PlrHasUberKnife 1

<p style="text-indent: -2cm; margin: 0cm 0cm 6pt 120px">Example 2: :always:globvar=1

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 120px">                             :state=5:setvar=1

<p style="text-indent: -70.9pt; margin: 0cm 0cm 6pt 70.9pt">SUBVAR=VarName Y

<p style="margin: 0cm 0cm 6pt 40px">Description: This subtracts Y from the variable called VarName. The variable can be global or local.

<p style="margin: 0cm 0cm 6pt 40px">Range: VarName = Variable name (internal, global or local)

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 120px">       Y = 3.4x10±38 (float variable range from Dark Basic Pro)

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=0:subvar=EnemiesLeft 1

<p style="margin: 0cm 0cm 6pt">TIMERSTART

<p style="margin: 0cm 0cm 6pt 40px">Description: This starts the global timer. This timer can be seen by all entities.

<p style="margin: 0cm 0cm 6pt 40px">Example: :activated=1:timerstart

<p style="margin: 0cm 0cm 6pt">WRAPVAR=VarName Y

<p style="margin: 0cm 0cm 6pt 40px">Description: This performs a modulus operation to the variable called VarName by 360. the variable can be local or global. For example wrapvar=RotateAngle will set RotateAngle to 5 if it originally equalled 365.

<p style="text-indent: -42.55pt; margin: 0cm 0cm 6pt 120px">Range: VarName = Variable name (internal, global or local)

<p style="margin: 0cm 0cm 6pt 40px">Example: :state=0:wrapvar=$CAX