er2.getMapLocations 4

Available from Easy Red 2 2.1.1

Fills a Lua table with the named places of the map (towns, villages, landmarks), each as a table with name and position. Useful to make a generated battle fight over real places instead of empty fields.


Return value

Return TypeDescription
NumberHow many locations were written into the table.

Parameters

ParameterTypeDescription
1TableAn empty Lua table. It is filled with one entry per location, each holding name and position.

Examples

No examples available.


Back to Scripting API