Behavior : Buff

Author:Rex.Rainbow

Download

Properties

Base

  • Initial base value.

Max

  • Maximum bound.

Min

  • Minimum bound.

Actions

Base

Action:Set value

  • Set base value.
    • Base ( number ) : Base value.

Action:Add to

  • Add to the base value.
    • Value ( number ) : Value to add to this variable.

Action:Subtract from

  • Subtract from the base value.
    • Value ( number ) : Value to subtract from this variable.

Bound

Action:Set maximum bound

  • Set maximum bound.
    • Max ( number ) : Maximum bound.

Action:Set minimum bound

  • Set minimum bound.
    • Min ( number ) : Minimum bound.

Buff

Action:Add

  • Add buff.
    • Name ( string ) : Buff name
    • Priority ( number ) : Priority of buff. -1 is not in accumulation queue
    • Value ( number or string ) : Buff value. Number (1), or string ("10%") for percentage.
    • Clamp ( Combo ) : Clamp in boundaries or not.
      • Options : ["Without clamped","Clamped in boundaries"]

Action:Remove

  • Remove buff.
    • Name ( string ) : Buff name

Action:Remove all

  • Remove all buffs.

Expressions

Base

Expression:Base

  • Get base value.

Bound

Expression:Max

  • Get maximum bound.

Expression:Min

  • Get minimum bound.

Buff

Expression:Buff

  • Get total buff value, or add 2nd parameter to get specific buff value by name (string) or queue index (number).

Expression:NextPriority

  • Get next lower priority.

Queue

Expression:BuffCount

  • Get total buff count in queue.

Queue - for each

Expression:CurBuffName

  • Get current buff name in a for each loop.

Expression:CurBuffValue

  • Get current buff value in a for each loop.

Queue - for each - index

Expression:CurIndex

  • Get current index in a for each loop.

Queue - index

Expression:Index2BuffName

  • Get buff name by queue index.
    • Index ( number ) : Queue index

Expression:Index2BuffValue

  • Get buff value by queue index.
    • Index ( number ) : Queue index

Result

Expression:Sum

  • Get sum of base value and buffs.

Conditions

Queue

Condition:For each buff

  • Repeat the event for each buff in queue.

Value

Condition:On sum changing

  • Triggered when sum changing.

Condition:Compare sum

  • Compare sum.
    • Comparison ( cmp ) : Choose the way to compare sum.
    • Value ( number ) : The value to compare the sum to.