Dancing Hoskuld
Deity
I think that like many other important documents it is liked to in the first post of the Modders Documentation document. That is one of the reasons for that thread


I think that like many other important documents it is liked to in the first post of the Modders Documentation document. That is one of the reasons for that thread![]()
<ConstructCondition>
<And>
<Has>
<GOMType>GOM_TECH</GOMType>
<ID>TECH_CHIEFDOM</ID>
</Has>
</And>
</ConstructCondition>
<PropertyManipulators>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
<PropertyType>PROPERTY_AIR_POLLUTION</PropertyType>
<iAmountPerTurn>5</iAmountPerTurn>
</PropertySource>
</PropertyManipulators>





increase to Techs but how do you do that for a Property? <CommerceChanges>
<iCommerce>0</iCommerce>[COLOR="RoyalBlue"]gold[/COLOR]
<iCommerce>0</iCommerce> [COLOR="RoyalBlue"]beakers[/COLOR]
<iCommerce>0</iCommerce> [COLOR="RoyalBlue"]culture[/COLOR]
<iCommerce>5</iCommerce> [COLOR="RoyalBlue"]air pollution[/COLOR]
<iCommerce>0</iCommerce> [COLOR="RoyalBlue"]water pollution[/COLOR]
<iCommerce>0</iCommerce> [COLOR="RoyalBlue"]flammabilty[/COLOR]
<iCommerce>0</iCommerce> [COLOR="RoyalBlue"]education[/COLOR]
and
are both a requirement for buildngs and can be produced. .
is 4th. You skipped it in your code there. <PropertyManipulators>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
<PropertyType>PROPERTY_AIR_POLLUTION</PropertyType>
<iAmountPerTurn>5</iAmountPerTurn>
<Active>
<Has>
<GOMType>GOM_TECH</GOMType>
<ID>TECH_CHIEFDOM</ID>
</Has>
</Active>
</PropertySource>
</PropertyManipulators>

<TEXT>
<Tag>TXT_KEY_PROPERTY_ACTIVE</Tag>
<English>[COLOR="RoyalBlue"]with [/COLOR]</English>
<French>Si</French>
<German>if</German>
<Italian>if</Italian>
<Spanish>si</Spanish>
</TEXT>
)"+1000 Air Pollution with Gathering"

Usually done with autobuildings. What specific issues are you considering here?
with flammability
with crime
with disease
with water pollution Sure. I don't think anyone is even using it at the moment.I work on the xsd schema and now i have a little problem.
We have two If expressions one Boolean and the other Integer that is a problem because the Integer If can have both as subexpressions.
There can't be two different tags with the same name and there is no good way around it, so can i rename them or one of them?
Sure. I don't think anyone is even using it at the moment.
<IIf>
<Has>
<GOMType>GOM_RELIGION</GOMType>
<ID>RELIGION_JUDAISM</ID>
</Has>
<Then>
<Constant>4</Constant>
</Then>
<Else>
<Constant>1</Constant>
</Else>
</IIf>

<TrainCondition>
<And>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_FIREARMS</ID>
</Has>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_AMMO</ID>
</Has>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_AUTOMOBILES</ID>
</Has>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_TIRES</ID>
</Has>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_DIESEL</ID>
</Has>
</And>
<Or>
<Has>
<GOMType>GOM_BUILDING</GOMType>
<ID>BUILDING_POLICE_STATION</ID>
</Has>
<Has>
<GOMType>GOM_BUILDING</GOMType>
<ID>BUILDING_POLICE_PRECINCT</ID>
</Has>
</Or>
</TrainCondition>
Perhaps an additional AND around the AND and OR (I hope that isn't ambiguous).
Put the Or in the And, not outside of it (in other words, move the closing And tag to below the closing Or tag).
Alternatively do what tmv suggested.