Quantcast
Channel: Civilization Fanatics' Forums
Viewing all articles
Browse latest Browse all 12856

How to determine if a plot is overstacked in lua?

$
0
0
I want to test whether a plot has to many units in Lua and I would like to use the exact same criteria that the game uses. The game allows one "Combat" unit and one "Non Combat" unit per plot. I put the words in quotes because I'm not absolutely certain if that's exactly what the game does. Can I just count the units on the plot and use Unit:IsCombatUnit() to determine if things are legal or do I need to use something else?

Viewing all articles
Browse latest Browse all 12856

Trending Articles