Navigation

    TripleA Logo

    TripleA Forum

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

    Technology & Tech Trees - how to make one tech unlock another tech

    Feature Requests & Ideas
    2
    6
    657
    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.
    • cameron
      cameron last edited by cameron

      Technology & Tech Trees - "how to make one tech unlock another tech"?
      this seems to have been asked in different ways over the years but i failed to find a clear answer. i'm guessing that there is no simple way of doing this with the standard tech system - just the age of tribes way... but hopefully i'm wrong?

      is there maybe a way to make unlocking a special unit require two techs?

      edit: dammit, thought i was making this in the map making sub... not allowed to delete so apologies for putting it in the wrong place... although if i'm correct about it being impossible then i guess it is a feature request...

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

        @cameron

        More information is needed to understand what you are trying to accomplish.

        That being said, tech can be handled with triggers. In PoS2:

        <attachment name="conditionAttachmentAmericans4" attachTo="Americans" javaClass="RulesAttachment" type="player">
           <option name="techs" value="jetPower:warBonds" count="2"/>
        </attachment>
        

        Reads the jetPower and warBonds techs. Then triggers can be designed to read this comdition:

        <attachment name="triggerAttachmentAmericans8_TacticalAirUse" attachTo="Americans" javaClass="TriggerAttachment" type="player">
            <option name="conditions" value="conditionAttachmentAmericans4"/>
            <option name="support" value="supportAttachmentFighter"/>
           <option name="uses" value="1"/>
        </attachment>
        

        This trigger is designed to fire after both jetPower and warBonds tech have been granted to Americans.

        As I said, more information is needed to understand what you are trying to accomplish.

        Cheers...

        cameron 1 Reply Last reply Reply Quote 2
        • cameron
          cameron last edited by

          context:
          i'm still modding steampunk advanced.
          there is a tech "armour" that unlocks multiple units - different tanks plus some rather uber monstrosities. i would like to separate off the most OP one [heatrayTripod] into another tech that only becomes available after one has gained "armour".

          1 Reply Last reply Reply Quote 0
          • cameron
            cameron @wc_sumpton last edited by

            does the trigger you suggested just give them the tech? or make it available for future research?

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

              @cameron

              The condition checks for given tech. The trigger grants a unitSuppportAttachment,

              To give a tech with triggers use the "tech" key word, to add remove tech from development use "availableTech".

              Cheers...

              1 Reply Last reply Reply Quote 2
              • cameron
                cameron last edited by

                finally got this working. dunno what i did wrong the first time... sometimes you just need to delete it and start again. 😉

                thanks for the help. 🙂

                <attachment name="conditionAttachmentPlayerAT1" attachTo="Player" javaClass="RulesAttachment" type="player">
                	<option name="techs" value="ArmouredWarfare" count="1"/>
                </attachment>
                <attachment name="triggerAttachmentPlayer_NewTech" attachTo="Player" javaClass="TriggerAttachment" type="player">
                	<option name="conditions" value="conditionAttachmentPlayerAT1"/>
                	<option name="availableTech" value="Advanced:MartianTechnology"/>
                	<option name="uses" value="1"/>
                </attachment>
                
                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums