Modifier Activation


Mar 2, 2023
I'm attempting to create a custom civ ability that grants a free settler when the player settles their first city adjacent to a river. These modifiers exist already, but I am having trouble figuring out how they are actually activated.

The Religious Settlements pantheon already grants a free settler in the player's capital when chosen, so I've been attempting to use this modifier in order to implement my own desired behavior. It seems like it would be fairly straightforward to spawn the settler when something like a building is constructed, but I'm having trouble figuring out how to spawn it when the capital is settled. The closest thing I can think of is to use something like the Hic Sunt Dracones effect of spawning a free builder in a settled city, but replacing the free builder with a settler in the capital.

Any ideas on how this should properly be implemented? I can post my current code if it would help. Thanks!
Top Bottom