Plugin : SLG movement

Author:Rex.Rainbow

Download

Properties

Path mode

  • Geometry of moving path.
    • Options : ["Random","Diagonal","Straight","A*","Line","A* -line","A* -random"]

Cache cost

  • Cache the cost of each tile in a request.
    • Options : ["No","Yes"]

Shuffle neighbors

  • Shuffle the order of checking neighbors.
    • Options : ["No","Yes"]

Weight

  • Weight of heuristic estimation for A*- path mode.

Actions

Cost

Action:Set cost

  • Set cost.
    • Cost ( number ) : Cost

Filter

Action:Append filter result

  • Append filter result in UID.
    • UID ( number or string ) : Filter result

Request: Moveable area

Action:Get moveable area

  • Get moveable area.
    • Chess ( object ) : Chess object.
    • Moving points ( number ) : Moving points.
    • Moving cost ( number or string ) : A number or a function name to get moving cost for each tile.
    • Filter ( string ) : Filter function name to get avaiable uid, "" is passing default.
    • Group ( string ) : Put result in this group

Action:Get moveable area by UID

  • Get moveable area.
    • UID ( number or string ) : The UID of chess
    • Moving points ( number ) : Moving points.
    • Moving cost ( number or string ) : A number or a function name to get moving cost for each tile.
    • Filter ( string ) : Filter function name to get avaiable uid, "" is passing default.
    • Group ( string ) : Put result in this group

Request: Moving path

Action:Get moving path

  • Get moving path.
    • Chess ( object ) : Chess object.
    • Tile/Chess ( object ) : Tile/Chess object.
    • Moving points ( number ) : Moving points.
    • Moving cost ( number or string ) : A number or a function name to get moving cost for each tile.
    • Group ( string ) : Put result in this group
    • Exact ( Combo ) : Exact or nearest.
      • Options : ["","nearest"]

Action:Get moving path by UID

  • Get moving path.
    • Chess UID ( number or string ) : The UID of chess
    • Tile/Chess UID ( number or string ) : The UID of tile/chess
    • Moving points ( number ) : Moving points.
    • Moving cost ( number or string ) : A number or a function name to get moving cost for each tile.
    • Group ( string ) : Put result in this group
    • Exact ( Combo ) : Exact or nearest.
      • Options : ["","nearest"]

Setup

Action:Setup

  • Set board object and instance group object.
    • Board ( object ) : Board object
    • Group ( object ) : Instance group object

Action:Set path mode

  • Set path mode.
    • Path mode ( Combo ) : Geometry of moving path.
      • Options : ["Random","Diagonal","Straight","A*","Line","A*-line","A*-random"]

Action:Set random generator

  • Set random generator object.
    • Random generator ( object ) : Random generator object

Expressions

Cost

Expression:BLOCKING

  • Blocking property used in cost function, used in action:"Set cost". The value is (-1)

Moving point

Expression:INFINITY

  • Infinity property used in moving point, used in Moving point. The value is (-1)

Request

Expression:ChessUID

  • Get UID of selected chess.

Expression:TileUID

  • Get UID of target tile.

Expression:TileX

  • Get logic X of target tile.

Expression:TileY

  • Get logic Y of target tile.

Expression:StartTileUID

  • Get UID of start tile.

Expression:StartX

  • Get logic X of target position.

Expression:StartY

  • Get logic Y of start position.

Request: Previous

Expression:PreTileUID

  • Get UID of previos tile.

Expression:PreTileX

  • Get logic X of previos tile.

Expression:PreTileY

  • Get logic Y of previos tile.

Expression:PreTilePathCost

  • Get path cost of previos tile.

Result

Expression:UID2PathCost

  • Get path cost of chess/tile by UID. Retrun (-1) if unknown.
    • UID ( number or string ) : UID of tile

Expression:NearestTileUID

  • Get UID of nearest tile to target.

Expression:EndTileUID

  • Get UID of end tile.

Expression:EndX

  • Get logic X of end tile.

Expression:EndY

  • Get logic Y of end tile.

Conditions

Cost

Condition:On cost

  • Cost function to get cost of each tile.
    • Name ( string ) : Cost function name.

Filter

Condition:On filter

  • Filter function to re-assign target instances.
    • Name ( string ) : Filter function name.