Kershbob
New Member
- Reaction score
- 30
Firstly, is there a "loses a buff" event? Or does "finishes the effects of an ability" mean that?
Secondly, I have a trigger to give abilities to units who have killed more than a few enemies; this works through custom values. The values work fine because I added a test script that displays every unit's value but the abilities are still never learnt. Here's the script:
Forgot to mention that the unit gets a higher addtion to it's custom value if the unit it is killing is more experienced.
Secondly, I have a trigger to give abilities to units who have killed more than a few enemies; this works through custom values. The values work fine because I added a test script that displays every unit's value but the abilities are still never learnt. Here's the script:
Code:
[B]Events[/B]
Unit - A unit Dies
[B]Conditions[/B]
((Killing unit) is A structure) Equal to False
((Killing unit) is A Hero) Equal to False
(Owner of (Killing unit)) Not equal to Neutral Passive
[B]Actions[/B]
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Killing unit)) Less than 20
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Killing unit)) Less than 10
Then - Actions
Unit - Set the custom value of (Killing unit) to ((Custom value of (Killing unit)) + ((Custom value of (Dying unit)) + 1))
Else - Actions
Unit - Add Battle-Worn to (Killing unit)
Unit - Set the custom value of (Killing unit) to ((Custom value of (Killing unit)) + ((Custom value of (Dying unit)) + 1))
Else - Actions
Unit - Add Veteran to (Killing unit)
Unit - Set the custom value of (Killing unit) to ((Custom value of (Killing unit)) + ((Custom value of (Dying unit)) + 1))
Forgot to mention that the unit gets a higher addtion to it's custom value if the unit it is killing is more experienced.