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

Help with Custom Aura

Status
Not open for further replies.
Level 7
Joined
Nov 13, 2007
Messages
244
Well what I was making is a custom aura that increases every hero attribute by 10 in certain range but I got kinda stuck here.


  • Grace of Elements Totem
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Grace of Elements Totem (Level 1)
    • Actions
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Spell-creation threads go on the Spells and Systems forum.
[self="http://www.hiveworkshop.com/forums/forumdisplay.php?f=309"]
spellsandsystems.gif
»»» Spells and Systems
[/self]
Talk regarding custom created spells and systems takes place in here. Get help creating a spell or implementing a system etc.
Do NOT request for help or discuss spell-creation in the World Editor Help Zone. Spell-matters go on the Spells and Systems, which has it's link above.
~Thread Moved
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
Every second or so pick every unit that has that buff, check if it's custom value is 0 and if so add attributes, and then change it's custom value to something else then 0.

Then pick every unit with that custom value, check if he has the aura and if not decrease the attribute and set the custom value back to 0.
 
Level 17
Joined
Jan 21, 2007
Messages
2,014
Or you could do it like i do my custom auras.

Make an dummy aura, let's base this one of devotion aura. Null it. Make buffs, you know the drill?
Make a unit group variable
Next, make a trigger with the even every second of game time.
Actions - Pick all units in playable map area matching matching unit has buff (attri aura) equal to true
If/then/else
If - picked unit is in (attri aura unit group)
Then - (here you add the dummy ability( i do it in a spellbook, but with some item attribute bonus skills the icon doesn't show)
Else - do nothing
Pick all units in playable map area matching condition matching unit has buff (attri aura) equal to false and unit is in (attri aura unit group) equal to true
Remove the unit ability

Just make your totem(summoned unit) have the aura.

NOT LEAKLESS - u could fix that yourself right?
 
Last edited:
Level 17
Joined
Jan 21, 2007
Messages
2,014
Yes, i avoid using custom values since to avoid bugs u should only use one system with them, so i always try to save them until i can't solve it otherwise:con:

The only problem with this template is the levels of the spells, but i noticed that u might change that by using different buffs(which looks the same) at different levels. This makes the trigger longer but it works:grin:
 
Status
Not open for further replies.
Top