Navigation

    TripleA Logo

    TripleA Forum

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

    Victory Trigger Not Working

    Map Making
    2
    4
    422
    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.
    • RogerCooper
      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) ```
      redrum 1 Reply Last reply Reply Quote 0
      • redrum
        redrum Admin @RogerCooper last edited by

        @RogerCooper I don't think your attachment uploaded.

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

          @redrum D-Day_3.xml

          redrum 1 Reply Last reply Reply Quote 0
          • redrum
            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.
            
            1 Reply Last reply Reply Quote 2
            • 1 / 1
            • First post
              Last post
            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums