Navigation

    TripleA Logo

    TripleA Forum

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

    Modify movements restrictions out of contested territories

    Map Making
    4
    11
    962
    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.
    • VictoryFirst
      VictoryFirst last edited by

      Is there a way to set the movement restrictions when moving out of contested territories? By default, you can only move units in contested zones to friendly controlled zones, but I want this to be more specific.
      I want units in contested zones to be able to move to any territory containing your units, even if enemy-controlled.

      b406dafa-c324-4c14-9ee9-568d0de7c429-image.png

      So in this example, I want AH to be able to move from Galicia to Ukraine, but it says "Cannot blitz out of a battle into enemy territory". It does work the other way around, however, from Ukraine to Galicia.

      W 1 Reply Last reply Reply Quote 3
      • W
        wc_sumpton @VictoryFirst last edited by

        @victoryfirst said in Modify movements restrictions out of contested territories:

        So in this example, I want AH to be able to move from Galicia to Ukraine, but it says "Cannot blitz out of a battle into enemy territory". It does work the other way around, however, from Ukraine to Galicia.

        If I'm reading the map correctly, it is "Red's" turn. Galicia is "Green" owned, and is contested by "Red", while Ukraine is "Red" owned and contested by "Green". Because "Red" is the attacker in Galicia, units engaged, without canBlitz, cannot move to engage in another battle while units in Ukraine are not engaged, "Red" owns Ukraine, and can move and engage in the Galicia battle.

        To allow Galicia units the ability to move, ownership of Galicia would need to be changed to "Red". There is no <option> to allow engaged units to move to another battle.

        Cheers...

        VictoryFirst 1 Reply Last reply Reply Quote 3
        • VictoryFirst
          VictoryFirst @wc_sumpton last edited by

          @wc_sumpton

          That's indeed correct, thank you. However, it is currently Austria-Hungary's turn ("Green") and they want to move to Ukraine which is controlled by Russia ("Red"), but the engine doesn't allow that.

          Basically, in this game, any territory that has both your units and enemy units in them is considered to be "contested", not controlled by any power. However I don't think TripleA can handle something like that.

          I tried to set the land units to "canBlitz" and "canMoveThroughEnemies", but neither of those worked. So there is really no way to do this except for making Ukraine controlled by Austria-Hungary?

          W 1 Reply Last reply Reply Quote 3
          • W
            wc_sumpton @VictoryFirst last edited by

            @victoryfirst said in Modify movements restrictions out of contested territories:

            Basically, in this game, any territory that has both your units and enemy units in them is considered to be "contested", not controlled by any power. However I don't think TripleA can handle something like that.

            This may be what you think, but this is not true. TripleA considers a contested territory is still owned by the last power that controlled that territory. Look under the "Territory" tab, and you will see who owns that territory.

            @victoryfirst said in Modify movements restrictions out of contested territories:

            I tried to set the land units to "canBlitz" and "canMoveThroughEnemies", but neither of those worked. So there is really no way to do this except for making Ukraine controlled by Austria-Hungary?

            You are right, sorry about that. This deals with movement points, the units in Galicia would need to first move into a "friendly" territory, disengaging for combat. Romania if it were owned by Austria-Hungary, prior to moving into combat in Ukraine. But with 1 movement the best these unit can do is disengage to a friendly territory.

            Cheers...

            VictoryFirst 1 Reply Last reply Reply Quote 4
            • VictoryFirst
              VictoryFirst @wc_sumpton last edited by

              @wc_sumpton said in Modify movements restrictions out of contested territories:

              This may be what you think, but this is not true. TripleA considers a contested territory is still owned by the last power that controlled that territory. Look under the "Territory" tab, and you will see who owns that territory.

              Sorry if I am unclear, but that is what I meant. I am creating a game for TripleA, where territories shared by your and enemy units are considered contested. But TripleA indeed thinks the territory is owned by someone, which ultimately prevents the units from moving between two contested territories.

              W 1 Reply Last reply Reply Quote 3
              • W
                wc_sumpton @VictoryFirst last edited by

                @victoryfirst

                Looks like there maybe an undocumented game property:

                <!-- This property is undocumented in PoS2 but it seems that the engine check for it. Use at own risk -->
                <property name="All Units Can Attack From Contested Territories" value="true" editable="false">
                  <boolean/>
                </property>
                

                Cheers...

                cameron 1 Reply Last reply Reply Quote 4
                • cameron
                  cameron @wc_sumpton last edited by

                  @wc_sumpton said in Modify movements restrictions out of contested territories:

                  @victoryfirst

                  Looks like there maybe an undocumented game property:

                  <!-- This property is undocumented in PoS2 but it seems that the engine check for it. Use at own risk -->
                  <property name="All Units Can Attack From Contested Territories" value="true" editable="false">
                    <boolean/>
                  </property>
                  

                  Cheers...

                  ooh.... nice. that not attacking from contested TT was irritating me today... adding it to my mod.

                  1 Reply Last reply Reply Quote 0
                  • cameron
                    cameron last edited by

                    i think that we are having a failure in semantics here.

                    i think @VictoryFirst wants contested TT to be neutral while contested. so while the game does deal with contested TT it just doesn't do it in the way they want it to...

                    1 Reply Last reply Reply Quote 0
                    • VictoryFirst
                      VictoryFirst last edited by

                      @wc_sumpton said in Modify movements restrictions out of contested territories:

                      @victoryfirst

                      Looks like there maybe an undocumented game property:

                      <!-- This property is undocumented in PoS2 but it seems that the engine check for it. Use at own risk -->
                      <property name="All Units Can Attack From Contested Territories" value="true" editable="false">
                        <boolean/>
                      </property>
                      

                      Cheers...

                      Wow, that indeed does the trick! Are there more of these undocumented properties?

                      cameron 1 Reply Last reply Reply Quote 2
                      • cameron
                        cameron @VictoryFirst last edited by

                        Are there more of these undocumented properties?

                        that's what i wanna know!!!

                        1 Reply Last reply Reply Quote 0
                        • LaFayette
                          LaFayette Admin last edited by

                          A number of properties are listed here: https://github.com/triplea-game/triplea/blob/master/game-app/game-core/src/main/java/games/strategy/triplea/Constants.java

                          (that location is subject to change & that list might not be complete)

                          1 Reply Last reply Reply Quote 4
                          • 1 / 1
                          • First post
                            Last post
                          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums