Is it possible to change the
- Hit Points Maximum
- Defense Base
- Attack Base
of a Unit-Type bevor they exist?
I want to calculate the HP, Defense and Attack and than set it to the Unit-Type. So if they spawn, they have the new HP, Attack and Defence.
If i want to change the difficulty of the map, i can easy change the number of the calculation and dont need to change the HP of every single Unit.
and then something like this:
but this is not working with a Unit-Type, only with existing Units
(sorry for my bad english and i have no idea how to upload my trigger correctly)
- Hit Points Maximum
- Defense Base
- Attack Base
of a Unit-Type bevor they exist?
I want to calculate the HP, Defense and Attack and than set it to the Unit-Type. So if they spawn, they have the new HP, Attack and Defence.
If i want to change the difficulty of the map, i can easy change the number of the calculation and dont need to change the HP of every single Unit.
Code:
UnitStatsCalculation
Events
Map initialization
Conditions
Actions
Set VariableSet UnitMathHealthFlatt = 80
Set VariableSet UnitMathHealthMultiplicator = 4
Set VariableSet UnitMathHealthMultiplier = 20
Set VariableSet UnitHealth = ((UnitMathHealthMultiplier x ((WaveNo / UnitMathHealthMultiplicator) x (WaveNo / UnitMathHealthMultiplicator))) + UnitMathHealthFlatt)
and then something like this:
Unit - Set Max HP of "Unit-Type" to UnitHealth
but this is not working with a Unit-Type, only with existing Units
(sorry for my bad english and i have no idea how to upload my trigger correctly)