a question about an icon of mine

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

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))
      • 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
      • Wait 2.00 seconds
      • Floating Text - Destroy (Last created floating text)


PS. please dont copy this ability.
 

Extremedesyr

New Member
Reaction score
6
aha, yes I will try to figure out if that's the issue, but it shouldnt be, tough, because it shows less, not more damage than the amount of damage beiing dealt

nvm, problem solved.
 

Extremedesyr

New Member
Reaction score
6
I still have no clue why but the spell appeared to do extra damage on creeps, exact damage against 'normal' units

tested it on the Barbed Anarchid unit, where it did more damage than it was supposed to, and later I tested it on a priest (belonged to neutral hostile) where it did exact damage.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top