Hey guys,
I'm new to modding. First thank to all for you who have been working on mods and providing documentation out there.
I just spent the evening writing up some basic timer logic in Lua. It works OK but I would like to take it one step forward.
Ideally, I would like to read through each player's action queue (the actions that the game force you to do before you can do next turn) and allocate time for each action.
That would allow my timer to be smarter, for instance instead of allocating a flat 15 seconds per city I could allocate 5 seconds per city +20 seconds per city that needs a production order.
Similarly, I would like to know when someone is founding a religion and give say 5 minutes. I was hoping that ":GetReligion():CanCreatePantheon(true)" would do this but, it does not... In fact I don't understand why it keeps flipping to true every other turn.
I've been able to get the tech and civics timer to work with "GetTechs():GetTurnsLeft()" and "GetCulture():GetTurnsLeftOnCurrentCivic()" but that's really not great.
I found this fantastic list of methods: https://docs.google.com/spreadsheets/d/1HQSUOmw_pI8dNSr1kmun4qAHj6SsOVfa1vGTbk5mVvs/edit#gid=0
Is there more somewhere or is that all of it?
Thanks for your help.
I'm new to modding. First thank to all for you who have been working on mods and providing documentation out there.
I just spent the evening writing up some basic timer logic in Lua. It works OK but I would like to take it one step forward.
Ideally, I would like to read through each player's action queue (the actions that the game force you to do before you can do next turn) and allocate time for each action.
That would allow my timer to be smarter, for instance instead of allocating a flat 15 seconds per city I could allocate 5 seconds per city +20 seconds per city that needs a production order.
Similarly, I would like to know when someone is founding a religion and give say 5 minutes. I was hoping that ":GetReligion():CanCreatePantheon(true)" would do this but, it does not... In fact I don't understand why it keeps flipping to true every other turn.
I've been able to get the tech and civics timer to work with "GetTechs():GetTurnsLeft()" and "GetCulture():GetTurnsLeftOnCurrentCivic()" but that's really not great.
I found this fantastic list of methods: https://docs.google.com/spreadsheets/d/1HQSUOmw_pI8dNSr1kmun4qAHj6SsOVfa1vGTbk5mVvs/edit#gid=0
Is there more somewhere or is that all of it?
Thanks for your help.