Civitar
Adventurer
In Warhammer I've changed the way in which religions work. Instead of Religions you have Cults of this deity or that one. The intended mechanic is the following:
Machiavelli's Religions Grant Buildings snippet does #3 perfectly. But how can I basically invert the function of Machiavelli's stuff? So that Buildings Grant Religions?
To do the whole buildable/unbuildable swap happen, I thought I could do the following:
Have a building like BUILDING_TEMPLE_OF_SQL_FOUNDER that is a World Wonder, when it is finished the CULT_CULT_OF_LUA is founded in that city. Wherever the CULT_OF_LUA is a majority religion, the city gets the building BUILDING_TEMPLE_OF_SQL. So really, all I need is some Lua that lets a building found a religion upon being completed. And since all the effects of the religion are implemented through its holy buildings and units, there's no need to worry about effects.
So anyone who can produce that tidbit would be a UNIT_HERO, and their name will be installed in the BUILDING_HALL_OF_CREDITS of the Warhammer mod.
Thank you!
- Before the cult has been founded, there is a buildable Holy Building of that Cult.
- The first city in the world to finish constructing that Building has the appropriate Cult automatically founded in it as the Holy City.
- The Holy Building is now unbuildable. But if a cult becomes a majority religion in a city, that city will be given the Holy Building automatically.
Machiavelli's Religions Grant Buildings snippet does #3 perfectly. But how can I basically invert the function of Machiavelli's stuff? So that Buildings Grant Religions?
To do the whole buildable/unbuildable swap happen, I thought I could do the following:
Have a building like BUILDING_TEMPLE_OF_SQL_FOUNDER that is a World Wonder, when it is finished the CULT_CULT_OF_LUA is founded in that city. Wherever the CULT_OF_LUA is a majority religion, the city gets the building BUILDING_TEMPLE_OF_SQL. So really, all I need is some Lua that lets a building found a religion upon being completed. And since all the effects of the religion are implemented through its holy buildings and units, there's no need to worry about effects.
So anyone who can produce that tidbit would be a UNIT_HERO, and their name will be installed in the BUILDING_HALL_OF_CREDITS of the Warhammer mod.
Thank you!