Tag requests

I don't quite get what you mean.
<BonusType> or <PrereqBonuses> have no meaning within an expression but they will still work at the places outside expressions where they work now.

Lets say I put this code on a unit ....

Code:
<BonusType>BONUS_FRENCH</BonusType>
<PrereqBonuses>
<BonusType>BONUS_COPPER</BonusType>
<BonusType>BONUS_IRON</BonusType>
<BonusType>BONUS_STEEL</BonusType>
</PrereqBonuses>
<TrainCondition>
  <And>
    <Has>
      <GOMType>GOM_BONUS</GOMType>
      <ID>BONUS_BANANA</ID>
    </Has>
    <Has>
      <GOMType>GOM_BONUS</GOMType>
      <ID>BONUS_LEMON</ID>
    </Has>
    <Has>
      <GOMType>GOM_BONUS</GOMType>
      <ID>BONUS_APPLE</ID>
    </Has>
  </And>
</TrainCondition>

Would it require French AND (Copper OR Iron OR Steel) AND Bananas AND Lemons and Apples?
 
Ok then what happens if i put ...

Code:
<PrereqBonuses>
<BonusType>BONUS_COPPER</BonusType>
<BonusType>BONUS_SILVER</BonusType>
<BonusType>BONUS_GOLD</BonusType
</PrereqBonuses>
<TrainCondition>
  <And>
    <Has>
      <GOMType>GOM_BONUS</GOMType>
      <ID>BONUS_COPPER</ID>
    </Has>
    <Has>
      <GOMType>GOM_BONUS</GOMType>
      <ID>BONUS_SILVER</ID>
    </Has>
    <Has>
      <GOMType>GOM_BONUS</GOMType>
      <ID>BONUS_GOLD</ID>
    </Has>
  </And>
</TrainCondition>

Will it be (Copper OR Silver OR Gold) or will it be Copper AND Silver AND Gold?
 
Ok then what happens if i put ...

Code:
<PrereqBonuses>
<BonusType>BONUS_COPPER</BonusType>
<BonusType>BONUS_SILVER</BonusType>
<BonusType>BONUS_GOLD</BonusType
</PrereqBonuses>
<TrainCondition>
  <And>
    <Has>
      <GOMType>GOM_BONUS</GOMType>
      <ID>BONUS_COPPER</ID>
    </Has>
    <Has>
      <GOMType>GOM_BONUS</GOMType>
      <ID>BONUS_SILVER</ID>
    </Has>
    <Has>
      <GOMType>GOM_BONUS</GOMType>
      <ID>BONUS_GOLD</ID>
    </Has>
  </And>
</TrainCondition>

Will it be (Copper OR Silver OR Gold) or will it be Copper AND Silver AND Gold?
It is (Copper OR Silver OR Gold) AND (Copper AND Silver AND Gold) which is equivalent to Copper AND Silver AND Gold.
The reason is logic, there is no order of precedence.
 
@AIAndy (or anyone else who can help)
<TrainCondition>
<And>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_COPPER</ID>
</Has>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_SILVER</ID>
</Has>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_GOLD</ID>
</Has>
</And>
</TrainCondition>

Are these tags actually in the code yet? I tried using them for a new Medivac Dropship, and got XML errors (see attached). I do have the latest schema, and have it named to ls612v5_CIV4UnitSchema.xml, so that should not be the issue.
 
@AIAndy (or anyone else who can help)


Are these tags actually in the code yet? I tried using them for a new Medivac Dropship, and got XML errors (see attached). I do have the latest schema, and have it named to ls612v5_CIV4UnitSchema.xml, so that should not be the issue.
No, not yet.
I quote myself from last page:
I still need to add a ConstructCondition/TrainCondition expression tag to buildings/units (should be done some time this weekend although with the restriction that the AI will not understand them properly yet) and add display capability to the expression system (so the mouseover will display a proper rendering of the expression requirement).
 
Both ConstructCondition on building infos and TrainCondition on unit infos are in the newest SVN now.

Can you do me a favor then, and update your 1/2 posts so people can understand what all these tags do and how to use them, i get a bit overwhelmed looking at all this new information, sorry.:blush:
 
Can you do me a favor then, and update your 1/2 posts so people can understand what all these tags do and how to use them, i get a bit overwhelmed looking at all this new information, sorry.:blush:
I'll add a tutorial to the expression system thread.
 
I request that Civics can give additional Yield/Commerce bonuses to buildings. For example, the civic Free Market would give +1 :commerce:and +1 :gold: to the "Supermarket" building. :)
 
I request that Civics can give additional Yield/Commerce bonuses to buildings. For example, the civic Free Market would give +1 :commerce:and +1 :gold: to the "Supermarket" building. :)
I think you can with "BuildingClassCommerceChanges"
 
:hammer2: Forgot about the commerce, but is there one for yield?
 
@AIAndy (or anyone else who can help)

<TrainCondition>
<And>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_COPPER</ID>
</Has>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_SILVER</ID>
</Has>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_GOLD</ID>
</Has>
</And>
</TrainCondition>

Are these tags actually in the code yet? I tried using them for a new Medivac Dropship, and got XML errors (see attached). I do have the latest schema, and have it named to ls612v5_CIV4UnitSchema.xml, so that should not be the issue.

These are in the code now right?
 
Top Bottom