Could we please get:
- GameEvents.CanAnnexCity(iPlayer, iCityID)
- GameEvents.CanPuppetCity(iPlayer, iCityID)
whenever you get the chance? I feel what these two would do should be a bit self-explanatory, but let me know if you have questions. Thank you again for all your hard work on the CP and CBP; the level of dedication you have to the project is astounding.
Could we please get:
- GameEvents.CanAnnexCity(iPlayer, iCityID)
- GameEvents.CanPuppetCity(iPlayer, iCityID)
whenever you get the chance? I feel what these two would do should be a bit self-explanatory, but let me know if you have questions. Thank you again for all your hard work on the CP and CBP; the level of dedication you have to the project is astounding.
I wanted to ask about Resolutions and how the AI determines whether they will vote for or against them (or whatever). I thought I'd ask here, because I assume the Resolution code is a jumbled mess, so I would hesitate to make any specific requests as yet.
There's no function in the DLL for those events where you can hook in - the 'tests' are scattered about and are simply booleans based on factors such as whether or not the city is your capital, etc. Sorry. :/
Thanks for looking. It's not much of a big deal to edit PuppetCityPopup.lua, but it'll be a bit of a chore to keep AIs from breaking the rules. I suppose I could hook something up to SerialEventCityInfoDirty, but yeesh, that'll be a performance hit.
Regarding the Promotion durations, I did test it out by adding in a few simple promotions with the tag and it worked, but it was a rather quick test. I will test them more thoroughly soon, particularly to make sure they work across saving/reloading.
Regarding the puppet stuff, what're you trying to achieve? I could simply add a lua function that allows you to check if puppeting it is possible. It won't be robust (it'll be a bool, essentially), but it'll work.