• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Trigger Help - A Spell

Status
Not open for further replies.
Level 1
Joined
Sep 11, 2008
Messages
2
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?
 
Level 17
Joined
Jan 21, 2007
Messages
2,013
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.
Top