Navigation

    TripleA Logo

    TripleA Forum

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

    unit is getting captured when i lose the battle, and i can't figure out why

    Map Making
    4
    14
    783
    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.
    • F
      ff03k64 last edited by

      				
      		<attachment name="unitAttachment" attachTo="smokegrenade" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                  <option name="movement" value="1"/>
                  <option name="attack" value="0"/>
                  <option name="defense" value="0"/>
      			<option name="isInfrastructure" value="true"/>
      			<option name="destroyedWhenCapturedFrom" value="XCOM"/>
              </attachment>
      
      B 1 Reply Last reply Reply Quote 1
      • B
        beelee @ff03k64 last edited by beelee

        @ff03k64 it's because it's isInfrastructure. Idk of a solution.

        I guess you could have them destroyed when captured. Or at least I think you can

        1 Reply Last reply Reply Quote 1
        • F
          ff03k64 last edited by

          Maybe i should describe what i am going for and see if there are suggestions for another way to do it. I want this unit to support units in the battle (negative support enemies in this particular case), but i don't want it to be able to be picked as a casualty.

          S 1 Reply Last reply Reply Quote 1
          • S
            SilverBullet @ff03k64 last edited by

            @ff03k64 what map? some maps give you an option for "destroy" or "capture" units.

            F 1 Reply Last reply Reply Quote 0
            • F
              ff03k64 @SilverBullet last edited by

              @SilverBullet I am making a map

              S 1 Reply Last reply Reply Quote 1
              • S
                SilverBullet @ff03k64 last edited by

                @ff03k64 ahh, then another map maker needs to answer that, but the Napoleon map has that option.

                F 1 Reply Last reply Reply Quote 0
                • F
                  ff03k64 @SilverBullet last edited by

                  @SilverBullet Do you know what unit has it?

                  S 1 Reply Last reply Reply Quote 1
                  • S
                    SilverBullet @ff03k64 last edited by

                    @ff03k64 in Napoleon you can set the option to either destroy or capture "generals" or "encampments", so i dont think it is a unit thing but an option thing.

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      ff03k64 @SilverBullet last edited by

                      @SilverBullet Okay, i will at least check those units out though. Thanks!

                      S 1 Reply Last reply Reply Quote 1
                      • S
                        SilverBullet @ff03k64 last edited by

                        @ff03k64 good luck!

                        1 Reply Last reply Reply Quote 0
                        • F
                          ff03k64 last edited by

                          Thanks you!

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

                            @ff03k64 yea I got a unit I don't want as a hitpoint either. I made it infrastructure like you have but it would get captured if a lost battle. It was a strategic bomber so the situation rarely occurred.

                            However, I'm noticing with 2.2 it's being offered as a hit point and I don't remember that with 13066. Unfortunately my OS is all jacked up and I can get 13066 to work anymore so I can't check to see if that is the actual case.

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

                              @ff03k64

                              Check this property:

                              <!-- if true, units with destroyedWhenCapturedBy will be destroyed instead of captured. only applies to non-combat units, since combat units die in combat -->
                              <property name="Units Can Be Destroyed Instead Of Captured" value="true" editable="false">
                                    <boolean/>
                              </property>
                              

                              Cheers...

                              F 1 Reply Last reply Reply Quote 1
                              • F
                                ff03k64 @wc_sumpton last edited by

                                @wc_sumpton That was it, thanks!

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