Craig_Sutter
Deity
I am trying to make a leader trait for one of my civilizations. I would like the player's cities to gain +1 Amenities if they have the same religion as the capital.
First, can this be done using modifiers. I think not, but would like confirmation.
Second, assuming I need lua, I wonder what game hook I could use. I think GameCoreEvent CityReligionChanged... but in the information I have obtained from this forum, I cannot find any variables provided... Similar Civ 5 events provided iPlayer, iCity, eReligion, etc or similar such information. Are there more details provided that I have missed.
My idea is to have the event whenever a city of the player changes Religion. At which point, I would run a function to determine the religion in the capital and that city and if they were the same, install/remove a dummy building. As well, I need to account if the religion in the capital city changes, in which case, I would loop through all the players cities and check if they were the same or different in religion than the capital and install/remove the dummy building.
The dummy building would provide +1 Amenities if the religion if the city matches to the capital's.
I am okay at modding Civ lua, but have never modded Civ 6 lua. So I am a little uncertain. Normally, I would go through others' mods or the game scenarios for clues, but there is a lack of examples to go by.
Am I missing anything?
Also, I have never added a script to a Civ 6 modinfo file. Any hints?
First, can this be done using modifiers. I think not, but would like confirmation.
Second, assuming I need lua, I wonder what game hook I could use. I think GameCoreEvent CityReligionChanged... but in the information I have obtained from this forum, I cannot find any variables provided... Similar Civ 5 events provided iPlayer, iCity, eReligion, etc or similar such information. Are there more details provided that I have missed.
My idea is to have the event whenever a city of the player changes Religion. At which point, I would run a function to determine the religion in the capital and that city and if they were the same, install/remove a dummy building. As well, I need to account if the religion in the capital city changes, in which case, I would loop through all the players cities and check if they were the same or different in religion than the capital and install/remove the dummy building.
The dummy building would provide +1 Amenities if the religion if the city matches to the capital's.
I am okay at modding Civ lua, but have never modded Civ 6 lua. So I am a little uncertain. Normally, I would go through others' mods or the game scenarios for clues, but there is a lack of examples to go by.
Am I missing anything?
Also, I have never added a script to a Civ 6 modinfo file. Any hints?