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

    haveResources as a condition option

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    13 Posts 6 Posters 4.5k 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.
    • wc_sumptonW Online
      wc_sumpton
      last edited by

      Hi all!

      There have been may request to check resources within the xml with the latest being:
      https://forums.triplea-game.org/topic/2606/trigger-based-on-production-income-value

      I have opened a discussion on GitHub and submitted what I think could do this:

      <!-- haveResources value=resource to check, count=amout of resources. -->
      <option name="haveResources" value="techTokens" count="1"/>
      <!-- If more then 1 resource is listed, then only 1 resource need to be true -->
      <option name="haveResources" value="iron:oil" count="3"/>
      <!-- Either 'iron' or 'oil' would need to be 3 or greater to be true -->
      <!-- Using the 'Sum' or 'Add' as the first value, will add the resources together -->
      <option name="haveResources" value="Sum:iron:oil" count="3"/>
      <!-- The use of the 'players' option would include those players resources in the check -->
      <!-- If attachTo="Russians" -->
      <option name="haveResources" value="Sum:iron:oil" count="3"/>
      <option name="players" value="Americans:British" />
      <!-- Total the sum of all the iron and oil for all three players -->
      <!-- haveResources can be listed more then once. Each option needs to be true -->
      <option name="haveResources" value="techTokens" count="3"/>
      <option name="haveResources" value="PUs" count="55"/>
      

      Well those are my thoughts...:astonished_face:

      Cheers...

      1 Reply Last reply Reply Quote 4
      • C Offline
        Contango
        last edited by

        @wc_sumpton

        Thanks for submitting this.

        Am I reading this correctly that it would check for a player's on-hand resources as opposed to their income?

        If it's for on-hand resources than the player could presumably save up to meet the criteria. I was thinking more of an income based approach such that the check would trigger if player controlled 55 IPCs worth of territories rather than just have 55IPCs on hand.

        HeppsH 1 Reply Last reply Reply Quote 1
        • HeppsH Offline
          Hepps Moderators @Contango
          last edited by

          @Contango You could still achieve what you want with a bit of a work around...

          You could create another resource called say Victory Points.... have every territory earn the same VP per territory as PU... then trigger them to be zero'd out immediately following the end of the turn.

          "A joyous heart sours with the burden of expectation"
          Hepster

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            Contango @Hepps
            last edited by

            @Hepps

            Good point. Would add some extra bulk but that could work.

            HeppsH 1 Reply Last reply Reply Quote 0
            • HeppsH Offline
              Hepps Moderators @Contango
              last edited by

              @Contango Yup... not a perfect solution... but might work well with some testing. Just a thought to solve your problem.

              "A joyous heart sours with the burden of expectation"
              Hepster

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

                'haveResources' reworked for 2.6+

                Cheers...

                1 Reply Last reply Reply Quote 0
                • wc_sumptonW Online
                  wc_sumpton
                  last edited by

                  @Alexei-Svitkine

                  It's me. Wondering if I could resubmit this, along with "checkAIPlayer". I think they would be nice additions to 2.6 since there have been many requests for these types of conditions.

                  Cheers...

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

                    @Alexei-Svitkine
                    I too would like checkAIPlayer.

                    Also, please can map makers choose between between AI/HardAI & FastAI.

                    I have one map that must be played with FastAI, it just does not play/work with the default AI/HardAI
                    In the xml it is defined as just AI, see below.

                    <playerList>
                    <player name="Darkred" 	optional="true" canBeDisabled="true" defaultType="AI" isHidden="false"/>
                    

                    It is Arena of Death
                    https://forums.triplea-game.org/topic/3264/arena-of-death-official-thread

                    .
                    Also @Black_Elk and I have come to the conclusion that 1941 Global Command Decision just plays better if played as FastAI, its more aggressive in its play style.
                    https://forums.triplea-game.org/topic/3326/1941-global-command-decision-official-thread

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

                    1 Reply Last reply Reply Quote 1
                    • wc_sumptonW Online
                      wc_sumpton
                      last edited by

                      Going to try this again. :face_with_tears_of_joy:

                      This time I have added testing for haveResources.

                      LOL

                      Cheers...

                      1 Reply Last reply Reply Quote 1
                      • C Offline
                        Cernel Moderators
                        last edited by

                        Has this been done? Is there an ETA?

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

                          @cernel

                          Sorry, the last submit was rejected.

                          Cheers...

                          C 1 Reply Last reply Reply Quote 0
                          • C Offline
                            Cernel Moderators @wc_sumpton
                            last edited by

                            @wc_sumpton So you have given up, have you?

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

                              @cernel

                              No, just haven't resubmitted.

                              Cheers...

                              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 / 1
                              • First post
                                Last post
                              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums