Plugin : Edge

Author:Rex.Rainbow

Download

Properties

Actions

Logic: Move

Action:Move edge between points

  • Move edge between points.
    • Edge ( object ) : Edge object.
    • LX0 ( number ) : The logic X of point 0.
    • LY0 ( number ) : The logic Y of point 0.
    • LX1 ( number ) : The logic X of point 1.
    • LY1 ( number ) : The logic Y of point 1.

Action:Move edge between chess

  • Move edge between chess.
    • Edge ( object ) : Edge object.
    • UID0 ( number or string ) : The UID of chess
    • UID1 ( number or string ) : The UID of neighbor chess

Action:Move edge around chess

  • Move edge around chess.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( number ) : The direction of chess.

Logic: Move - Hexagon grid (Left-Right)

Action:Move edge around chess

  • Move edge around chess.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Right","Down-right","Down-left","Left","Up-left","Up-right"]

Logic: Move - Hexagon grid (Up-Down)

Action:Move edge around chess

  • Move edge around chess.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Down-right","Down","Down-left","Up-left","Up","Up-right"]

Logic: Move - Square grid

Action:Move edge around chess

  • Move edge around chess.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Right","Down","Left","Up"]

Logic: Remove

Action:Destroy edges

  • Destroy edges and remove them from the board.
    • Edge ( object ) : Edge object.

Action:Remove edges

  • Remove edges from the board.
    • Edge ( object ) : Edge object.

Physical: Create

Action:Create edge between points

  • Create edge between two logic points.
    • Edge ( object ) : Edge object.
    • LX0 ( number ) : The logic X of point 0.
    • LY0 ( number ) : The logic Y of point 0.
    • LX1 ( number ) : The logic X of point 1.
    • LY1 ( number ) : The logic Y of point 1.
    • Layer ( layer ) : Layer name of number.

Action:Create edge between chess

  • Create edge between chess.
    • Edge ( object ) : Edge object.
    • UID0 ( number or string ) : The UID of chess
    • UID1 ( number or string ) : The UID of neighbor chess
    • Layer ( layer ) : Layer name of number.

Action:Create edge around chess

  • Create edge around chess.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( number ) : The direction of chess. (-1) for all directions
    • Layer ( layer ) : Layer name of number.

Physical: Create - Hexagon grid (Left-Right)

Action:Create edge around chess

  • Create edge around chess.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Right","Down-right","Down-left","Left","Up-left","Up-right"]
    • Layer ( layer ) : Layer name of number.

Physical: Create - Hexagon grid (Up-Down)

Action:Create edge around chess

  • Create edge around chess.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Down-right","Down","Down-left","Up-left","Up","Up-right"]
    • Layer ( layer ) : Layer name of number.

Physical: Create - Square grid

Action:Create edge around chess

  • Create edge around chess.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Right","Down","Left","Up"]
    • Layer ( layer ) : Layer name of number.

Pick chess

Action:Pick chess around edge at LZ

  • Pick chess around edge.
    • Chess ( object ) : Chess object.
    • Edge ( object ) : Edge object.
    • Logic Z ( number or string ) : The Z index (0-based).

Action:Pick chess around edge

  • Pick chess around edge.
    • Chess ( object ) : Chess object.
    • Edge ( object ) : Edge object.

Pick edge

Action:Pick all edges

  • Pick all edge.
    • Edge ( object ) : Edge object.

Action:Pick edge between points

  • Pick edge between two logic points.
    • Edge ( object ) : Edge object.
    • LX0 ( number ) : The logic X of point 0.
    • LY0 ( number ) : The logic Y of point 0.
    • LX1 ( number ) : The logic X of point 1.
    • LY1 ( number ) : The logic Y of point 1.

Action:Pick edges between chess

  • Pick edges between chess.
    • Edge ( object ) : Edge object.
    • UID0 ( number or string ) : The UID of chess
    • UID1 ( number or string ) : The UID of neighbor chess

Action:Pick edges around chess

  • Pick edges around chess at direction.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( number ) : The direction of chess.

Action:Pick edges clamped by chess

  • Pick edges clamped by chess.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.

Pick edge - Hexagon grid (Left-Right)

Action:Pick edges around chess

  • Pick edges around chess at direction.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Right","Down-right","Down-left","Left","Up-left","Up-right"]

Pick edge - Hexagon grid (Up-Down)

Action:Pick edges around chess

  • Pick edges around chess at direction.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Down-right","Down","Down-left","Up-left","Up","Up-right"]

Pick edge - Square grid

Action:Pick edges around chess

  • Pick edges by chess and direction.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Right","Down","Left","Up"]

Setup

Action:Setup

  • Set board object.
    • Board ( object ) : Board object

Expressions

Edge

Expression:LXY2EdgeUID

  • Get edge UID by LXY index. Return (-1) if this position has no edge.
    • LX0 ( number ) : The logic X of point 0.
    • LY0 ( number ) : The logic Y of point 0.
    • LX1 ( number ) : The logic X of point 1.
    • LY1 ( number ) : The logic Y of point 1.

Expression:ChessUID2EdgeUID

  • Get edge UID by chess UID. Return (-1) if this position has no edge.
    • UID0 ( number or string ) : The UID of chess
    • UID1 ( number or string ) : The UID of neighbor chess

Expression:ChessDIR2EdgeUID

  • Get edge UID by chess and direction. Return (-1) if this position has no edge.
    • UID ( number or string ) : The UID of chess
    • Direction ( number ) : The direction of chess.

Expression:ChessUID2EdgeCount

  • Get edge cout around the chess. Return (-1) if this chess is not on the board.
    • UID ( number or string ) : The UID of chess

Physical

Expression:EdgeUID2PX

  • Get physical X co-ordinate of edge by UID. Return (-1) if this edge is not valided.
    • UID ( number or string ) : The UID of edge

Expression:EdgeUID2PY

  • Get physical Y co-ordinate of edge by UID. Return (-1) if this edge is not valided.
    • UID ( number or string ) : The UID of edge

Expression:EdgeUID2PA

  • Get physical angle of edge by UID. Return (-1) if this edge is not valided.
    • UID ( number or string ) : The UID of edge

Conditions

Has edge

Condition:Has edge between points

  • Has edge between two points.
    • LX0 ( number ) : The logic X of point 0.
    • LY0 ( number ) : The logic Y of point 0.
    • LX1 ( number ) : The logic X of point 1.
    • LY1 ( number ) : The logic Y of point 1.

Condition:Has edge between chess

  • Has edge between chess.
    • UID0 ( number or string ) : The UID of chess
    • UID1 ( number or string ) : The UID of neighbor chess

Condition:Has edges around chess

  • Has any edge around chess at direction.
    • Chess ( object ) : Chess object.
    • Direction ( number ) : The direction of chess. (-1) for all directions.

Has edge - Hexagon grid (Left-Right)

Condition:Has edges around chess

  • Has edges around chess at direction.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Right","Down-right","Down-left","Left","Up-left","Up-right"]

Has edge - Hexagon grid (Up-Down)

Condition:Has edges around chess

  • Has edges around chess at direction.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Down-right","Down","Down-left","Up-left","Up","Up-right"]

Has edge - Square grid

Condition:Has edges around chess

  • Has edges by chess and direction.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Right","Down","Left","Up"]

Kick

Condition:On edge kicked

  • Triggered when edge kicked by "action:Create edge" or "action:Move edge".
    • Edge ( object ) : Kicked edge object.

Pick chess

Condition:Pick chess around edge at LZ

  • Pick chess around edge.
    • Chess ( object ) : Chess object.
    • Edge ( object ) : Edge object.
    • Logic Z ( number or string ) : The Z index (0-based).

Condition:Pick chess around edge

  • Pick chess around edge.
    • Chess ( object ) : Chess object.
    • Edge ( object ) : Edge object.

Pick edge

Condition:Pick all edges

  • Pick all edge.
    • Edge ( object ) : Edge object.

Condition:Pick edge between points

  • Pick edge between two logic points.
    • Edge ( object ) : Edge object.
    • LX0 ( number ) : The logic X of point 0.
    • LY0 ( number ) : The logic Y of point 0.
    • LX1 ( number ) : The logic X of point 1.
    • LY1 ( number ) : The logic Y of point 1.

Condition:Pick edges between chess

  • Pick edges between chess.
    • Edge ( object ) : Edge object.
    • UID0 ( number or string ) : The UID of chess
    • UID1 ( number or string ) : The UID of neighbor chess

Condition:Pick edges around chess

  • Pick edges around chess at direction.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( number ) : The direction of chess.

Condition:Pick edges clamped by chess

  • Pick edges clamped by chess.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.

Pick edge - Hexagon grid (Left-Right)

Condition:Pick edges around chess

  • Pick edges around chess at direction.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Right","Down-right","Down-left","Left","Up-left","Up-right"]

Pick edge - Hexagon grid (Up-Down)

Condition:Pick edges around chess

  • Pick edges around chess at direction.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Down-right","Down","Down-left","Up-left","Up","Up-right"]

Pick edge - Square grid

Condition:Pick edges around chess

  • Pick edges by chess and direction.
    • Edge ( object ) : Edge object.
    • Chess ( object ) : Chess object.
    • Direction ( Combo ) : The direction of chess.
      • Options : ["Right","Down","Left","Up"]