Navigation

    TripleA Logo

    TripleA Forum

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

    Allow Triggers to Give Multiple Resources

    Feature Requests & Ideas
    6
    11
    2439
    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 redrum

      Would be nice if resource used the count value:
      Present way with resourceCount

          <attachment name="triggerAttachmentRussians3_RecoveredGermanTech" attachTo="Russians" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
            <option name="conditions" value="objectiveAttachmentRussians3_HardAdvance"/>
            <option name="resource" value="techTokens" count="2"/>
            <option name="resourceCount" value="2"/>
            <option name="uses" value="1"/>
          </attachment>
          <attachment name="triggerAttachmentRussians3_RecoveredGermanPUs" attachTo="Russians" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
            <option name="conditions" value="objectiveAttachmentRussians3_HardAdvance"/>
            <option name="resource" value="PUs"/>
            <option name="resourceCount" value="2"/>
            <option name="uses" value="1"/>
          </attachment>
      

      Using count:

          <attachment name="triggerAttachmentRussians3_RecoveredGermanTechPUs" attachTo="Russians" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
            <option name="conditions" value="objectiveAttachmentRussians3_HardAdvance"/>
            <option name="resource" value="techTokens" count="2"/>
            <option name="resource" value="PUs" count="2"/>
            <option name="uses" value="1"/>
          </attachment>
      

      With the New Resource Bar I can see a lot of map using multiple resources in triggers.

      Cheers...

      This has been added to the list of resource improvements here: https://forums.triplea-game.org/topic/128/resource-system-assessment-and-improvements

      redrum C 2 Replies Last reply Reply Quote 1
      • redrum
        redrum Admin @wc_sumpton last edited by

        @wc_sumpton Yeah, this is a good suggestion so you can use multiple resources in the same trigger. I believe to achieve this now you'd have to make multiple triggers on the same condition.

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

          If this was implemented, I would have to "clean up" a lot of my XMLs ... 😃 It has really annoyed me to make multiple triggers.

          Hepps General_Zod 2 Replies Last reply Reply Quote 1
          • Hepps
            Hepps Moderators @Frostion last edited by Hepps

            @frostion lol

            1 Reply Last reply Reply Quote 0
            • General_Zod
              General_Zod Moderators @Frostion last edited by

              @frostion This is the price of progress. lol

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

                This has been added to the list of resource improvements here: https://forums.triplea-game.org/topic/128/resource-system-assessment-and-improvements

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

                  @redrum Thank you

                  Cheers...

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

                    @wc_sumpton I remember Veqryn said that one should not use a same trigger to make multiple things, but make multiple different triggers, one for each thing; tho I don't know why is that and if that would apply to the case of giving different resources, as well, or not.
                    Myself, I'm not sure if I would prefer making multiple triggers, one for each resource, or putting multiple resources into the same trigger.

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

                      http://tripleadev.1671093.n2.nabble.com/Trigger-Attachments-If-you-maps-has-them-please-read-this-tp6995366.html

                      HOW I CODED MY XML TRIGGERS:
                      Each of the triggers in my maps does only 1 thing.
                      If I need to do 2 things, I made 2 different triggers.

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

                        @cernel Nevermind, I understand he clarified that:

                        so long as there is only 1 effect from the trigger, (in your case, "placement"), then your trigger would be considered a "well-coded" trigger

                        So, having a bunch of "resource" would be good practice, if I got it right. So, I guess making 2 triggers to give 1 resource each or 1 trigger to give 2 resources is just a matter of preference; not sure about myself.

                        General_Zod 1 Reply Last reply Reply Quote 0
                        • General_Zod
                          General_Zod Moderators @Cernel last edited by General_Zod

                          I wonder if "activateTrigger" and another effect within a basic trigger, fall into bad practice category. Or political actions and user actions that fire multiple effects via "activateTrigger". Actually Political action can't even use "activateTrigger".

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