pineappledan
Deity
Hello,
I have run into an issue with a lua code I wrote that trigger on conquest.
when CityCaptureComplete is triggered, the city is immediately given away / converted into a city state. This part of the code works perfectly, the problem is that all your other cities lose their build queue after this. Everything you put in the queue still gets built, but the list of things to build disappears, so you can’t add new units/buildings/projects to the queue. Obviously this only affects human players.
If I save and reload, the city queue comes back and you can select production for the city again, so it’s just that this UI element fails to load after a city is given away. So I need some way to “refresh” the city Screen UI, after a city is captured.
I have run into an issue with a lua code I wrote that trigger on conquest.
when CityCaptureComplete is triggered, the city is immediately given away / converted into a city state. This part of the code works perfectly, the problem is that all your other cities lose their build queue after this. Everything you put in the queue still gets built, but the list of things to build disappears, so you can’t add new units/buildings/projects to the queue. Obviously this only affects human players.
If I save and reload, the city queue comes back and you can select production for the city again, so it’s just that this UI element fails to load after a city is given away. So I need some way to “refresh” the city Screen UI, after a city is captured.