TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Having Trouble Writing an Objective

    Scheduled Pinned Locked Moved Map Making
    1 Posts 1 Posters 307 Views 1 Watching
    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 Online
      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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • First post
        Last post
      Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums