• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Adding buff to an area.

Status
Not open for further replies.
Level 3
Joined
Oct 1, 2018
Messages
63
I think you need to create a dummy unit, wich casts the Buff-giving spell to the entering Unit.

You could for an example use shadowstrike, without missle/projektile and without demage.

This way take a unit from an unused player, so that it can cast shadowstrike on all other units.

If you wabt the buff all the time the unit stands in that area im sorry. If that is i have no idea eather.

Edit:
The Buff-casting Dummy unit should also be invisible. You can do that by trigger, via Animation-vertex colouring.

more simply change the Model of that unit in the object editor via shift+enter to (no letters).mdx
This way the Model of that unit is missing and doesnt show up.

Remove the Colision of it.
In OE Shift+Enter -1. And make it flying.

good luck to you. :)
 
Last edited:
Level 5
Joined
Jul 27, 2017
Messages
73
If you want an AoE-Skill which adds a buff to all units in a certain are it's @Donnerkoetel said
Just add a forgroup action handling units within a range to center of targeted location.

It it has to be a permanent buff in a certain region then a trigger handling unit enters region should be enough.
 
Level 39
Joined
Feb 27, 2007
Messages
5,010
You can also apply buffs generally in a static area with an aura, though aura update period is kind of slow so it's not perfect. You would do that by giving the aura to a dummy unit and putting that dummy on the map where you want the buff to be.

Instead of using a dummy unit to cast a 0.00 duration (infinite) buff on a unit, you can also make self-targeted auras and give those auras to units to bestow buffs upon themselves. Devotion Aura would give a green positive buff icon and Tornado Slow Aura would give a red buff icon. If you set their icon positions to (0,-11) they will not even show up on the unit's command cards, so you can just give the unit the ability when you want it to gain the buff, and remove the ability from it when you want the buff to go away. This still suffers from aura update lag, though.
 
Level 3
Joined
Oct 1, 2018
Messages
63
That Idea of Pyrogasm is also pretty good. In the ExtemeCandyWar2004 map is this Dwarf-Paladin who can switch between 2-3 Auras.

There is a trigger to switch the auras with an customscript to remove the buff from the previous Aura instand.
Take a look at it. If you like to the way Pyrogasm sowed this Customscript might help you a bit.
Alltough im not that good at customscripts/jass.

Edit:
Forget what i just told. In the Auraswitch trigger is a pickunit-remove buff within range of position function.
Above that function is following custom script: setbj_wantDestroyGroup =true


I think what this script does is just to destroy the following unitgroup to remove leaks.
However if you want to remove the Aura-Buff faster take a look at that map.
 
Last edited:
Status
Not open for further replies.
Top