Navigation

    TripleA Logo

    TripleA Forum

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

    How to make a unit that does not require a factory to be built/placed.

    Map Making
    3
    6
    454
    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.
    • SLW2000
      SLW2000 last edited by

      Does anyone know how to make a unit (say infantry) that does not require a factory to be built or placed?

      Thanks.

      Shawn

      redrum C 2 Replies Last reply Reply Quote 0
      • redrum
        redrum Admin @SLW2000 last edited by

        @SLW2000 You can make any unit not require a factory and be placed anywhere by setting isConstruction to true. An example would be like bunkers in NWO/WaW:

            <attachment name="unitAttachment" attachTo="Bunker" javaClass="UnitAttachment" type="unitType">
              <option name="attack" value="0"/>
              <option name="defense" value="3"/>
              <option name="hitPoints" value="2"/>
              <option name="isConstruction" value="true"/>
              <option name="constructionType" value="bunker"/>
              <option name="constructionsPerTerrPerTypePerTurn" value="1"/>
              <option name="maxConstructionsPerTypePerTerr" value="1"/>
            </attachment>
        
        SLW2000 1 Reply Last reply Reply Quote 1
        • SLW2000
          SLW2000 @redrum last edited by

          @redrum Thanks for the info and it works great.

          I had another question: how do you enable "More Constructions without Factory"? I wanted the unit to be buildable up to the territory value like other land units.

          Thanks.

          Shawn

          redrum 1 Reply Last reply Reply Quote 0
          • redrum
            redrum Admin @SLW2000 last edited by

            @SLW2000 You just need to add these 2 properties and set them to true to the properties list at the end of the XML:

                <!-- if true you may have a number of constructions up to the value of the territory, in territories with factories -->
                <property name="More Constructions with Factory" value="true" editable="true">
                  <boolean/>
                </property>
                <!-- if true you may have a number of constructions up to the value of the territory, in territories without factories -->
                <property name="More Constructions without Factory" value="true" editable="true">
                  <boolean/>
                </property>
            
            C 1 Reply Last reply Reply Quote 1
            • C
              Cernel Moderators @redrum last edited by

              @redrum Those are stack limits, not placement limits.

              @SLW2000 What you want to do is not possible. However, you can have factories in all territories, then a unit that is required by all normally placeable units, except the units you would want to be placeable without factories.

              1 Reply Last reply Reply Quote 1
              • C
                Cernel Moderators @SLW2000 last edited by

                @SLW2000 Please, take a look at the descriptions. "Maps & Mods" says: "Talk about and work on specific Maps and Mods".

                Moving this thread to Mapmaking.

                When you will have your specific map or mod, feel free to open a thread about that in "Maps & Mods" (though I still suggest opening threads in Mapmaking for the technicalities, to keep your thread cleaner for general feedback).

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