TzalDadok
New Member
- Reaction score
- 2
I made this skill called "Weapon Specilization". Gives a chance to the hero to attack twice, the hing is i'm not sure if it works, I try paying attention but I can't really figure out if it works or not.
Thanks for your help.
Trigger:
- Weapon Specialization
- Events
- Unit - A unit Is attacked
- Conditions
- (Unit-type of (Attacking unit)) Equal to Arms Warrior
- Actions
- Set WeaponSpecialization_Damage = (Damage taken)
- Set WeaponSpecialization_RandomNum = (Random integer number between 1 and 100)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Weapon Specialization for (Attacking unit)) Equal to 1
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- WeaponSpecialization_RandomNum Less than or equal to 5
- Then - Actions
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing WeaponSpecialization_Damage damage of attack type Hero and damage type Normal
- Animation - Play (Attacking unit)'s attack slam animation
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Weapon Specialization for (Attacking unit)) Equal to 2
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- WeaponSpecialization_RandomNum Less than or equal to 10
- Then - Actions
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing WeaponSpecialization_Damage damage of attack type Hero and damage type Normal
- Animation - Play (Attacking unit)'s attack slam animation
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Weapon Specialization for (Attacking unit)) Equal to 3
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- WeaponSpecialization_RandomNum Less than or equal to 15
- Then - Actions
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing WeaponSpecialization_Damage damage of attack type Hero and damage type Normal
- Animation - Play (Attacking unit)'s attack slam animation
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Weapon Specialization for (Attacking unit)) Equal to 4
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- WeaponSpecialization_RandomNum Less than or equal to 20
- Then - Actions
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing WeaponSpecialization_Damage damage of attack type Hero and damage type Normal
- Animation - Play (Attacking unit)'s attack slam animation
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Events
Thanks for your help.