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

    Combining multiple resource bonus in a trigger

    Scheduled Pinned Locked Moved Map Making
    2 Posts 2 Posters 687 Views 2 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.
    • ebbeE Offline
      ebbe
      last edited by

      Not a big problem but just curious:

      How can I combine 2 different types of resources in a single trigger? In given example PU's and Diplomacy?

      		<attachment name="triggerAttachment_Kanrei_Bonus1" attachTo="Hatakeyama" javaClass="TriggerAttachment" type="player">
              <option name="conditions" value="conditionAttachment_Kanrei_Hatakeyama"/>
              <option name="resource" value="PUs"/>
              <option name="resourceCount" value="2"/>
              <option name="when" value="before:hatakeyamaPurchase"/>
      	</attachment>
      		
      		<attachment name="triggerAttachment_Kanrei_Bonus2" attachTo="Hatakeyama" javaClass="TriggerAttachment" type="player">
              <option name="conditions" value="conditionAttachment_Kanrei_Hatakeyama"/>
              <option name="resource" value="Diplomacy"/>
              <option name="resourceCount" value="1"/>
              <option name="when" value="before:hatakeyamaPurchase"/>
      	</attachment>
      

      thanks

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

        @ebbe

        There is no way to combine resource/resourceCount, as neither takes a list, and entering either multiple times means one value replaces another.

        To allow "resource" to accept a count requires some untangling.

        You could make Feature Request for this.

        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