Navigation

    TripleA Logo

    TripleA Forum

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

    Changing a productionFrontier

    Map Making
    4
    8
    1023
    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
      beelee last edited by beelee

      Map uses a single Production Frontier for all players. This is what I have:

      <attachment name="TransportC7" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
      <option name="gameProperty" value="Transport Cost 7"/>
      </attachment>

        <attachment name="triggerAttachment_TransportCost7" attachTo="Russians" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
        <option name="trigger" value="TransportC7"/>
        <option name="productionRule" value="frontierRules:-buyTransport"/>          
       <option name="productionRule" value="frontierRules:buyTransportC7"/>
        <option name="when" value="before:russianPurchase"/>
        <option name="uses" value="1"/>
      </attachment>
      

      Unfortunately it's not working. I thought I remember seeing this done before but I can't find it. I don't want to give everybody their own production if I don't have to.

      Anyone care to clue me in ? 🙂

      Thanks

      1 Reply Last reply Reply Quote 0
      • Michael Hoover
        Michael Hoover last edited by Michael Hoover

        Second line should be <option name="conditions" value="TransportC7"/> right?

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

          @Michael-Hoover

          Hi Michael thanks for the reply. Yea it should be but trigger will still work. Anyway I think I need to give everyone their own production. I just thought I remembered seeing a game a few years ago that didn't do it that way.

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

            @beelee check the name of your <productionFrontier> it might be something like 'production'.
            In the line :
            <option name="productionRule" value="frontierRules:-buyTransport"/>
            'frontierRules' is the wrong value. Change it to the <productionFrontier> name.

            Hope this helps.

            Cheers...

            B 1 Reply Last reply Reply Quote 3
            • B
              beelee @wc_sumpton last edited by

              @wc_sumpton
              Heh heh 🙂 Thanks again for bailing me out. I was getting ready to dive in on separate for everyone 🙂

              N 1 Reply Last reply Reply Quote 0
              • N
                Numetalfan @beelee last edited by

                XOB says:

                An option withintriggerAttachment
                Parameters:

                value: A colon separated pair, Format: 'productionFrontier:productionRule'

                Adds or removes the productionRule at beginning of the purchase phase.
                Prefix with '-' to remove the productionRule.
                Note: There is a productionRule element under production.

                I have:

                <productionFrontier name="productionG">
                <frontierRules name="buyParatroopers"/>

                Now I need a trigger that removes buyParatroopers

                My attempt doesn't work:

                ..
                <attachment name="triggerAttachmentGHC" attachTo="Germans" javaClass="TriggerAttachment" type="player">
                <option name="when" value="after:germanEndTurn"/>
                <option name="uses" value="1"/>
                <option name="trigger" value="conditionAttachmentGHC"/>
                <option name="productionRule" value="productionFrontier:-buyParatroopers"/>
                </attachment>

                what is the solution?

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

                  @Numetalfan

                  The 'productionFrontier' name is "productionG" so to remove "buyParatroopers" the line should read:

                     <option name="productionRule" value="productionG:-buyParatroopers"/>
                  

                  Cheers...

                  N 1 Reply Last reply Reply Quote 1
                  • N
                    Numetalfan @wc_sumpton last edited by

                    @wc_sumpton

                    That's it. Now it works. Thx

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