LurkerAspect
Now officially a Super Lurker
- Reaction score
- 118
You're better off going with the custom value option. An example trigger of this would be:
You can add your own conditions if you only want it to work for a certain type of unit, or only a specific unit, etc. This trigger can be copied to make the killing unit upgrade multiple levels, all using the custom value of the unit.
Hope this helps
Trigger:
- unit kills unit
- Events
- Unit - A unit Dies
- Conditions
- Actions
- Unit - Set the custom value of (Killing unit) to ((Custom value of (Killing unit)) + 1)
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Killing unit)) Equal to (==) 10
- Then - Actions
- Unit - Replace (Killing unit) with a Footman using The old unit's relative life and mana
- Else - Actions
- Do nothing
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Unit - Set the custom value of (Killing unit) to ((Custom value of (Killing unit)) + 1)
- Events
You can add your own conditions if you only want it to work for a certain type of unit, or only a specific unit, etc. This trigger can be copied to make the killing unit upgrade multiple levels, all using the custom value of the unit.
Hope this helps