• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

[Spell] Spell that make a mine explose aumatically and leave flames on ground

Status
Not open for further replies.

CTP

CTP

Level 1
Joined
Jun 23, 2022
Messages
3
Hello,
I'm trying to make a spell where a hero summon a mine, and after that, when an enemy units comes within 25 range of the mine, make it explose, dealing 10/sec to all units within 100 range of the point the mine exploded for 10 seconds.

Since the sapper mine is disbled (it appear to have only kaboom)

  1. I modified Summon water elemental to summon a mine at hero place
  2. The mine is set on the ground, but how to detect units entering range 25 ?
I heard you have to use aura, I make the mine to have an aura (range 25) that applies a MineProximityBuff to any units within range, but can't get a trigger that detect buff gain.

So my 1st question is How to trigger my mine explosion ?
Other question are How to trigger the one mine that detect proximity and not others
and last one is How to center the AOE effect to the position of the mine and not the triggerring unit that gain buff ?
 

Uncle

Warcraft Moderator
Level 71
Joined
Aug 10, 2018
Messages
7,607
For the damage over time effect, the easiest method is to create and order a Dummy unit to cast Flamestrike at the position of the mine when it dies.
  • Events
  • Unit - A unit dies
  • Conditions
  • Unit-type of (Triggering unit) Equal to Land Mine
  • Actions
  • --- Create dummy unit, add flamestrike to it, order it to cast flamestrike at the position of the (Triggering unit) ---
Check out my FIRST comment in this thread for more info about Dummy units:
Some other info regarding Dummy units:
Another example of Dummy unit usage:

If Flamestrike doesn't work for you then you'll have to trigger a custom periodic damage over time effect yourself. This could help you get started:

The Dynamic Indexing method comes to mind as well (link in my signature), that's what I'd use to trigger this type of effect.
 
Status
Not open for further replies.
Top