Extremedesyr
New Member
- Reaction score
- 6
Help with an ability
Hey, I made this ability that is supposed to do normal melee damage, and then show floating text that shows how much damage u did, but 4 some reason, when it says the damage is ± 130, it does more like 190 damage. help please
PS. please dont copy this ability.
Hey, I made this ability that is supposed to do normal melee damage, and then show floating text that shows how much damage u did, but 4 some reason, when it says the damage is ± 130, it does more like 190 damage. help please
Trigger:
- Heroic Strike
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Heroic Strike (Neutral Hostile)
- Actions
- Set HeroicStrikeTarget = (Target unit of ability being cast)
- Set RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))] = (Random integer number between (0 + ((50 + (6 x (Hero level of (Casting unit)))) + ((15 x (Level of Heroic Strike (Neutral Hostile) for (Casting unit))) + (1 x (Strength of (Casting unit) (Include bonuses)))))) and ((70 + (8 x (Hero level of (Casting unit))))
- Set CriticalGenerator[(Player number of (Owner of (Casting unit)))] = (Random integer number between 1 and 100)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- CriticalGenerator[(Player number of (Owner of (Casting unit)))] Less than or equal to 20
- Then - Actions
- Set RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))] = (RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))] + (RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))] / 5))
- Else - Actions
- Set RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))] = (RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))] - (RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))] / 5))
- If - Conditions
- Unit - Cause (Casting unit) to damage HeroicStrikeTarget, dealing (Real(RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))])) damage of attack type Normal and damage type Normal
- Floating Text - Create floating text that reads (String(RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))])) above HeroicStrikeTarget with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
- Set FloatingTextHeroicStrike[(Player number of (Owner of (Casting unit)))] = (Last created floating text)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- CriticalGenerator[(Player number of (Owner of (Casting unit)))] Less than or equal to 20
- Then - Actions
- Floating Text - Change text of FloatingTextHeroicStrike[(Player number of (Owner of (Casting unit)))] to (CC_Player_Colours[1] + ((String(RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))])) + CC_Endtag)) using font size 18.00
- Else - Actions
- Floating Text - Change text of FloatingTextHeroicStrike[(Player number of (Owner of (Casting unit)))] to (CC_Player_Colours[2] + ((String(RandomIntegerHeroicStrike[(Player number of (Owner of (Casting unit)))])) + CC_Endtag)) using font size 12.00
- If - Conditions
- Wait 2.00 seconds
- Floating Text - Destroy (Last created floating text)
- Events
PS. please dont copy this ability.