• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Spell] Trying to make a passive spell, help

Status
Not open for further replies.
Level 1
Joined
Feb 22, 2013
Messages
4
Hey guys.
I'm trying to make a passive spell that looks like this:

5% chance when hit: gain 10% damage + 5 armor for 10 seconds.

So far i have created a dummy with that ability, but how do I make the 5% when hit in my triggering? So far it looks like this:

Event: Unit - A unit is attacked.

Conditions: (Attacked Unit) Equal to (hero) <gen>

Actions: ?

Can anyone point me in the right directions? Im new to triggering.
 
Level 1
Joined
Feb 22, 2013
Messages
4
Okay, do i have it right so far then?
And could you maybe explain the integer comparison? :)

Oh, and i still need to make the dummy buff my hero.
 

Attachments

  • Trigger1.png
    Trigger1.png
    15.8 KB · Views: 86
Level 37
Joined
Mar 6, 2006
Messages
9,240
Level 1
Joined
Feb 22, 2013
Messages
4
Thanks for the links and the help so far :) I didn't know this 'link-trigger-feature'.
Here's what it looks like now. I tested it and it works just fine.

I have just one more question: My dummy unit can't use custom abilities?
Ex:
My ability is based on Inner Fire, so instead of making a new Inner Fire ability, i just changed the original one (so that it only lasts for 10 seconds). Is this the real way?

  • Vrede Passive
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Attacked unit) Equal to Rørboss 0008 <gen>
      • (Random integer number between 1 and 100) Less than or equal to 5
    • Actions
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy Rørboss Passive (Custom Campaign) for Player 1 (Red) at (Position of (Triggering unit)) facing 0.00 degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Order (Last created unit) to Human Priest - Inner Fire Rørboss 0008 <gen>
 
Level 1
Joined
Feb 22, 2013
Messages
4
Ah okay. So even though it is ordered to use Inner Fire, it uses the ability it already has (which in this case is my custom-made Inner Fire).
Thank you for the help :)
 
Status
Not open for further replies.
Top