Checking the value of a column in a building's XML with lua?

Tomatekh

Emperor
Joined
Aug 6, 2012
Messages
1,434
How (can?) I check the value of a column in a building's xml entry with lua?

Essentially, I need to do something like this:

if Building A <FreshWater> = true
elseif Building A <Flat> = true

etc.

Related to this, is there any easy way to get a building's pre-req tech (or if simply the same method as above).

Any help would be appreciated.
 
Back
Top Bottom