moveTowardCells

moveTowardCells

> Functions

Moves your entity closer to the first cell in a set of cells, using a maximum of mp movement points.

If, within the set of cells, there is a cell within movement range which brings your entity closer to the first cell of cells, then the entity will move to the cell of cells closest to the entity's starting square.

If, in the set of cells, there is no cell within movement range that brings your entity closer to the first cell of cells, then the entity will move closer to the first cell of the set of cells using a maximum of mp movement points.

Parameters
Return