Meister Maggi
Warlord
- Joined
- Jul 16, 2007
- Messages
- 187
I am trying to invoke a function in cityview.lua from productionpopup.lua but do not manage to do so. (Basically, the matter is related to buying stuff in Vox Populi not giving you the item right away, but rather a discount on the hammers, yet, if I do this for the item currently being built, the buy is not visualized right away in the production meter in the city view).
My idea was to make the function DoUpdateProductionInfo() from cityview global, but so far I miserably failed. In any case, making the function global is a rather drastic solution (it seems to me), so I wonder if it would not be possible to use the Events. ... system applied for other purposes in these files already, but I cannot get a hold on these either.
Does anyone know how to tackle this problem? Thanks a lot in advance.
My idea was to make the function DoUpdateProductionInfo() from cityview global, but so far I miserably failed. In any case, making the function global is a rather drastic solution (it seems to me), so I wonder if it would not be possible to use the Events. ... system applied for other purposes in these files already, but I cannot get a hold on these either.
Does anyone know how to tackle this problem? Thanks a lot in advance.