Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Having Trouble Writing an Objective

    Map Making
    1
    1
    172
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      beelee last edited by beelee

      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.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums