Lua when a building is built?

No.

Most things like this require a start-of-turn event, because even the ones that DO have an Event for triggering often have... issues. Like how the Improvement Created event only triggers if the active player (you) SEES the improvement being created. But there's not even anything close to that for building completion.
 
Thalassicus has made one Lua events for that in CivUP IIRC.
 
I just checked, have a look at MT_LuaEvents.lua in CiVUP.
 
I have something similar working in Epochs in the ISEventHandler/ISEvents files if Gedemon's solution doesn't work.

Not the cleanest code but it's getting there.
 
I just checked, have a look at MT_LuaEvents.lua in CiVUP.

Nice. I'm glad to see the community adding the events that Firaxis should have given us TWO YEARS AGO. But obviously they were busy adding a few more DLC civilizations. (No, I'm not bitter.)
 
Top Bottom