• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Combining Critical Strike and Bonus Damage

Status
Not open for further replies.

Gemba

G

Gemba

I'm wondering how to combine the Critical Strike ability with extra damage added on regardless of critical or not into one. I have the values all setup(critical chance and multiplier for each level, and the data values setup for how much "Damage Bonus" I like for each level as well). When this skill is trained by a hero, there is no difference in the base damage, nor any added on damage. By "Bonus Damage" I'm interpreting it as it will add that much damage to the hero's current damage for each level it's trained but I don't know if I'm going about it wrong and it will only be awarding bonus damage when critical is successful or what. Any help appreciated and sorry if the answer to my problem exists, I looked. :? Btw the base ability is Critical Strike.
 
as the base spell crit strike doesnt use bonus damage it doesnt even work with custom spells based on that... i dont know why the editor has a problem with that but yet i wasnt able to solve that too... :?
 
use triggers to add an "Item Bonus Damage"(or something like that) ability. the ability that claws of attack uses. that way, you won't have an extra icon.
 
Well, I have made some progress on the situation. At this point I have the skill critical chance/damage working fine. When they first train the skill (level 1), I add the invisible Damage ability I have setup and they gain +5 bonus damage. However, I have not found a way to upgrade or keep training this invisible skill as they train the skill more and more without making a long trigger with 20 condition sets checking the skill level for each one. Anyone have a sure way of configuring the trigger without going through all that hassle?
 
Code:
LevelInvisEX
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Human Archmage - Blizzard
    Actions
        For each (Integer A) from 1 to (Level of Acid Bomb for (Triggering unit)), do (Actions)
            Loop - Actions
                Unit - Remove Acid Bomb from (Triggering unit)
                Unit - Add Acid Bomb to (Triggering unit)
                Unit - Set level of Acid Bomb for (Triggering unit) to ((Level of Acid Bomb for (Triggering unit)) + 1)

Replace acid bomb with the ability you want (the invisible one), and blizzard with the ability that is learned (critical strike yes?)
 
if your skills has 20 levels, then make the invisible damage bonus ability have 20 levels too (no, you don't need to create 19 new abilities. neither do you need to change it to a hero ability.)

then, when the hero learns the skill, use triggers to change the level of the Damage Bonus ability to that of the Critical Strike's level.
 
Status
Not open for further replies.
Back
Top