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

    Activate Trigger

    Scheduled Pinned Locked Moved Map Making
    2 Posts 1 Posters 475 Views 1 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 beelee

      so activate trigger doesn't show at end turn like here
      Screenshot from 2021-12-22 21-35-11.png

      but does show in history and seems to work correctly
      Screenshot from 2021-12-22 21-35-46.png

      Anyone familiar with this ? I'd like to make it show up at end turn. Took a couple days to realize it was actually working, just not showing up lol

      So to clarify. The trigger that gets activated by another trigger, is the trigger that doesn't show up

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

        Unfortunately i have a bigger problem now. When having more than 1 trigger, they will both fire sometimes. I've tried multiple combinations with "when" and without it. Tried changing the trigger"true:true:false:false" to different combinations. No joy.

        This is my latest attempt

        <attachment name="triggerAttachment_USA_Loses_Marianas_Pacific_Expanded_Turn2andON" attachTo="Americans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
        <option name="conditions" value="conditionAttachment_Americans_ControlMarianasInvert:conditionAttachmentTurn3"/>
        <option name="resource" value="PUs"/>
        <option name="resourceCount" value="-1"/>
        <option name="uses" value="1"/>
        <option name="when" value="before:americansEndTurn"/>
        </attachment>

        <attachment name="triggerAttachment_USA_Loses_Marianas_Pacific_Expanded_Turn2" attachTo="Americans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
          <option name="conditions" value="conditionAttachment_Americans_LoseEXPMarianasTurn2:conditionAttachmentTurn2"/>
          <option name="resource" value="PUs"/>
          <option name="resourceCount" value="-1"/>
          <option name="uses" value="1"/>
          <option name="when" value="after:americansNonCombatMove"/>
          <option name="activateTrigger" value="triggerAttachment_USA_Loses_Marianas_Pacific_Expanded_Turn2andON:1:true:true:false:false"/>
        </attachment>
        

        I have the same trigger for Paulau Island. Named differently of course.

        What I want, is to have the "activate trigger" trigger fire only after the trigger that activates it fires.

        What happens is, the USA takes Marianas from JPN. This activates a PU boost. USA gets it.

        Next rd, Turn 2, JPN takes Marianas. They now get the PU boost and the USA receives a negative PU boost. This activates the trigger which has Turn 3 as a condition for it to fire, but it fires anyway, even though it's still turn 2.

        So when USA takes over Marianas they get a PU boost. When JPN takes it back, the USA gets a negative one. This works correctly.

        I want the USA to continue to receive a negative bonus until they take it back. This is not working.

        I use "battle" in the conditions for the first trigger, then "directOwnership" invert for the trigger to activate.

        Meaning Rd1 USA takes Marianas and gets a PU boost. Then if USA loses control the next turn, which is JPN attacking USA and having a battle
        <option name="battle" value="Japanese:Americans:any:2-3:Marianas"/>
        it will activate the trigger which should then fire on turn 3 if USA doesn't control Marianas.

        So condition Turn 3 and InvertOwnership, that way it would still get the negative bonus without a battle on turn 3.

        Hmm ... I don't like how I explained this but I'll just leave it for now.

        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