Lua snippets for mod makers

Not Firaxis, but you

It's
Code:
MissionTypes.MISSION_MOVE_TO
and
Code:
MissionTypes.MISSION_RANGE_ATTACK

MISSION_MOVE_TO (which is a nil value) only happens to work because MissionTypes.MISSION_MOVE_TO has the value 0 and the C++ Lua API treats nil as 0

and it's _RANGE_ not _RANGED_ as well
 
Best source of documentation on Civ 5 Lua is the Civ 5 Lua source ;)
 
Actually I am not learning too much stuff from the Civ 5 Lua source, because it is too confusing for me. :D I mainly learn by the explanations in the DLL source code and sometimes by the Lua and UI Reference Wiki.
 
Back
Top Bottom