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

    Allow Triggers to Give Multiple Resources

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    11 Posts 6 Posters 3.8k 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 Offline
      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

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

        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

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

          Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

          HeppsH General_ZodG 2 Replies Last reply Reply Quote 1
          • HeppsH Offline
            Hepps Lobby Moderators @Frostion
            last edited by Hepps

            @frostion lol

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

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

              @frostion This is the price of progress. lol

              1 Reply Last reply Reply Quote 0
              • redrumR Offline
                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

                TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

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

                  @redrum Thank you

                  Cheers...

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Cernel Moderators Lobby 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 Offline
                      Cernel Moderators Lobby 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 Offline
                        Cernel Moderators Lobby 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_ZodG 1 Reply Last reply Reply Quote 0
                        • General_ZodG Offline
                          General_Zod Lobby 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

                          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