Data ActorExpression - BLKTower/TestWiki GitHub Wiki

Table of Contents

Data\Actor\Conditions {DataDataActorData-ActorConditions}

Conditions to be met for the actions to be executed. If any of the condition evaulates to 0 or false, the actions will not be executed. Note that the condition will be evaulated in the context of an existing actor. If this event is used to create a new actor (e.g., create a actor when a certain behavior is turned on), the evaulation context will be the root of the actor scope (e.g., the unit actor). If no actor can be found, the conditions are assumed to be met.

Compare {Compare}

Compares two values/expressions and returns true or false based on the result.

Constant {Constant}

Returns the given integer. Useful for comparing to other values.

Variable {Variable}

Returns the given variable. Variables are set with the Set Variable actor action.

Add {Add}

Returns the sum of the listed expressions.

If {If}

Returns the result of the evaluated expression if the condition is true. Otherwise returns false.

Random Int {Random-Int}

Returns a random integer between the min and max value.

Divide {Divide}

Returns the result of the left value divided by the right value.

Multiply {Multiply}

Returns the result of the listed expressions multiplied together.

Subtract {Subtract}

Returns the result of the right value subtracted from the left value.

Logic Not {Logic-Not}

Returns the flipped value or expression (true becomes false, false becomes true).

Logic And {Logic-And}

Returns true if all listed values/expressions are true.

Logic Or {Logic-Or}

Returns true if any listed values/expressions are true.

Area Search Radius {Area-Search-Radius}

If the actor is created by an area search effect from an action actor, returns the radius of the search effect.

Unit Weapon Range {Unit-Weapon-Range}

If the actor scope contains a unit, returns the maximum range of a weapon on the unit.

Unit Ability Range {Unit-Ability-Range}

If the actor scope contains a unit, returns the range of an ability on the unit.

Unit Team Id {Unit-Team-Id}

If the actor scope contains a unit, returns the team id of the unit.

Behavior Stack Count {Behavior-Stack-Count}

If the actor scope contains a unit, returns the current stack count of a behavior of the unit.

Unit Radius {Unit-Radius}

If the actor scope contains a unit, returns the radius of the unit.

Is Critical Hit {Is-Critical-Hit}

Returns true if the actor event triggered by a critical hit.

Viewer Has Alliance Type {Viewer-Has-Alliance-Type}

Returns true if the current viewer has a certain alliance type with the unit in the actor scope.

Viewer Has Player Id {Viewer-Has-Player-Id}

Returns true if the current viewer has a certain player id.

Behavior Stack Count Delta {Behavior-Stack-Count-Delta}

If the actor event is triggered by behavior_stack_increase or behavior_stack_decrease, returns the stack count delta.

⚠️ **GitHub.com Fallback** ⚠️