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

[Spell] Passive Spell Question

Status
Not open for further replies.
Level 6
Joined
Feb 18, 2010
Messages
153
Hey been 3+ years since I made maps, but recently getting back into it.

I am wondering how I go about setting up a passive projectile skill

5% chance to trigger when being hit.

Example: the fan on knives spell but a passive version. That has 5% chance to proc shooting knives around dealing 5x weapon damage to all within 300 area.
 
It's done via damage detection, with optional filters, such as if the damaging unit is an enemy and if the damage should be greater than 0.

Now the interesting part is that it the projectile skill can be outsourced to the Object Editor for simplicity via a dummy ability, or triggered, which requires a Missile and Dummy system, but can give more freedom to the coder on how it will behave.

For clarification, I assume that the meaning of hit is when the unit is actually damaged.
 
Status
Not open for further replies.
Top