A list of all Actions, Conditions and Expressions supported in this addon.
Pathfinding
-
Actions
Force paths calculations
Use this after one or many "findpath" directives to force them to execute immediately.
Find a path from ({0},{1}) to ({2},{3}) (tag {4})
Find a path between two tiles. Use "Force calculate" just after to make the call synchronous.
Set tiles {0} walkable
Set the walkable tile IDs. No tiles are walkable by default.
Set diagonal {0}
Enable or disable diagonals when searching for a path.
Set tile ID {0} relative cost to {1}
Set the relative cost to walk on a tile. All tiles have a default relative cost of 1.
Add obstacle at ({0},{1})
Set tile to act as an obstacle, regardless of whether or not it is a walkable tile.
Remove obstacle at ({0},{1})
Removes an additional obstacle.
Remove all additional obstacles
Removes all additional obstacles currently added.
Set iterations per calculation to {0}
Change the iterations per calculation parameter.
Cancel pending path jobs
Abort all path jobs not yet fully calculated.
Set empty tiles as {0}
Set or remove empty tiles as walkable.
Set tile cost at ({0},{1}) to {2}
Set a particular tile a specific cost that will override its natural value.
Remove specific tile cost at ({0},{1})
Removes the specific tile cost at this coordinate, reverting to its natural value.
Remove all specific tile costs
Removes all specific tile costs currently in effect.
Set corner cutting {0}
Enable or disable corner cutting when searching for a path.
-
Conditions
On path {0} found
Triggered when a path has been found and calculated.
On path {0} not found
Triggered when a path can't be found.
On any path found
Triggered when any path has been found.
On any path not found
Triggered when any path can't be found.
Is tile ({0}, {1}) walkable
Test if a tile is walkable.
Is tile ({0}, {1}) walkable from ({2}, {3})
Test if a tile is walkable from another tile.
-
Expressions
PathLength
Returns the length of the specified path.
NodeTileXAt
Returns the X tile coordinate of the specified node index and path name.
NodeTileYAt
Returns the Y tile coordinate of the specified node index and path name.
NodeLayoutXAt
Returns the X layout coordinate of the specified node index and path name.
NodeLayoutYAt
Returns the Y layout coordinate of the specified node index and path name.
CurrentTag
Returns the current tag in a "any path" trigger.
NodeCostAt
Returns the current cost at a specified node index and path name.
PathCost
Returns the total cost of a specific path name.
TileCostAt
Returns the relative cost at a specific tile coordinate.
Directional conditions
-
Actions
Begin adding directional conditions at {0},{1}
Begin adding directional conditions at a specific tile.
Add direction {0}
Add a directional condition for the current tile.
End adding directional condition for the current tile
End adding directional condition at the current tile.
Clear all directional conditions
Clear all currently added directional conditions.