[NFP] How to count government policy slots in Lua?

Lenin1870

Chieftain
Joined
Mar 16, 2013
Messages
50
제목 없음.png


I found GetNumPolicySlots function in Civ VI Modding Companion. But it should only use UI context and not return integer, 'amount'. I wonder if there is any other way. Is there a function about government slots that returns an integer in the Gameplay context?
 
Last edited:
There is table Government_SlotCounts.
There are also dynamic slots that you get during a game via a modifier.

@Lenin1870 Use this function you found. Just do a cross-context call. There are many threads on how "to call a function in another context" on CF.
 
Top Bottom