Navigation

    TripleA Logo

    TripleA Forum

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

    How to pass on hits with "whenHitPointsDamagedChangesInto"

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

      Hej there Triple-workers and thinkers...,

      just another issue I like to solve:

      I want a unit with several hitpoints to
      change into a lesser version after being hit: but with keeping the Hits!
      whenHitPointsDamagedChangesInto
      all works fine BUT I cannot transfer the hitpoints into
      the new unit... (whatever I try; and by this not having a repair option pop-up appearing)

      <option name='whenHitPointsDamagedChangesInto' value='1:true:castle_damaged'/>

      value: A colon delimited triple = damage: transferAttributes!! :unitType damage: Amount of damage
      transferAttributes: true / false (Does new unit keep damage)
      unitType: new unitType name

      I also checked is some property needs to be set for this but can't find one. What did I miss?
      So anyone knows a working example where the Hitpoints are actually transferred into the new (lesser) unit? Otherwise I need to make a dirty compromise workaround ..:( thanks a lot!

      Daimyo.png
      Bajutsu.png
      Samurai.png

      TheDog 1 Reply Last reply Reply Quote 1
      • TheDog
        TheDog @ebbe last edited by

        checkout
        https://forums.triplea-game.org/topic/3264/arena-of-death-official-thread

        In particular the Warrior, it has 4 Hit Points, the xml also including Healing/Repairing.

        It might only be a 2.6 download.

        ebbe 1 Reply Last reply Reply Quote 1
        • ebbe
          ebbe @TheDog last edited by ebbe

          @thedog thanks for suggestion, it did not bring me to the answer yet :
          as I look for an example where the actual hits are transferred to the new unit, ( so shown as a black 1 or 2 in upper corner of the "new" unit and by this considered hit & triggering a repair pop-up )
          which I cannot reconstruct and find working examples of , allthough http://www.starlords3k.com/XOB.html suggests it could work.. hmmm

          nice micro play and game system The Arena of Death" by the way.....

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

            Hi ebbe

            yea so if you want to have something that is multi hit and change into a unit that has one less hit, this is how hepster or maybe Ralph, think it was hepps 🙂 did it in TWW.

            Screenshot from 2023-01-21 02-21-22.png

            Give the new unit 2 hit points
            <option name="hitPoints" value="2"/>

            and a 1
            So <option name="whenHitPointsDamagedChangesInto" value="1:true:germanBattleship-damaged"/>

            The 1 represents 1 HP.

            And in repair it's 0
            <option name="whenHitPointsRepairedChangesInto" value="0:true:germanBattleship"/>

            Idk how to start the game with damaged units though. Have to edit the 1 hit is what i do

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

              so for repair i did it this way

              Screenshot from 2023-01-21 02-51-57.png

              and you can place the repair unit anywhere you control. Land TTys will fix adjacent SZs

              1 Reply Last reply Reply Quote 0
              • B
                beelee last edited by

                @ebbe I used it with Global 40 Expansion. Here's an example.
                Uk BB starts out undamaged
                Screenshot from 2023-01-21 19-35-29.png

                Takes a Hit and changes into BB Damaged
                Screenshot from 2023-01-21 19-34-44.png

                Then when in Edit mode if you click on BB damaged it will show 1 Hit of damage
                Screenshot from 2023-01-21 19-34-14.png

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