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

    Variable Max Units Per Territory

    Scheduled Pinned Locked Moved Map Making
    2 Posts 2 Posters 566 Views 2 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.
    • Elf 491E Offline
      Elf 491
      last edited by

      I've added bunkers into the game I'm working on. They are in the game, can be bought and defend, etc. There might be a better way to have them repair, but that's not my main concern. What I would like is for the maximum number of Bunkers per territory to be dependent on the IPC value of the territory, with territories worth 0 still being able to have a maximum of 1. Is this possible?

      <attachment name="unitAttachment" attachTo="bunker" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
        <option name="defense" value="3"/>
        <option name="hitPoints" value="2"/>
        <option name="isConstruction" value="true"/>
        <option name="constructionType" value="bunker_structure"/>
        <option name="constructionsPerTerrPerTypePerTurn" value="1"/>
        <option name="maxConstructionsPerTypePerTerr" value="2"/>
        <option name="repairsUnits" value="bunker"/>
        <option name="canBeCapturedOnEnteringBy" value="French:Americans:British:Russians:Germans:Italians:Japanese:ANZAC:Chinese"/>
        <option name="canBeGivenByTerritoryTo" value="British:French"/>
      </attachment>
      
      B 1 Reply Last reply Reply Quote 2
      • B Online
        beelee @Elf 491
        last edited by

        @elf-491

        Hi Elf

        I don't remember exactly how I did it. This is what I have

        <option name="isConstruction" value="true"/>
        <option name="constructionType" value="bunker"/>
        <option name="constructionsPerTerrPerTypePerTurn" value="1"/>
        <option name="maxConstructionsPerTypePerTerr" value="1"/>
        <option name="canDieFromReachingMaxDamage" value="true"/>

        and I think you need this property too

        <property name="Place in Any Territory" value="true" editable="false">
        <boolean/>
        </property>

        there might be some others needed too

        1 Reply Last reply Reply Quote 2

        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