HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero Glows for all colors, using 1 trigger.

11-12-2003, 08:14 AM#1
spin
Guess it's pretty basic, but I never found anything like an example for hero glows, except when it showed how to produce one color.

At first, I used the editors triggers, made one for each color (13 in all). It checked for units entering the entire playable map, with the conditions of it being a hero unit and beeing of color <fill in color for which the trigger was>, and ifso, add the special effect glow<color>.mdx to origin.

This took allot of memory, and created tons of lag, even in simulated ai vs ai games.....

Then I rewrote it, using JASS, this time it only took 1 trigger to get the same results, and most of the lag disappeared.

Now this post has kinda a double meaning.
- At one side I'd like the opinion on the trigger from a experienced person. Because I'm wondering if it can be optimized any more ?
- At the other side I'm inviting people to use and abuse the trigger as they see fitt 8))


(ps. the Glow<color>.mdx's are downloadable allready on this forum, a simple search should point them out.)
(ps2. Don't forget to add a variable Color of the type Player Color if you want to use this trigger!)
11-12-2003, 11:16 AM#2
Zachary_Shadow
Actually...this can be done alot easier and without triggers :)

Just download the glow pack.

Import the Glow.mdx file (only that one and maybe GlowPlus.mdx)

Put the glow onto the Shadow Orb Ability and change everything else so it's only the Glow that shows at origin.

Then give the skill to the hero/model that needs the glow. This glow will adapt to whatever color owns the hero/model. It's only 4kb or so :)
11-12-2003, 11:49 AM#3
spin
I actually tried that method before, and didn't get it to work, hence I wrote this trigger ;)


(edit, I rememberred again, using the orb trick it somehow always turned out red for player 1, blue for player 2, etc, etc. But I wanted to keep the color pickings optional to the players themselves...)
11-12-2003, 02:37 PM#4
Zachary_Shadow
Very nice :) But it works, at least for me :)

Still, good job on making the trigger :)
11-13-2003, 09:24 PM#5
WCGAMER
Where is the glow pack at? If you can, link me please.
11-14-2003, 07:37 AM#6
spin
Just did a search for "glow pack", it was like the 5th hit ;)

http://www.wc3campaigns.com/forums/s...ight=Glow+Pack

(in case you're wondering, the search link is at the bottom of every single page, quite usefull in fact ;) )
11-16-2003, 05:09 PM#7
Panto
And the GUI triggers to make the glow.mdx file work properly for all colors is here, in the same forum as this thread.

Either method seems perfectly workable, although I personally prefer to add less files to the map on principle.
11-17-2003, 09:31 AM#8
PitzerMike
using the Add special effect to unit trigger will result in the hero glow surviving morph spells such as Chaos, Metamorphosis and such.

That's the only advantage of that method
11-17-2003, 12:21 PM#9
Vexorian
Quote:
Originally posted by PitzerMike
using the Add special effect to unit trigger will result in the hero glow surviving morph spells such as Chaos, Metamorphosis and such.

That's the only advantage of that method


Well in fact, my method can survive them too, Vexorian HA won't work well if it didn't, just give the morphed units the hero glow ability and use the silly triggers.

It also auto scales the glow to the unit size, and supports team color with just a single glow.mdx model.

I developped it mostly because some heroes already had hero glow and using those triggers to attach hero glow made them look really glowy, also making a big unit type condition to determine wich heroes need hero glow attached and wich heroes won't was really unworthy.
11-17-2003, 04:15 PM#10
megaerathia
this