Here's how you can modify the damage of the ability:I need everyone's help? when the hero uses spell thunder clap with normal damage of 5 x str and has a chance of 30% excellent damage rate of 10 x str and displays Floating Text Damage in a different color from normal Floating Text Damage.
Here's how you can modify the damage of the ability:
The Set Ability action requires at least patch 1.31.
- Cast Thunderclap
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Thunder Clap
- Actions
- -------- Calculate how much damage to deal: --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 100) Greater than 30
- Then - Actions
- -------- Normal damage: --------
- Set VariableSet Thunderclap_Damage = ((Real((Strength of (Triggering unit) (Include bonuses)))) x 5.00)
- Else - Actions
- -------- Excellent damage: --------
- Set VariableSet Thunderclap_Damage = ((Real((Strength of (Triggering unit) (Include bonuses)))) x 10.00)
- -------- --------
- -------- Modify Thunderclap's damage to use Strength (5x or 10x): --------
- Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Thunder Clap)'s Real Level Field: AOE Damage ('Htc1') of Level: ((Level of (Ability being cast) for (Triggering unit)) - 1) to Thunderclap_Damage
I attached a map (requires latest patch) that shows another way to do this with Floating Text. The way it's handling the Floating Text is not perfect but it should work 99% of the time. It'd only be a visual bug if it ever goes wrong.
I'm using World Editor Version 1.29 ( Can you help me make a map in World Editor Version under 1.30?Here's how you can modify the damage of the ability:
The Set Ability action requires at least patch 1.31.
- Cast Thunderclap
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Thunder Clap
- Actions
- -------- Calculate how much damage to deal: --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 100) Greater than 30
- Then - Actions
- -------- Normal damage: --------
- Set VariableSet Thunderclap_Damage = ((Real((Strength of (Triggering unit) (Include bonuses)))) x 5.00)
- Else - Actions
- -------- Excellent damage: --------
- Set VariableSet Thunderclap_Damage = ((Real((Strength of (Triggering unit) (Include bonuses)))) x 10.00)
- -------- --------
- -------- Modify Thunderclap's damage to use Strength (5x or 10x): --------
- Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Thunder Clap)'s Real Level Field: AOE Damage ('Htc1') of Level: ((Level of (Ability being cast) for (Triggering unit)) - 1) to Thunderclap_Damage
I attached a map (requires latest patch) that shows another way to do this with Floating Text. The way it's handling the Floating Text is not perfect but it should work 99% of the time. It'd only be a visual bug if it ever goes wrong.
It's a good idea to mention that in initial post imo.I'm using World Editor Version 1.29 ( Can you help me make a map in World Editor Version under 1.30?
I can't send you a map since I'm on the latest version but you can trigger the damage like this:I'm using World Editor Version 1.29 ( Can you help me make a map in World Editor Version under 1.30?