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

Help with items and triggers

Status
Not open for further replies.
Level 5
Joined
Jun 18, 2004
Messages
136
how do i make an item that casts a spell, such as chain lightning, a percentage of the time when a unit holding the item is attacking? It should cast the spell on the unit being attacked.
 
Level 8
Joined
Apr 3, 2004
Messages
507
You want to use an ability based upon the Orb of Slow.

The Orb of Slow ability is unique in that it does exactly what you want. It gives the unit a % chance to cast a spell that you define. However, it only works with single-object-target spells. This does included AoE things like Forked Lightning and Drunken Haze that have one specific object target.

I believe that, if you have the spell that it casts take mana, it will only fire when the unit has enough mana, and it will spend that mana. Generally people make it not take mana.
 
Status
Not open for further replies.
Top