This is similar to the one i wanted with the "Changing ownership of units"
But this time i wants to add hp to units i have selected.
e.x.
-hpx2
-hpx3
-hpx4
...
my current trigger remade from the one free_killing gave me:
but it doesn't work! help!
But this time i wants to add hp to units i have selected.
e.x.
-hpx2
-hpx3
-hpx4
...
my current trigger remade from the one free_killing gave me:
Trigger:
- adding hp
- Events
- Player - Player 1 (Red) types a chat message containing -hpx2 as An exact match
- Conditions
- Actions
- Set AddingHpSelection = (Units currently selected by Player 1 (Red))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in AddingHpSelection) Less than or equal to 1
- Then - Actions
- Custom script: call DestroyGroup(udg_AddingHpSelection)
- Skip remaining actions
- Else - Actions
- Do nothing
- If - Conditions
- Unit Group - Pick every unit in AddingHpSelection and do (Actions)
- Loop - Actions
- Unit - Set life of (Picked unit) to ((Max Life of (Picked unit)) x 2.00)
- Loop - Actions
- Custom script: call DestroyGroup(udg_AddingHpSelection)
- Events
but it doesn't work! help!