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

    Victory Trigger Not Working

    Scheduled Pinned Locked Moved Map Making
    4 Posts 2 Posters 811 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.
    • RogerCooperR Offline
      RogerCooper
      last edited by

      I am trying to get victory to occur by surviving to a specific turn. (I set this to turn 1 for testing). Nothing is happening (other triggers are working). I attached the entire xml as well. Does anyone see what I did wrong?

          <attachment name="conditionAttachmentGermansSurvival" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
            <option name="rounds" value="1"/>
            <option name="alliedOwnershipTerritories" value="Caen:St. Lo:Cherbourg" count="1"/>
          </attachment>
          <attachment name="triggerAttachmentAxisVictory" attachTo="Germans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
            <option name="conditions" value="conditionAttachmentGermansSurvival"/>
            <option name="victory" value="German Survival Victory"/>
            <option name="players" value="Germans"/>
          	<option name="when" value="before:germanCombatMove"/>
          </attachment>
      [D-Day_3.xml](/assets/uploads/files/1552779622824-d-day_3.xml) ```
      redrumR 1 Reply Last reply Reply Quote 0
      • redrumR Offline
        redrum Admin @RogerCooper
        last edited by

        @RogerCooper I don't think your attachment uploaded.

        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

        RogerCooperR 1 Reply Last reply Reply Quote 0
        • RogerCooperR Offline
          RogerCooper @redrum
          last edited by

          @redrum D-Day_3.xml

          redrumR 1 Reply Last reply Reply Quote 0
          • redrumR Offline
            redrum Admin @RogerCooper
            last edited by

            @RogerCooper The victory value needs to be a key for the notifications.properties file not the actual string you want to display. Here is the POS2 XML:

            victory	   values: the string message from notifications.properties to be displayed if the condition is true. victory can be used to play sounds as well. victory will use victory value + "_sounds" as the key in notifications.properties file, and then will use "defeat_" or "victory_" + the notifications.properties value as the new key to look for in the sounds.properties file.
            

            TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

            1 Reply Last reply Reply Quote 2

            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