Genghis.Khan
Person
I am currently creating an Armenian Civilization, for the RFE Project. I would like to implement the following Trait:
I am aware that this requires Lua coding and that I am only a very begginer with Lua, but I'd like to know if it is doable (even if it requires C++) and how.
I spent some time and I found the following method, which I think is a way to implement this Trait:
GetCityConnectionGold (and GetCityConnectionGoldTimes100)
I had already found a sample of code (in some scenario, the Fall of Rome or the Mongol one) in which a yield (not sure which, I think culture) was added , based on City Capture (or something like that). So would it be possible to code something like this:
Crossroads of Caucasus- Generate Faith and Culture per each Trade Route
I am aware that this requires Lua coding and that I am only a very begginer with Lua, but I'd like to know if it is doable (even if it requires C++) and how.
I spent some time and I found the following method, which I think is a way to implement this Trait:
GetCityConnectionGold (and GetCityConnectionGoldTimes100)
I had already found a sample of code (in some scenario, the Fall of Rome or the Mongol one) in which a yield (not sure which, I think culture) was added , based on City Capture (or something like that). So would it be possible to code something like this:
Code:
-- Crossroads of Caucasus.lua
-- File Version: 0.1 (25-05-2013)
-- Author: Genghis.Khan
-- Special Thanks:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
if Player:GetCivilizationType() == GameInfoTypes["CIVILIZATION_ARMENIA"]) then
Player.GetCityConnectionGold --Times100?
-- Add Culture and Faith Equal to 1/5 of Gold Generation from Trade Routes
end