Army set current hp

From AgeofWiki

Army set current hp is a Effect made by reyk which is accessed from the Triggers menu. You can learn more about the triggers window here. You can learn more about using effects here. This is a custom effect, you can learn about adding custom effects here.


Image:
Image:ArmySetCurrentHP.jpg

XML Code:

<Effect name="ARMY Set Current HP">
     <Param name="SrcArmy" dispName="$$22348$$Army" VarType="group">default</Param>
     <Param name="ScenName" dispName="HP" varType="string">50</Param>
     <Command>trArmySelect("%SrcArmy%");</Command>
     <Command>trUnitSetHP(%ScenName%);</Command>
  </Effect>

Effect Description:

Sets the hitpoints of an entire army to the amount specified. Unlike the other hitpoint effects, this one actually sets the hitpoints, rather then adding or subtracting them.

Effect Parameters:

Army: Select the army you want to affect

HP: The amount of hitpoints you want to set.

Notes:

This effect does not add or subtract hitpoints, it sets them. If you set the hitpoints to zero, then the unit will die. If you set the hitpoints over the default hitpoint limit, it will still work, there are no limitations.


Still don't understand the Army set current hp effect? Ask a question or discuss it on the discussion page!

Back to Custom Effects