Errors are possible.Ĭontributors may find help in the Contributors guide to the Civ5 API.
WHERE ARE CIV 5 MODS STORED CODE
Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.įunctions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ.
![where are civ 5 mods stored where are civ 5 mods stored](https://www.fanbyte.com/wp-content/uploads/2019/02/Civ-6-Hall-of-Fame.jpg)
Unit: SetHasPromotion ( PromotionType index, bool newValue ) Unit: Promote ( PromotionType promotion, int leaderUnitId ) Unit: IsPromotionValid ( PromotionType promotion ) Unit: IsHasPromotion ( PromotionType promotion ) Unit: CanPromote ( PromotionType promotion, int leaderUnitId ) Unit: CanAcquirePromotion ( PromotionType promotion ) Local description = GameInfo.UnitPromotions().DescriptionĬity: GetFreePromotionCount ( PromotionType index )Ĭity: IsFreePromotion ( PromotionType index ) Allows to change terrain type, features, improvements, roads and resources in game.Accessible via new button in top right corner of the window near the Civilopedia button.Works with GS. Those examples will return and assign the integer value 0. Adds a button to the in-game menu to restart using the same game settings. Here are different ways to query the database to retrieve the ID from the type. PROMOTION_OCEAN_IMPASSABLE_UNTIL_ASTRONOMY Here are the ID and Type columns found in this table.
![where are civ 5 mods stored where are civ 5 mods stored](https://www.alteredgamer.com/ezoimgfmt/img.bhs4.com/fb/c/fbc271896c61e371704bc88374a64135827b7473_large.jpg)