Lenin1870
Chieftain
- Joined
- Mar 16, 2013
- Messages
- 50
I planned to make unique ability that is able to select other civs' unique abilities as 'Advanced Policies', but embodied unique abilities using Lua are not available using normal ways.
My idea about Lua scripts is following:
I wrote 'include("%w+.lua", true)' first for loading all Lua scripts, but I have no idea how I can insert conditions for my mod civ to integrate other mod civs' unique abilities into the all Lua scripts of other mods. For instance, If other scripts contain statements like 'if Players[iPlayerID] == GameInfoTypes[OtherCivsName]', I just convert it to statements including my mod civ info like 'if Players[iPlayerID] == GameInfoTypes[OtherCivsName] or Players[iPlayerID] == GameInfoTypes[MyCivsName]'.
But I don't confirm that method, and it may be impossible. Thus, I seek your advice.
My idea about Lua scripts is following:
I wrote 'include("%w+.lua", true)' first for loading all Lua scripts, but I have no idea how I can insert conditions for my mod civ to integrate other mod civs' unique abilities into the all Lua scripts of other mods. For instance, If other scripts contain statements like 'if Players[iPlayerID] == GameInfoTypes[OtherCivsName]', I just convert it to statements including my mod civ info like 'if Players[iPlayerID] == GameInfoTypes[OtherCivsName] or Players[iPlayerID] == GameInfoTypes[MyCivsName]'.
But I don't confirm that method, and it may be impossible. Thus, I seek your advice.