Navigation

    TripleA Logo

    TripleA Forum

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

    Trying to get foreach to work

    Map Making
    3
    19
    493
    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.
    • B
      beelee last edited by beelee

      Running out of ideas. I'm using the wolfpack foreach wc did as a template. What I want is slightly different.

      Any paratroopers that don't have any of the listed units with them, will have a ...paraBoost unit placed.

      I can't get past this one

      Screenshot from 2024-07-22 13-28-52.png

      heres a couple shots.

      This a list of all the TTys it should happen.
      Screenshot from 2024-07-22 13-35-04.png

      Here's conditions and trigger

      Screenshot from 2024-07-22 13-37-47.png

      Screenshot from 2024-07-22 13-38-22.png

      Oh here's xml

      global_40_expansion_uhd_boxes.xml

      Edit
      Well I fixed this to an actual unit 🙂

      Screenshot from 2024-07-22 13-44-27.png

      I'm just doing it for Germany for starters, but I need to add othe r players as well

      W 2 Replies Last reply Reply Quote 0
      • W
        wc_sumpton @beelee last edited by

        @beelee

        You are using $ParaBoost$ but you are showing the variables for ParaBoostTTys. I do not find a variable list for just ParaBoost. Maybe you meant ParaBoostTTys in the foreach?

        Cheers...

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

          @beelee

          By the way, what are you using to edit/show the xml? I see no line numbers, and it could be hard to point to certain things without them.

          Cheers...

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

            @wc_sumpton

            emacs The line is shown on the bottom bar

            W 1 Reply Last reply Reply Quote 0
            • B
              beelee @wc_sumpton last edited by

              @wc_sumpton

              yea it fired up 🙂 Idk if the behavior will be what I want but a step in the right direction lol

              I swear, I look at things for hours and still miss stuff like that lol

              1 Reply Last reply Reply Quote 0
              • W
                wc_sumpton @beelee last edited by

                @beelee

                Thank you. I was comparing what was in the downloaded xml, to what was shown. At or about line 32809 was a line like:
                <option name="placement" value="@ParaBoost@:ParaBoost" count="1"/>
                But the screen shows the line like:
                <option name="placement" value="@ParaBoost@:german_paraBoost" count="1"/>

                So, the difference was throwing me off a bit.

                Cheers...

                B 1 Reply Last reply Reply Quote 1
                • B
                  beelee @wc_sumpton last edited by

                  @wc_sumpton

                  yea I updated to "german_paraBoost" after I posted the xml. I should have posted the new xml as well 🙂

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    wc_sumpton @beelee last edited by

                    @beelee 👍 ðŸ˜ē

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

                      @wc_sumpton

                      heh heh yea it was like one minute after I posted the xml that I saw it.

                      It.only changed a couple characters, Surprised it changed the line number.

                      Thanks for the help as always 🙂

                      1 Reply Last reply Reply Quote 1
                      • B
                        beelee @wc_sumpton last edited by

                        @wc_sumpton

                        lol I think it worked or at least partially lol

                        Screenshot from 2024-07-22 16-20-42.png

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

                          @beelee

                          Go! Go! Go!

                          Cheers...

                          B 1 Reply Last reply Reply Quote 2
                          • B
                            beelee @wc_sumpton last edited by

                            @wc_sumpton

                            so sadly, i can't get it to work before combat. I changed "battle" to before combatMove. That didn't work.

                            Probably has something todo with the condition(s)

                            I will continue to try and figure it out 🙂

                            this latest xml

                            Screenshot from 2024-07-22 18-36-26.png

                            global_40_expansion_uhd_boxes.xml

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

                              @beelee

                              Try replacing germanscombatMove with germansCombatMove at line ~ 32810.

                              Sometimes the simple misspellings can be very hard to find.

                              Cheers...

                              B 1 Reply Last reply Reply Quote 2
                              • B
                                beelee @wc_sumpton last edited by

                                @wc_sumpton
                                I feel so stupid lol

                                W VictoryFirst 2 Replies Last reply Reply Quote 2
                                • W
                                  wc_sumpton @beelee last edited by

                                  @beelee

                                  Don't, it took me 3+ hours to find. And I have the fresh eyes so to speak... ðŸĪŠ

                                  Cheers...

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

                                    @wc_sumpton

                                    Das ist gut 🙂

                                    Screenshot from 2024-07-23 12-25-34.png

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

                                      @beelee said in Trying to get foreach to work:

                                      @wc_sumpton
                                      I feel so stupid lol

                                      Hehe don't worry, I make mistakes like these all the time 🙂 germanCombatMove, attachTo="Russia", option name="condition", mixing up attachmentConditionMinesSZ11 with attachmentConditionMineSZ11... I've seen it all in just four days lol 🙂

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

                                        @beelee
                                        Lol see, I just mixed up attachmentCondition... with conditionAttachment 😂

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

                                          @victoryfirst

                                          well thanks to wc the paratroopers auto deploy now. Guess I need to do another update lol

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