• 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.

How to Trigger

Status
Not open for further replies.
Level 6
Joined
Jun 10, 2012
Messages
240
How can I trigger this skill?
Hero enters in a rage, getting X% bonus for next damages, but also takes Y% more damage, .
Thnx in advanced. and + rep to the one who helps me and + credit in map.
 
Last edited:
Level 20
Joined
Jul 14, 2011
Messages
3,213
Depends.
How does the unit enters in a rage? When it's hp reaches a certain point? casts an ability? enters a region? etc....

The % Bonus damage can be done giving an aura ability wich increases damage by %, and removing it when rage ends.

The % damage taken can be done with Berserk Ability, wich allows increasing attack speed and movement speed and damage taken (you can set AS and MS to 0).

Spells dealing % damage bonus is harder. Depends on how you manage your magic damage.
 
Level 4
Joined
Aug 26, 2012
Messages
123
I think in footman's ability, "Defense", there's something about damage reduction and magic reduction... try to negative-value...
(And it's in percent! Or to be precise in decimal, though...
And you can use the item version of Defend....)

As for bonus damage, spartpilio is on the right track, i think....
(yeah, it's simple...)
 
Level 6
Joined
Jun 10, 2012
Messages
240
This's this: Hero enters in a rage, getting X% bonus for next damages, but also takes Y% more damage.
 
Last edited:
Level 33
Joined
Mar 27, 2008
Messages
8,035
spells get Z% more defense break (they do more damage on more defended units and normal on low defense units.
What do you meant by this ?
And what is your definition of "defended units" ?
Units that has the Defend ability or something... ?

And you were trying to say that it deals more damage on defended unit compared to un-defended unit ?

Please tell me "defend" is Armor, please.
 
Level 6
Joined
Jun 10, 2012
Messages
240
Nevermind if that is not possible. "Hero enters in a rage, getting X% bonus for next damages, but also takes Y% more damage."
To make it easier and quicker, Don't try to trigger what I need the "Spells dealing % damage bonus is harder the defended units"
 
Level 6
Joined
Jun 10, 2012
Messages
240
Depends.
How does the unit enters in a rage? When it's hp reaches a certain point? casts an ability? enters a region? etc....

The % Bonus damage can be done giving an aura ability wich increases damage by %, and removing it when rage ends.

The % damage taken can be done with Berserk Ability, wich allows increasing attack speed and movement speed and damage taken (you can set AS and MS to 0).

Spells dealing % damage bonus is harder. Depends on how you manage your magic damage.
How can I add many effects to a skill?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Oh, so he decided to ignore the Z% more damage on harder defended units ?
If that's so, it is solved by following Spart's suggestion.
But note that Auras takes a not-so long delay before the +% DMG takes into effect, also you should remove the aura when the spell ended (to remove the delay between dissipated auras).

And as for takes Y% more damage, you can base the spell itself from Berserk as mentioned by Spart.

So, you now have 2 spells, Berserk being its base and 1 more is Command Aura, don't forget to change the Stats - Targets Allowed: Self.

Also, if you don't want the ability to show up on the unit's UI, you should put it in a Spell Book and disable it, whew many thing to do huh ?

How can I add many effects to a skill?
Search an ability named "Spell Book" in Object Editor, it allows you to put many abilities in it at once and that Spell Book is to be added to the unit.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Each ability has some properties. You can mix abilities to fit the effect you want. The easiest way would be creating a Spellbook with the abilities effects you want, disable it to the player, and give it to the unit, so the abilities will take effect, but the spellbook won't be shown, neither any of the abilities it contains.

You have to detect the skill being used, and add the spellbook, and then use a wait action, or some other wait system to remove the spellbook from the unit once the time you want is done.

<< EDIT >>

Sorry, I don't know why i answered an old post, thinking it was the last one :$
 
Level 6
Joined
Jun 10, 2012
Messages
240
I tried to trigger it but It did not work. Here's my trigger:
 

Attachments

  • rage.JPG
    rage.JPG
    18 KB · Views: 56
Level 6
Joined
Sep 20, 2012
Messages
179
Make a new ability called Rage based on, for example, Fan of Knives, change the visual and sound effects to which ones you want, set it's damage to 0. Make an ability Unrage too so that your hero may get back to normal state. Then simply trigger this: Event -> hero uses Rage ability, Action -> triggered hero gets Berserk ability and Command aura, modified of course. Just make sure to set the radius of Command aura to insanely small number, otherwise friendly units around will get the damage bonus too.
 
Level 6
Joined
Sep 20, 2012
Messages
179
Hmm, actually it proved to be a bit more tricky than I thought. Now I think it is better to do the whole thing based on triggers because the Berserk ability is active, not passive, so it is not activated automatically. It is better just to trigger an event when one unit damages another, then just check if one of them has this Rage ability on and double this damage if necessary.

I will come up with an example map soon. Just need to figure out a bit how the Damage Taken event response is used.
 
Level 6
Joined
Sep 20, 2012
Messages
179
Here you go.
Damage increase is made by Rage aura based on Command Aura, with respective custom buffs. Increase of taken damage is triggered. Note that there is no such event as "Generic unit takes damage" in Trigger Editor, so one of the triggers at start adds all specific units on the map in events "Unit takes damage" to the controlling rage trigger.
This realization allows you to turn on and off Rage Mode whenever you want without any cooldown.

If your map involves addition or training new units not presented on the map at start, you will also want to make a trigger:
Event -> Units enters the region (Playable Map)
Action -> Add to inRage trigger... [Similar]

P.S. Thank you, during solving your issue I learnt something new about buffs and generic events. :thumbs_up:
 

Attachments

  • TestRage.w3x
    16.8 KB · Views: 33
Level 6
Joined
Jun 10, 2012
Messages
240
I still don't get it. How about I attach to Pastebin my map and send it to you in private and you will make the skill. I already made the skill and the icon needed also its effect so you will just make the correct trigger or spell edit.
 
Level 6
Joined
Sep 20, 2012
Messages
179
OK, let me try to explain it more clearly (I fail in it usually, sorry).

You need to make such triggers that double damage (just for example, it can be 20% or something) inflicted to your hero if he/she has Rage ability. So triggers work like this: when someone hurts someone, you check if the hurt person has this ability. If he/she has it, triggers double this damage.

So it would be very easy to write something like this:
Event->Unit takes damage
Condition->Unit has Rage ability
Action->Set unit's life = unit's life - (damage taken)
This would double the damage. Easy, right?

Not so simple. Unfortunately there is no such event "Unit takes damage". But there is an event "Specified unit takes damage". The difference is the first event (if it existed) would work for every unit in the game, while the second one works only for a single unit you specified.
So what you need to do is to make this event for EVERY unit in the game, so that any of them has Rage ability, the trigger will work for him/her.
That is where that trigger with a cycle and the action "Add event to trigger" comes into the game.

This is all for taking more damage by this ability. For inflicting more damage in my test map the command aura is used (with modification, it is called Passive Rage).


If you wish, you may paste here your map and I will implement this script there.
 
Status
Not open for further replies.
Top