ShelleyProm
Chieftain
- Joined
- Jan 5, 2019
- Messages
- 2
Hey, I want to mod a social policy in the patronage tree to give Food and Production from city state trade route.
My idea is to use the "TRAIT_GATEWAY_AFRICA" Trait to write my own trait with Food/Production instead of Gold/Culture. Next I need a .lua where every civ gain this trait when the social policy is choosen. There is my problem. I have nearly no idea when it comes to LUA. So far I have this which is not much. Maybe someone can help me here.
My idea is to use the "TRAIT_GATEWAY_AFRICA" Trait to write my own trait with Food/Production instead of Gold/Culture. Next I need a .lua where every civ gain this trait when the social policy is choosen. There is my problem. I have nearly no idea when it comes to LUA. So far I have this which is not much. Maybe someone can help me here.
Code:
function CustomPolicyTradeRoutes(iPlayer)
local player = Players[iPlayer]
if (player:HasPolicy(GameInfo.Policies["POLICY_CUSTOM_TEST"].ID)) then
end
end