I'm stuck with yet another skill
This one is called "Savage" its increase the Owner's attackspeed each time its attacks the same target, but revert the bonus back to 0 if the Owner of the skills target a different unit
I create one Real Ability with description and stuff
Then Create 4 Dummies abilities base on Endurance Aura
I create a trigger which give the dummy ability to the unit that Learn the Real Ability
and set the Dmmy Ability level to 1 which gives 10% attackspeed aura
Each time the unit attacks the same target the Bonus goes up by 10% but if it attacks a different target the bonus will bounce back to 5%
At level 4 of the skill - 400% maximum attackspeed bonus can be aquired
It seems to work at first around level 1-2 where the bonus rate is 5% per attacks but when its get to Level 3-4 It starts to ignore conditions and keeps the 400% bons attackspeed on the unit even though the Owner of the skills has attack a different unit
This is my Trigger
This is the Trigger that turn on necessary trigger when I Learn the Skill, There are 4 of these trigger, it pretty much nearly the same thing
Here are the skills Trigger, There are two part to it, one happened when a unit is attack, it trigger of the Attacking unit is the unit with skill, it stored the Attacked unit in variable and check if it the same unit with the other trigger if it is then increase the dummy spell level by 1, if it isn't then set the level of dummy spell to 1. Then it close itself and turn on the other trigger which do the same thing. I believe two trigger is needed because i need to store 2 unit variable and check if they are the same
I cannot find any error in my triggering since the skills does work on the first two levels
Can anybody help me with this, or do you have an alternative way to do this skill? I would be appreciate if someone could help me figure this out
Thank you.
This one is called "Savage" its increase the Owner's attackspeed each time its attacks the same target, but revert the bonus back to 0 if the Owner of the skills target a different unit
I create one Real Ability with description and stuff
Then Create 4 Dummies abilities base on Endurance Aura
I create a trigger which give the dummy ability to the unit that Learn the Real Ability
and set the Dmmy Ability level to 1 which gives 10% attackspeed aura
Each time the unit attacks the same target the Bonus goes up by 10% but if it attacks a different target the bonus will bounce back to 5%
At level 4 of the skill - 400% maximum attackspeed bonus can be aquired
It seems to work at first around level 1-2 where the bonus rate is 5% per attacks but when its get to Level 3-4 It starts to ignore conditions and keeps the 400% bons attackspeed on the unit even though the Owner of the skills has attack a different unit
This is my Trigger
This is the Trigger that turn on necessary trigger when I Learn the Skill, There are 4 of these trigger, it pretty much nearly the same thing
Trigger:
- Savage Learn Level 1
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Savage
- Actions
- Set Savage_Hero = (Learning Hero)
- Unit - Add Savage Attackspeed (Level 1) to Savage_Hero
- Unit - Set level of Savage Attackspeed (Level 1) for Savage_Hero to 1
- Trigger - Turn off Savage Attackspeed <gen>
- Trigger - Turn off Savage Attackspeed 2 <gen>
- Trigger - Turn on Savage Attackspeed <gen>
- Wait 2.00 seconds
- Trigger - Turn on Savage Learn Level 2 <gen>
- Trigger - Turn off (This trigger)
- Events
Trigger:
- Savage Learn Level 2
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Savage
- Actions
- Set Savage_Hero = (Learning Hero)
- Unit - Remove Savage Attackspeed (Level 1) from Savage_Hero
- Unit - Add Savage Attackspeed (Level 2) to Savage_Hero
- Unit - Set level of Savage Attackspeed (Level 2) for Savage_Hero to 1
- Trigger - Turn off Savage Attackspeed <gen>
- Trigger - Turn off Savage Attackspeed 2 <gen>
- Trigger - Turn on Savage Attackspeed <gen>
- Wait 2.00 seconds
- Trigger - Turn on Savage Learn Level 3 <gen>
- Trigger - Turn off (This trigger)
- Events
Trigger:
- Savage Learn Level 3
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Savage
- Actions
- Set Savage_Hero = (Learning Hero)
- Unit - Remove Savage Attackspeed (Level 2) from Savage_Hero
- Unit - Add Savage Attackspeed (Level 3) to Savage_Hero
- Unit - Set level of Savage Attackspeed (Level 3) for Savage_Hero to 1
- Trigger - Turn off Savage Attackspeed <gen>
- Trigger - Turn off Savage Attackspeed 2 <gen>
- Trigger - Turn on Savage Attackspeed <gen>
- Wait 2.00 seconds
- Trigger - Turn on Savage Learn Level 4 <gen>
- Trigger - Turn off (This trigger)
- Events
Trigger:
- Savage Learn Level 4
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Savage
- Actions
- Set Savage_Hero = (Learning Hero)
- Unit - Remove Savage Attackspeed (Level 3) from Savage_Hero
- Unit - Add Savage Attackspeed (Level 4) to Savage_Hero
- Unit - Set level of Savage Attackspeed (Level 4) for Savage_Hero to 1
- Trigger - Turn off Savage Attackspeed <gen>
- Trigger - Turn off Savage Attackspeed 2 <gen>
- Trigger - Turn on Savage Attackspeed <gen>
- Trigger - Turn off (This trigger)
- Events
Here are the skills Trigger, There are two part to it, one happened when a unit is attack, it trigger of the Attacking unit is the unit with skill, it stored the Attacked unit in variable and check if it the same unit with the other trigger if it is then increase the dummy spell level by 1, if it isn't then set the level of dummy spell to 1. Then it close itself and turn on the other trigger which do the same thing. I believe two trigger is needed because i need to store 2 unit variable and check if they are the same
Trigger:
- Savage Attackspeed
- Events
- Unit - A unit Is attacked
- Conditions
- (Attacking unit) Equal to Savage_Hero
- Actions
- Set Savage_Target = (Attacked unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Savage_Target Equal to Savage_Target2
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Savage for Savage_Hero) Equal to 1
- Then - Actions
- Unit - Increase level of Savage Attackspeed (Level 1) for Savage_Hero
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Savage for Savage_Hero) Equal to 2
- Then - Actions
- Unit - Increase level of Savage Attackspeed (Level 2) for Savage_Hero
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Savage for Savage_Hero) Equal to 3
- Then - Actions
- Unit - Increase level of Savage Attackspeed (Level 3) for Savage_Hero
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Savage for Savage_Hero) Equal to 4
- Then - Actions
- Unit - Increase level of Savage Attackspeed (Level 4) for Savage_Hero
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Unit - Set level of Savage Attackspeed (Level 1) for Savage_Hero to 1
- Unit - Set level of Savage Attackspeed (Level 2) for Savage_Hero to 1
- Unit - Set level of Savage Attackspeed (Level 3) for Savage_Hero to 1
- Unit - Set level of Savage Attackspeed (Level 4) for Savage_Hero to 1
- If - Conditions
- Trigger - Turn on Savage Attackspeed 2 <gen>
- Trigger - Turn off (This trigger)
- Events
Trigger:
- Savage Attackspeed 2
- Events
- Unit - A unit Is attacked
- Conditions
- (Attacking unit) Equal to Savage_Hero
- Actions
- Set Savage_Target2 = (Attacked unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Savage_Target2 Equal to Savage_Target
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Savage for Savage_Hero) Equal to 1
- Then - Actions
- Unit - Increase level of Savage Attackspeed (Level 1) for Savage_Hero
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Savage for Savage_Hero) Equal to 2
- Then - Actions
- Unit - Increase level of Savage Attackspeed (Level 2) for Savage_Hero
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Savage for Savage_Hero) Equal to 3
- Then - Actions
- Unit - Increase level of Savage Attackspeed (Level 3) for Savage_Hero
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Savage for Savage_Hero) Equal to 4
- Then - Actions
- Unit - Increase level of Savage Attackspeed (Level 4) for Savage_Hero
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Unit - Set level of Savage Attackspeed (Level 1) for Savage_Hero to 1
- Unit - Set level of Savage Attackspeed (Level 2) for Savage_Hero to 1
- Unit - Set level of Savage Attackspeed (Level 3) for Savage_Hero to 1
- Unit - Set level of Savage Attackspeed (Level 4) for Savage_Hero to 1
- If - Conditions
- Trigger - Turn on Savage Attackspeed <gen>
- Trigger - Turn off (This trigger)
- Events
I cannot find any error in my triggering since the skills does work on the first two levels
Can anybody help me with this, or do you have an alternative way to do this skill? I would be appreciate if someone could help me figure this out
Thank you.