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

Trigger Help - A Spell

Status
Not open for further replies.

Damien8

D

Damien8

The GUI doesn't seem to be capable of running the spell I'm trying to make and I'm unfamiliar with JASS. Please help?

The spell has two levels. At level 1 it lasts 20 seconds. At level 2 is lasts 30.

While active, whenever the caster takes damage he deals that much damage to every enemy within a range of 600 of him.

How do I make this happen, whether in the GUI or in JASS?
 
Well, there is a unit takes damage event, but it must be added through another trigger, and this leaks. I'm not sure how to fix this leak.
Whenever a unit learns the spell, add the event (unit takes damage) to your main trigger. There, pick all units around the (damaged unit) and order (damaged unit) to deal (damage dealt) to (picked unit)
 
Status
Not open for further replies.
Back
Top