Navigation

    TripleA Logo

    TripleA Forum

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

    isConstruction for sea zones

    Map Making
    3
    4
    354
    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

      is this possible ? I tried making isSea but said it needed a factory. I guess I could make an invisible factory type unit and put in the sea zones.

      I wonder if
      water="true"
      is why it won't work. Maybe that'd be an easy code addition, if so ?

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

        @beelee

        Really unsure of what you are asking here. By default "Sea Zone"s, "isWater" territories/zones have no production value. Unit placement/production is guided by the a joining land territory/zone production values. If you want to create units in "isWater" zones, you might have to set "production" and or "unitProduction".

        Cheers...

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

          @wc_sumpton cool yea have a repair unit for naval ships that have been hit, but it can only be placed on land. So wanted to be able to place in sea zones but it requires ownership i think to place ?

          At any rate , will give it a shot.

          Thanks

          1 Reply Last reply Reply Quote 0
          • General_Zod
            General_Zod Moderators @beelee last edited by General_Zod

            @beelee Should be possible. Try placing a construction with isSea attributes and also give it production attributes. But confirm that your current settings allow for construction placement without factory otherwise will need to build next to a factory.

            Heres a few to check and or use. refer to POS2.xml for complete lists

            canProduceUnits
            values: allows a unit to be a factory, without all the other things that come with being a factory (like capturable, land, non-combat, etc). So if you want flying factories, go ahead. Just don't complain if you get errors.

            isConstruction
            values: allows the unit to be placed in territories that don't contain factories.

            Only "constructionsPerTerrPerTypePerTurn" contructions of "constructionType" may be placed per territory per turn.

            May have only "maxConstructionsPerTypePerTerr" constructions Total per territory with/without a factory unless you enable "More Constructions with/without Factory", which will allow up a total number of up to the territory value.

            "Unlimited Constructions" game property allows unlimited constructions total in a territory.

            constructionType
            values: is just a unique string which identifies what kind of construction this, if two or more constructions have the exact same constructionType (and the same PerType rules), then they will follow the same rules for placement.

            example: if you have little_bunker and big_bunker both as type "bunker", with constructionsPerTerrPerTypePerTurn=2, then you could place 2 littles, or 2 bigs, or 1 little and 1 big in a territory

            If you do not want this unit to be effected by the global properties "More Constructions with/without Factory" and "Unlimited Constructions", then make sure the type ends in "structure".

            example: "harbour_structure"

            constructionsPerTerrPerTypePerTurn
            values: is how many of this type you can place in a territory every turn

            maxConstructionsPerTypePerTerr
            values: is how many max of this type may be in a territory. this must be greater than constructionsPerTerrPerTypePerTurn
            if "More Constructions with/without Factory" = true, then the minimum will be either maxConstructionsPerTypePerTerr or the PU value of the territory (whichever number is greater) in territories with/without factories
            if "Unlimited Constructions" = true, then this number becomes 10000

            Also @wc_sumpton is correct the sezone may need production values.

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