psparky
King
- Joined
- Feb 24, 2011
- Messages
- 623
Can anyone explain why (in an LUA UI file) the first of these works and the second returns nil?
It seems to be related to the fact that the latter column is added for VP, whereas the former is a vanilla column. Any ideas on how to make the second example work, or other workarounds?
Code:
GameInfo.Worlds[Map.GetWorldSize()].MaxActiveReligions
GameInfo.Worlds[Map.GetWorldSize()].ReformationPercentRequired
It seems to be related to the fact that the latter column is added for VP, whereas the former is a vanilla column. Any ideas on how to make the second example work, or other workarounds?