reduce current mana by a flat number just like Mana Burn.Reduce current mana or max mana? Permanently or temporarily? By a flat number or a percentage? The solution is different depending on the answers to all 3 of these questions.
Thank you very much. But the map file can't be opened.I attached an example of a triggered shockwave ability that you can edit to drain mana from damaged units.
Add this line to the Pick Every Unit action:
I'm sure the map could be improved a lot but it gets the job done.
Then - Actions
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - 25.00)
Thanks a lot. But your trigger has a problem. The affected units are infinite. It is too powerful. I want the affected units to be finite, just the first 4 or 5 that are hit by Crushing Wave.I recommend using Shockwave/Carrion Swarm System v1.1 instead. You can tweak sfx, targets allowed, damage, speed, distance and more.
![]()
Shockwave/Carrion Swarm System v1.1
Found this laying dormant in my WIP Triggers. I decided to share this because I haven't found any Shockwave Systems yet, but if there is already, I guess it is far better than this one, so please give a link to it and just reject this one. An easy-to-use Ability-related system which allows the...www.hiveworkshop.com
I attached an example of a triggered Crushing Wave Shockwave/Carrion Swarm ability that reduces mana points by 25. You should be able to open it since I'm using 1.27. I think Uncle is using 1.31 or above.
nit and does nothing else. (B
Thank you for your guide. But I don't have much experience in writing triggers. Could you be more specific or give me a map of this kind to me so that I can figure out how to do it?Simplest possible solution involves having a damage detection system in your map. It's been a while since I have mucked about with wc3 so I have no idea what DDSes are popular now but I presume they must exist and are efficient. Look up one to use depending on if you are GUI or JASS or Lua user.
- Turn the hero spell into a dummy spell that just targets a point/unit and does nothing else. (Base it on Channel, a spell specifically designed for doing this.)
- When the dummy hero spell is cast, create a special invis dummy unit for that hero's owner. Add the actual crushing wave-based spell to that unit with a trigger, set its level to the same level as the hero that cast the dummy spell that did nothing, and then have the dummy unit actually cast the crushing wave spell on the same target unit/point. Give it a short expiration timer that is longer than the total duration the CW spell animation might take to play.
- Make a trigger that runs when a unit takes damage (supplied by the DDS). Check (via conditions) that the source of that damage is a dummy unit and that that dummy unit has the Crushing Wave spell (spell level > 0); if so, you know that unit just took damage from this CW-based spell. In this trigger, reduce the current mana of the damaged unit by the appropriate amount (via Unit - Set Property or SetUnitState). If you want a mana burn effect you'll also need the dummy to deal additional damage to that target.
Do you mean you want it to have a maximum damage limit? And should it disappear after it hits X targets? Or should it keep going but not deal dmg/burn mana?Thanks a lot. But your trigger has a problem. The affected units are infinite. It is too powerful. I want the affected units to be finite, just the first 4 or 5 that are hit by Crushing Wave.
As we all know, Shockwave has a maximum damage limit, it can only damage several enemy units. I just want the mana of these damaged units to be reduced.Do you mean you want it to have a maximum damage limit? And should it disappear after it hits X targets? Or should it keep going but not deal dmg/burn mana?
The more details the better, as there's different solutions depending on the specifics.
It sounds like you want some kind of Integer variable that counts each target hit, and prevents damage/mana burn from occurring once this Integer has become Greater than or equal to 5.
Every single line you need to have in your triggers is described in my 3 bullet points. Try to follow what I said to do, and when you get stuck then post what you tried. You will learn more this way.Could you be more specific or give me a map of this kind to me so that I can figure out how to do it?