The_Space_Cows
Chieftain
- Joined
- Mar 18, 2023
- Messages
- 19
I am making a mod that would allow a player to obtain Great Works from City States via some method (any method I can actually get to work will do).
The current idea is to detect when a Great Merchant is used for a trade mission inside a city states borders, and then to give that player a Great Work of Art, where the creator of that Great Work is the City State and not the player. (This would allow theming bonus requirements to be fulfilled without trading with other players). It is the second part I am having trouble with.
There is virtually no information on the wiki about Lua methods doing anything with Great Works.
I am using whoward69's DLL, "DLL - Various Mod Components," and there are a few methods:
- Game.CreateGreatWork(eGreatWorkType, ePlayer, eEra, sCreator) *returns an int*
- pPlayeroSwapGreatWorks(eFocusYield)
But I don't understand some of these parameters. My understanding (possibly wrong) is the first method's parameters are supposed to be
- a specific Great Work's Type, i.e. GameInfoTypes.GREAT_WORK_*whatever great work*
- the player ID of the owner of the Great Work
- the game Era, i.e. GameInfoTypes.ERA_ANCIENT
- the name of the Great Artist in string format (could I just put "test" in here?)
Regarding the second method, I have no clue what eFocusYield is referencing. Doesn't sound like it has anything to do with Great Works.
The current idea is to detect when a Great Merchant is used for a trade mission inside a city states borders, and then to give that player a Great Work of Art, where the creator of that Great Work is the City State and not the player. (This would allow theming bonus requirements to be fulfilled without trading with other players). It is the second part I am having trouble with.
There is virtually no information on the wiki about Lua methods doing anything with Great Works.
I am using whoward69's DLL, "DLL - Various Mod Components," and there are a few methods:
- Game.CreateGreatWork(eGreatWorkType, ePlayer, eEra, sCreator) *returns an int*
- pPlayeroSwapGreatWorks(eFocusYield)
But I don't understand some of these parameters. My understanding (possibly wrong) is the first method's parameters are supposed to be
- a specific Great Work's Type, i.e. GameInfoTypes.GREAT_WORK_*whatever great work*
- the player ID of the owner of the Great Work
- the game Era, i.e. GameInfoTypes.ERA_ANCIENT
- the name of the Great Artist in string format (could I just put "test" in here?)
Regarding the second method, I have no clue what eFocusYield is referencing. Doesn't sound like it has anything to do with Great Works.