Castable Critical Strike

jhnam95

Active Member
Reaction score
12
I'm looking to make an ability where if you use it, you deal 2/3/4/5x of the unit's damage. I tried using Frost Arrows with GDD like I would for autocast spells that add damage like DotA's Glaives of Wisdom or Impetus. I can't just use the unit's base damage + unit's main stat since it might have items that give it bonus damage rather than just stats.

Any suggestions?
 
Trigger:
  • Set SomeVar = ((Intelligence of (Triggering unit) (Include bonuses)) x YourDamage)


This?
 
That's what I said DOESN'T work. It doesn't include the bonus damage from items. So no... not that.
 
I tried using Frost Arrows with GDD like I would for autocast spells that add damage like DotA's Glaives of Wisdom or Impetus.

What about this approach didn't work?
 
i think op wants to deal 2x base damage of a unit, not including bonuses (i could be wrong). as far as i know, the only way is to track bonuses a unit gain, then determine the base damage of a unit with a damage detection system + armor utils.
 
Say the hero had 25 base damage and 50 agility. With the triggered crit using that method, if it was 2x, then it would deal (25 + 50) x 2 damage, resulting 150 damage.. However, if the hero had a Claws of Attack +9 and it attacked, it would deal 159 instead of 168 since the 9 damage isn't included in the trigger.
 
Do a generic unit damage and just deal the damage amount if the chance is right.
 
Hmm... Here's the trigger for it. The spell also slows the unit and lowers its armor. It's not doing that either. The trigger isn't firing at all. It might cause a multicrit, but I'm not really concerned about that right now.

Trigger:
  • Tuskarr Hunter 4 Wounding Spear
    • Events
      • Game - GDD_Damage becomes Equal to 0.00
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (GDD_DamagedUnit has buff Tuskarr Hunter 4 Wounding Spear (Non-stacking)) Equal to True
          • (GDD_DamagedUnit has buff Tuskarr Hunter 4 Wounding Spear (Stacking)) Equal to True
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing (GDD_Damage x (1.00 + (Real((Level of Tuskarr Hunter 4 Wounding Spear for GDD_DamageSource))))) damage of attack type Hero and damage type Normal
      • Floating Text - Create floating text that reads (String((((Real((Level of Tuskarr Hunter 4 Wounding Spear for GDD_DamageSource))) + 1.00) x GDD_Damage))) at (((Position of GDD_DamagedUnit) offset by 100.00 towards 45.00 degrees) offset by 100.00 towards 45.00 degrees) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Set the velocity of (Last created floating text) to 100.00 towards 90.00 degrees
      • Floating Text - Change the fading age of (Last created floating text) to 0.25 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 1.51 seconds
      • Set AA_TempPoint = (Position of GDD_DamagedUnit)
      • Unit - Create 1 Dummy for (Owner of GDD_DamageSource) at AA_TempPoint facing Default building facing degrees
      • Unit - Add Tuskarr 4 Wounding Spear Wound to (Last created unit)
      • Unit - Set level of Tuskarr 4 Wounding Spear Wound for (Last created unit) to (Level of Tuskarr Hunter 4 Wounding Spear for GDD_DamageSource)
      • Unit - Order (Last created unit) to Undead Necromancer - Cripple GDD_DamagedUnit
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit - Remove Tuskarr Hunter 4 Wounding Spear (Non-stacking) buff from GDD_DamagedUnit
      • Unit - Remove Tuskarr Hunter 4 Wounding Spear (Stacking) buff from GDD_DamagedUnit
      • Custom script: call RemoveLocation (udg_AA_TempPoint)
      • Trigger - Turn on (This trigger)
 
The buff dosnt match.

It dosnt get removed or does any additional damage? the buff in your ability isnt the one on your conditions
 
The trigger isn't firing at all.
It should be GDD_Event becomes Equal to 0.00, not GDD_Damage. ;)

You might want to deal attack type Chaos and damage type Universal, since GDD_Damage will have already been mitigated by armor and armor type.
 
Oh. I KNEW IT! I knew it was some stupid mistake that I made! T_T
Sigh... Only 3 wks into summer vacation and my IQ is already undefined...
Thx I spose. And yea... i forgot to change the damage type.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      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