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

    Trigger Not Firing Correctly

    Scheduled Pinned Locked Moved Map Making
    9 Posts 5 Posters 2.7k Views 5 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.
    • B Offline
      beelee
      last edited by

      If I set "when" it won't fire at all. Set it to all possibilities and cycled through another round and still no go. Without when it fires and behaves correctly.

      Also the "activateTrigger" doesn't fire at all, even when the trigger activating it does fire. If I remove when from it, it just fires all the time independent of the "activateTrigger".

      What I'm after, is to have the first trigger fire, which will activate the second trigger, which will fire the next round as the first trigger will only fire once unless it's conditions are met again.

      I have activate set to "1" because I'm just trying to get it to work but it'll be "99" when it works because I want it to activate the second one every time it fires.

      This is what I have:

      <attachment name="triggerAttachment_Japan_Controls_Okinawa" attachTo="Japanese" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
      <option name="conditions" value="conditionAttachment_False"/>
      <option name="when" value="after:japaneseEndTurn"/>
      <option name="resource" value="PUs"/>
      <option name="resourceCount" value="1"/>
      </attachment>

      <attachment name="triggerAttachment_Japan_Liberates_Okinawa" attachTo="Japanese" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
        <option name="conditions" value="conditionAttachment_JapaneseEXP_PacificControlOkinawa"/>
        <option name="when" value="after:japaneseCombat"/>
        <option name="resource" value="PUs"/>
        <option name="resourceCount" value="1"/>
        <option name="activateTrigger" value="triggerAttachment_Japan_Controls_Okinawa:1:true:true:false:false"/>
      </attachment> 
      

      It seems as if it ought to be pretty straight forward, but I've been stuck for a while now. Any help is appreciated.

      Thanks

      HeppsH C 2 Replies Last reply Reply Quote 0
      • HeppsH Offline
        Hepps Moderators @beelee
        last edited by

        @beelee Your trigger has Covid

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

        B 1 Reply Last reply Reply Quote 1
        • B Offline
          beelee @Hepps
          last edited by

          @hepps lol It's only at 52% doesnt get it's 2nd shot for another 8 days 🙂

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

            @beelee

            I don't really have any input on why it's not working. I'm wondering if another approach would be to have the first trigger set a switch to "true" and make the second trigger dependent on the switch.

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              beelee @Contango
              last edited by

              @contango well it appears my side effects were more severe than thought. I'm gonna try "after:japaneseBattle" instead of "after:japaneseCombat" lol

              Thanks

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                beelee @beelee
                last edited by

                @beelee well bummer. That didn't work either. It only fire when I remove "when" . What's the default for no "when' ? before endTurn ?

                Hmm...well back at it

                RogerCooperR 1 Reply Last reply Reply Quote 0
                • RogerCooperR Offline
                  RogerCooper @beelee
                  last edited by

                  @beelee Maybe try making it a 1 use trigger, so when is not so important.

                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    beelee @RogerCooper
                    last edited by

                    @rogercooper yea i tried it at 1 just to try and get it to work. What's weird is that it fires if I don't set when

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wc_sumpton
                      last edited by

                      @beelee

                      The problem might be with the conditions/'when'. I think control of a territory after battle is not changed until 'endTurn' so checking 'after:japanCombat' will always be false. By removing the 'when' the trigger is checked at 'endTurn' and fires.

                      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