How to pass on hits with "whenHitPointsDamagedChangesInto"
-
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 nameI 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!
-
checkout
https://forums.triplea-game.org/topic/3264/arena-of-death-official-threadIn particular the Warrior, it has 4 Hit Points, the xml also including Healing/Repairing.
It might only be a 2.6 download.
-
@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.. hmmmnice micro play and game system The Arena of Death" by the way.....
-
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.
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
-
so for repair i did it this way
and you can place the repair unit anywhere you control. Land TTys will fix adjacent SZs
-
@ebbe I used it with Global 40 Expansion. Here's an example.
Uk BB starts out undamaged
Takes a Hit and changes into BB Damaged
Then when in Edit mode if you click on BB damaged it will show 1 Hit of damage