Having Trouble Writing an Objective


  • Donators

    Not sure why I'm struggling with this, but I am 🙂 What I want to do in the Global game is make an objective that gives Germany 2 bucks for control or unit presence in certain TTys. I don't want them to get both though. Also, Italy has the same objective ( which I don't think matters )

    Anyway, I can make it work with "presence" or "control" but not when I have "presence and control". I made another objective with both presence and control and added some "invert" conditions to hopefully shut it down when one of the other objectives was on but then it fired anyway.

    Here's what i have:

    <attachment name="conditionAttachment_OilPresenceInvert" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
          <option name="directPresenceTerritories" value="Iraq:Persia:Northwest Persia:Saudi Arabia" count="each"/>
          <option name="invert" value="true"/>
    </attachment>
    
    <attachment name="conditionAttachment_OilControlInvert" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
          <option name="directOwnershipTerritories" value="Iraq:Persia:Northwest Persia:Saudi Arabia" count="each"/>
          <option name="invert" value="true"/>
    </attachment>
    
    <attachment name="conditionAttachment_ItalianOilControlInvert" attachTo="Italians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
          <option name="directOwnershipTerritories" value="Iraq:Persia:Northwest Persia:Saudi Arabia" count="each"/>
          <option name="invert" value="true"/>
    </attachment>
    
    <attachment name="conditionAttachment_OilPresence" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
          <option name="directPresenceTerritories" value="Iraq:Persia:Northwest Persia:Saudi Arabia" count="each"/>
    </attachment>
    
    <attachment name="conditionAttachment_OilControl" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
          <option name="conditions" value="conditionAttachment_ItalianOilControlInvert"/>
    </attachment>
    
    <attachment name="objectiveAttachment_Germans_6_Control_Iraq_Or_Persia_Or_Northwest_Persia" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
          <option name="conditions" value="conditionAttachment_OilPresenceInvert:conditionAttachment_ItalianOilControlInvert"/>
          <option name="objectiveValue" value="2"/>
          <option name="directOwnershipTerritories" value="Iraq:Persia:Northwest Persia:Saudi Arabia" count="each"/>
    </attachment>
    
    <attachment name="objectiveAttachment_Germans_9_Presence_Iraq_Or_Persia_Or_Northwest_Persia" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
          <option name="conditions" value="conditionAttachment_OilControlInvert"/>
          <option name="objectiveValue" value="2"/>
          <option name="directPresenceTerritories" value="Iraq:Persia:Northwest Persia" count="each"/>
    </attachment>
    

    Would someone clue me in on how to write this please 🙂

    Thank You

    Figured it out. This can be deleted.


Log in to reply
 

29084
1487
1723