brianshapiro
King
- Joined
- Mar 6, 2003
- Messages
- 775
As the title says, they're fired whenever a feature is first drawn on the active player's map; that doesn't necessarily mean when the feature is created, it could be when a tile is revealed and already has that feature on it. In FireTuner, click on Reveal/Refresh map and its obvious.
The Wiki doesn't note this.
I added the text for SerialEventImprovementCreated and SerialEventImprovementDestroyed, which I tested out.
http://wiki.2kgames.com/civ5/index.php/Lua_Game_Objects/Events#SerialEventImprovementCreated
http://wiki.2kgames.com/civ5/index.php/Lua_Game_Objects/Events#SerialEventImprovementDestroyed
SerialEventImprovementCreated fires twice in the course of creating an improvement, once when it draws the tile for a partially-made improvement, which begins when the Worker does the build action, and once for the fully complete improvement.
Both methods have two more arguments, which seem to always be the same value as eachother, and also seem correspond to the Continent art type. Oceans show as 0 , and building an improvement on a different land mass will give you a different number, while building it on the same land mass will give you the same number
The Wiki doesn't note this.
I added the text for SerialEventImprovementCreated and SerialEventImprovementDestroyed, which I tested out.
http://wiki.2kgames.com/civ5/index.php/Lua_Game_Objects/Events#SerialEventImprovementCreated
http://wiki.2kgames.com/civ5/index.php/Lua_Game_Objects/Events#SerialEventImprovementDestroyed
SerialEventImprovementCreated fires twice in the course of creating an improvement, once when it draws the tile for a partially-made improvement, which begins when the Worker does the build action, and once for the fully complete improvement.
Both methods have two more arguments, which seem to always be the same value as eachother, and also seem correspond to the Continent art type. Oceans show as 0 , and building an improvement on a different land mass will give you a different number, while building it on the same land mass will give you the same number