TripleA Logo TripleA Forum
    • TripleA Website
    • Recent
    • Popular
    • Register
    • Login

    Question about trenches domination 1914 no mans land

    Scheduled Pinned Locked Moved Map Making
    59 Posts 6 Posters 4.2k Views 6 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.
    • R
      Ramon @TheDog
      last edited by

      Hi, @TheDog

      Thanks a lot for your response!

      I made the following changes:

      -added the variable list all players/all sz.
      -added your code:

      <attachment foreach="$All-Players$^$All-SZ$" name="conditionAttachment_SZ_@All-Players@@All-SZ@" attachTo="@All-Players@" javaClass="RulesAttachment" type="player">
      <option name="directOwnershipTerritories" value="@All-SZ@" count="0"/>
      </attachment>
      <attachment foreach="$All-Players$^$All-SZ$" name="triggerAttachment_SZ
      @All-Players@@All-SZ@" attachTo="@All-Players@" javaClass="TriggerAttachment" type="player">
      <option name="conditions" value="conditionAttachment_SZ
      @All-Players@_@All-SZ@"/>
      <option name="territories" value="@All-SZ@"/>
      <option name="territoryAttachmentName" value="TerritoryAttachment" count="territoryAttachment"/>
      <option name="territoryProperty" value="originalOwner" count="@All-Players@"/>
      <option name="when" value="before:@All-Players@1EndTurn"/>
      </attachment>

      However i'm not getting it to work correctly.

      The seazones flips to the occupier as intended, but the PUs do not transfer (the original owner does lose the PUs)

      for reference, each sea zone is defined like this:

      each sz is defined like this:
      <territoryOwner territory="Sea Zone 1 Hudson Bay" owner="British"/>

      <territory name="Sea Zone 1 Hudson Bay" water="true"/>

      <attachment name="territoryAttachment" attachTo="Sea Zone 1 Hudson Bay" javaClass="games.strategy.triplea.attachments.TerritoryAttachment" type="territory">
      <option name="production" value="1"/>
      <option name="blockadeZone" value="true"/>
      </attachment>

      am i missing something, or could this be due to the map being outdated?

      Cheers!

      1 Reply Last reply Reply Quote 1
      • R
        Ramon @wc_sumpton
        last edited by

        Hi, @wc_sumpton

        Thanks a lot for your response,

        The minus signal works perfectly! Thanks!

        About the Sea Zones, to clarify:

        In this map, we want Sea Zones to have a value of 1 PU. When an opponent captures a Sea Zones, the PU should transfer accordingly, so that the new owner receives 1 production each turn.

        Cheers!

        TheDogT 1 Reply Last reply Reply Quote 1
        • R
          Ramon @beelee
          last edited by

          Hi, @beelee

          Thanks a lot about the research and suggestions!

          It doesnt seem to work in the usual way, but it could be made to work with triggers (as the dog suggested).

          I just wanted to thank you for your help and thinking along with me.

          Cheers!

          1 Reply Last reply Reply Quote 2
          • TheDogT
            TheDog @Ramon
            last edited by

            @Ramon

            So here it is working in the new map.
            Check the Territory Tab for
            Current Owner=Original Owner

            0ca42bb0-b0a8-4272-b170-3a538c0ba7b6-image.jpeg

            .
            In History EndTurn/Resources find Trigger SZ in the relevant round

            891d58fd-8bd4-4d83-8d11-f3cf991b5901-image.jpeg

            https://forums.triplea-game.org/tags/thedog
            https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

            R 1 Reply Last reply Reply Quote 1
            • R
              Ramon @TheDog
              last edited by

              @TheDog

              The original owner doesnt change, and i dont see the relevant history like in your map.

              is this a problem with the code or with the version?

              Maybe a bit of a noob question but does the order where i put the relevant code in the xml matter? That might screw things up?

              TheDogT 1 Reply Last reply Reply Quote 0
              • TheDogT
                TheDog @Ramon
                last edited by

                @Ramon

                The original owner doesnt change, and i dont see the relevant history like in your map.

                If the original owner does not change then the entry in the history list will not appear.

                .

                is this a problem with the code or with the version?

                Very probably not, as it works fine with 11 Rings of Power (the new unpublished map) and does not work with 1888A Steam and Steel. So like you I cant deduce why 1888A is not working 🤯🤯🤯
                I have compared xml properties and map properties 😕 😖 to no avail.

                .

                Maybe a bit of a noob question but does the order where i put the relevant code in the xml matter? That might screw things up?

                Only that it must be in the Attachment block of code , that is inside
                <attachmentList>
                </attachmentList>
                The order should not matter, but I put Triggers/conditions after other stuff in the attachmentList block.

                https://forums.triplea-game.org/tags/thedog
                https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                B R 2 Replies Last reply Reply Quote 1
                • B
                  beelee @TheDog
                  last edited by

                  @ramon

                  I think the condition that activates the trigger/condition has to come before the trigger/condition.

                  Also, other things will still work but depending on where they're listed, will affect how they show up in the purchase window for example.

                  Support attachments as well but I don't remember the specifics. WC clued me in on it. I need to look it up again.

                  1 Reply Last reply Reply Quote 1
                  • R
                    Ramon @TheDog
                    last edited by

                    Hi, @TheDog

                    I noticed the top line:

                    <attachment foreach="$All-Players$^$All-SZ$" name="conditionAttachment_SZ_@All-Players@_@All-SZ@" attachTo="@All-Players@" javaClass="RulesAttachment" type="player">
                    <option name="DirectOwnershipTerritories" value="@All-SZ@" count="1"/>
                    </attachment>

                    As i understand it, this should make each sea zone worth 1 PU? That doesn't seem to happen in my map, so im wondering if this might be related to the issue?

                    I dont know honestly, but thanks for all the help! Let me know if you somehow find a fix!


                    Another question regarding map creater tool.

                    I'm editing a map right now (domination 1914 NML).

                    and following this guide: https://forums.triplea-game.org/topic/3432/a-brief-guide-to-the-map-creator-tools-utilities

                    Splitting territories in two has worked for me, but creating new territories (islands as example) works differently? I cant get it to work, i assume its different from dividing excisting territories but how does this work?

                    Same goes for sea zones, does that also work different?

                    Thank you!

                    B wc_sumptonW TheDogT 3 Replies Last reply Reply Quote 1
                    • B
                      beelee @Ramon
                      last edited by

                      @Ramon

                      For a new TTy you will need the correct xml info and then do the centers poly thing as well as drawing the new TTy.

                      I forget the specifics but I'd pick a TTy and follow it through the xml adding the new name next to it. You can add the connections later but it shouldn't hurt to do it now either.

                      Once the xml is up to date, follow Elk's guide step by step. @thedog probably more up to date on it than I 🙂

                      If need be, we'll bring in reinforcements if you get stuck 🙂

                      1 Reply Last reply Reply Quote 1
                      • wc_sumptonW
                        wc_sumpton @Ramon
                        last edited by

                        @Ramon said:

                        As i understand it, this should make each sea zone worth 1 PU? That doesn't seem to happen in my map, so im wondering if this might be related to the issue?

                        This is a condition statement and is checking if player owns a sea zone.

                        Cheers...

                        1 Reply Last reply Reply Quote 2
                        • TheDogT
                          TheDog @Ramon
                          last edited by TheDog

                          @Ramon said:

                          Let me know if you somehow find a fix!

                          I have had two attempts at it, so will do, but it will not be soon, spare time goes on the new map.

                          https://forums.triplea-game.org/tags/thedog
                          https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                          TheDogT 1 Reply Last reply Reply Quote 1
                          • TheDogT
                            TheDog @TheDog
                            last edited by

                            @ramon
                            I have another one of my FFA maps working with Sea Zone PU going to the owner.
                            see
                            https://forums.triplea-game.org/topic/2467/settlers-fallen-empire-official-thread/15

                            Note you will need to do steps

                            1. player none=Neutral must be have an initial relationship of Neutral with the Player factions, see lines 6977 etc
                            2. player none=Neutral start of turn 1 is changed to War, see lines 5913-5931

                            The above is a bizzare requirement that should not exist.

                            I still cannot get 1888A Steam & Steel to work, but Im hoping you have success and then I will raise this with the Devs.

                            https://forums.triplea-game.org/tags/thedog
                            https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                            wc_sumptonW 1 Reply Last reply Reply Quote 1
                            • wc_sumptonW
                              wc_sumpton @TheDog
                              last edited by wc_sumpton

                              @TheDog said:

                              I still cannot get 8188A Steam & Steel to work, but Im hoping you have success and then I will raise this with the Devs.

                              In 8188A Steam & Steel, if you are hooking too the endTurn, then your process is working. But the endTurrn happens at the beginning. Try attaching after the battle step.
                              Why battle? Because only combat move and battle change ownership. Non-combat move and placement do not. So, during the players first turn when sea units are placed the territory does not change ownership until the next combat move.

                              Cheers...

                              TheDogT 1 Reply Last reply Reply Quote 2
                              • TheDogT
                                TheDog @wc_sumpton
                                last edited by

                                @wc_sumpton
                                Thanks! I will will experiment.

                                https://forums.triplea-game.org/tags/thedog
                                https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                                R 1 Reply Last reply Reply Quote 1
                                • R
                                  Ramon @TheDog
                                  last edited by

                                  @TheDog

                                  Hi its me again!

                                  I was wondering if its possible to give a unit (for example an Anti Air gun) the ability to reduce the attacking value of the opponents fighters with -1.

                                  If so how would you set this up in the xml file? Does it require any special properties or settings?

                                  ~Ramon

                                  TheDogT 1 Reply Last reply Reply Quote 0
                                  • TheDogT
                                    TheDog @Ramon
                                    last edited by

                                    @Ramon
                                    Here is how its done in 1941 GCD

                                    <!-- Anti-Tank Suppress ENEMY Armor -->
                                    	<attachment name="supportAttachment_Anti-Tank_sup_Armor" attachTo="Anti-Tank" javaClass="UnitSupportAttachment" type="unitType">
                                    		<option name="faction" value="enemy"/>
                                    		<option name="unitType" value="$All-Armor$:Inf-Motorized"/>
                                    		<option name="side" value="defence"/>				<!-- defence is correct, reduces enemy Armor strength Atk -->
                                    		<option name="dice" value="strength"/>
                                    		<option name="bonus" value="-1"/>
                                    		<option name="number" value="1"/>
                                    		<option name="bonusType" value="Anti-Tank"/>
                                    		<option name="players" value="$All-Players$"/>
                                    	</attachment>
                                    

                                    So change to shoot at All-Air, so unitType=All-Air instead of Armor
                                    bonusType is just a label shown in History, eg. AA-suppression
                                    side might also need offence, depending on how air works

                                    Hope that helps.

                                    https://forums.triplea-game.org/tags/thedog
                                    https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                                    R 2 Replies Last reply Reply Quote 4
                                    • R
                                      Ramon @TheDog
                                      last edited by

                                      @TheDog

                                      Thank you! it works perfectly!

                                      1 Reply Last reply Reply Quote 3
                                      • R
                                        Ramon @TheDog
                                        last edited by

                                        @TheDog

                                        Hi!

                                        When a conscript attacks a territory containing only a trench the battle stays contested only because both units have 0 combat power. After a couple of rounds it finally resolves, but this is obviously not intended.

                                        I want to keep:

                                        Conscript: attack = 0
                                        Trench: defense = 0

                                        But I want the conscript to be able to destroy the trench, without giving it a normal attack value of 1.

                                        Is there a mechanic or attachment that allows a 0 attack unit to destroy a 0 defense construction?

                                        My attachments:

                                        Conscript:

                                        xml
                                        <attachment name="unitAttachment" attachTo="conscript" javaClass="UnitAttachment" type="unitType">
                                        <option name="movement" value="1"/>
                                        <option name="attack" value="0"/>
                                        <option name="defense" value="1"/>
                                        <option name="transportCost" value="2"/>
                                        <option name="artillerySupportable" value="true"/>
                                        </attachment>

                                        Trench:

                                        <attachment name="unitAttachment" attachTo="trench" javaClass="UnitAttachment" type="unitType">
                                        <option name="defense" value="0"/>
                                        <option name="hitPoints" value="2"/>
                                        <option name="isSuicide" value="true"/>
                                        <option name="isConstruction" value="true"/>
                                        <option name="constructionType" value="bunker"/>
                                        <option name="constructionsPerTerrPerTypePerTurn" value="3"/>
                                        <option name="maxConstructionsPerTypePerTerr" value="1000"/>
                                        conscript:
                                        <attachment name="unitAttachment" attachTo="conscript" javaClass="UnitAttachment" type="unitType">
                                        <option name="movement" value="1"/>
                                        <option name="attack" value="0"/>
                                        <option name="defense" value="1"/>
                                        <option name="transportCost" value="2"/>
                                        <option name="artillerySupportable" value="true"/>
                                        </attachment>

                                        ~Ramon

                                        B wc_sumptonW 3 Replies Last reply Reply Quote 0
                                        • B
                                          beelee @Ramon
                                          last edited by

                                          @Ramon

                                          Hi Ramon

                                          You might possibly be able to give it a combat AA capability that just targets the Trench but the AA fires off before regular combat, so Idk if that'd mess something up

                                          R 1 Reply Last reply Reply Quote 1
                                          • R
                                            Ramon @beelee
                                            last edited by

                                            @beelee

                                            Hi Beelee,

                                            Thanks a lot for your input! I thought about this aswel but it will probably mess with the balancing of the map, we would like to keep conscripts on a 0 attack.

                                            B 1 Reply Last reply Reply Quote 1

                                            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
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums