Navigation

    TripleA Logo

    TripleA Forum

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

    haveResources as a condition option

    Feature Requests & Ideas
    3
    5
    89
    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.
    • W
      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...😲

      Cheers...

      1 Reply Last reply Reply Quote 2
      • C
        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.

        Hepps 1 Reply Last reply Reply Quote 0
        • Hepps
          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.

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

            @Hepps

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

            Hepps 1 Reply Last reply Reply Quote 0
            • Hepps
              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.

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