immigration from tourism

Wolffleet

Chieftain
Joined
Jun 1, 2019
Messages
66
Hi I'm trying to make a mod that allows cities connected by trade route or just roads to exchange population.

So in the case of two cities A and B which share a trade route or road. I was thinking something like
City A: tourism/City B: culture is the percent chance every turn that a citizen from City B goes to City A.

I was thinking to make this mod I need kind_route, PSEUDOYIELD_CITY_POPULATION, YIELD_CULTURE, and PSEUDOYIELD_TOURISM. I really have no clue from here how to start this mod. Any help would be appreciated.
 
  1. There's no way you will be able to do this via XML or SQL coding.
  2. PseudoYields are only to help the AI understand what something is good for. They have no actual effect within the game.
  3. In order to implement this you would probably need (if you can even get it to work) a rather complicated and processing-heavy set of lua scripts.
 
Back
Top Bottom