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

    Can't Get Politics Phase to Work on Map

    Scheduled Pinned Locked Moved Map Making
    4 Posts 2 Posters 606 Views 2 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.
    • Joe GJ Offline
      Joe G
      last edited by

      I can't seem to get the politics phase of my map to work. I copied all the politics language directly from Global 1940 -balanced. (And "use politics" property is set to true). But when i play the map, it goes straight from purchase to combat. (No option to change relationships, etc.). Here is an example of one the political actions in the xml. Any thoughts?

      <attachment name="politicalActionAttachment_Axis_To_War_With_TrueNeutrals" attachTo="Germans" javaClass="games.strategy.triplea.attachments.PoliticalActionAttachment" type="player">
      <option name="conditions" value="conditionAttachment_Germans_Not_Yet_At_War_With_TrueNeutrals"/>
      <option name="relationshipChange" value="Germans:Neutral_True:War"/>
      <option name="relationshipChange" value="Italians:Neutral_True:War"/>
      <option name="relationshipChange" value="Japanese:Neutral_True:War"/>
      <option name="relationshipChange" value="Neutral_True:British:Friendly_Neutral"/>
      <option name="relationshipChange" value="Neutral_True:UK_Pacific:Friendly_Neutral"/>
      <option name="relationshipChange" value="Neutral_True:ANZAC:Friendly_Neutral"/>
      <option name="relationshipChange" value="Neutral_True:Dutch:Friendly_Neutral"/>
      <option name="relationshipChange" value="Neutral_True:Chinese:Friendly_Neutral"/>
      <option name="relationshipChange" value="Neutral_True:French:Friendly_Neutral"/>
      <option name="relationshipChange" value="Neutral_True:Neutral_Allies:Friendly_Neutral"/>
      <!-- Axis declaring war on Strict Neutrals also flips Mongolia -->
      <option name="relationshipChange" value="Germans:Mongolians:War"/>
      <option name="relationshipChange" value="Italians:Mongolians:War"/>
      <option name="relationshipChange" value="Japanese:Mongolians:War"/>
      <option name="relationshipChange" value="Mongolians:British:Friendly_Neutral"/>
      <option name="relationshipChange" value="Mongolians:UK_Pacific:Friendly_Neutral"/>
      <option name="relationshipChange" value="Mongolians:ANZAC:Friendly_Neutral"/>
      <option name="relationshipChange" value="Mongolians:Dutch:Friendly_Neutral"/>
      <option name="relationshipChange" value="Mongolians:Chinese:Friendly_Neutral"/>
      <option name="relationshipChange" value="Mongolians:French:Friendly_Neutral"/>
      <option name="relationshipChange" value="Mongolians:Neutral_Allies:Friendly_Neutral"/>
      <option name="text" value="Axis_War_Neutral_True_Mongolians"/>
      </attachment>

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Cernel Moderators @Joe G
        last edited by Cernel

        @Joe-G What is the <option name="conditions" value="conditionAttachment_Germans_Not_Yet_At_War_With_TrueNeutrals"/> saying? My best guess is check that one returns true. Also you probably need to check you have the relationshipInitialize correctly defined (so that the Germans have that relationship that is checked by the condition).

        Joe GJ 1 Reply Last reply Reply Quote 0
        • Joe GJ Offline
          Joe G @Cernel
          last edited by

          @Cernel hey thanks for ur reply.

          Here is the condition you asked about: <attachment name="conditionAttachment_Germans_Not_Yet_At_War_With_TrueNeutrals" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
          <option name="relationship" value="Germans:Neutral_True:anyNeutral"/>
          </attachment>

          1 Reply Last reply Reply Quote 0
          • Joe GJ Offline
            Joe G
            last edited by

            Hey Cernel, thanks for your guidance here. I figured out the problem.

            1. Did not have a relationshipinitialize section
            2. Did not have any true neutral territories on the board so it interfered with stuff.

            It works now!

            Thanks for all your help.

            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