Having Trouble Writing an Objective
-
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.
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