HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero 'glow', possible to add?

07-28-2003, 03:41 AM#1
Uratoh
Is it possible to add the glowing teamcolor aura to any unit? if so, how?
07-28-2003, 03:47 AM#2
ZealousDemon
I think there's some sort of third-party deal that allows you to, but not in the editor itself.

Anyone got a link?
07-28-2003, 03:56 AM#3
Allanon[Druid]
Use the search forum next time, but here is a link.

http://www.wc3campaigns.com/forums/s...threadid=7474&
07-28-2003, 03:56 AM#4
Pesmerga
You have to edit the model, dont you?
07-28-2003, 04:03 AM#5
Allanon[Druid]
Yes
07-28-2003, 04:21 AM#6
kharma
No you don't have to edit the model, you can also simply use the glow models as special effects and attach them to whatever unit you want via triggers. Both options are there, it's just a matter of choosing whcih method to use.

~kharma
07-28-2003, 06:26 PM#7
35263526
I used a mod of the blood-mage's sphere ability. Only prob is that wehn u cast spells the glow goes to the location for a second
07-28-2003, 06:46 PM#8
Panto
I have a trigger for detecting hero creation and adding it to them in a color-appropriate fashion.

Do you need it?
07-28-2003, 10:51 PM#9
Uratoh
yes, please and thank you in advance.
07-29-2003, 12:28 AM#10
Panto
Okay. Here it is.

I used one color variable, "colorColor", and one string variable, "stringColor".
I imported the files into the "SharedModels\" directory.
Quote:
Events:
Unit - A unit enters (Entire map)

Conditions:
((Triggering unit) is A Hero) Equal to True

Actions:
Set unitTrigger = (Triggering unit)
Set colorColor = (Color of (Owner of (Triggering unit)))
If (colorColor Equal to Red) then do (Set stringColor = Red) else do (Do nothing)
If (colorColor Equal to Blue) then do (Set stringColor = Blue) else do (Do nothing)
If (colorColor Equal to Teal) then do (Set stringColor = Teal) else do (Do nothing)
If (colorColor Equal to Purple) then do (Set stringColor = Purple) else do (Do nothing)
If (colorColor Equal to Yellow) then do (Set stringColor = Yellow) else do (Do nothing)
If (colorColor Equal to Orange) then do (Set stringColor = Orange) else do (Do nothing)
If (colorColor Equal to Green) then do (Set stringColor = Green) else do (Do nothing)
If (colorColor Equal to Pink) then do (Set stringColor = Pink) else do (Do nothing)
If (colorColor Equal to Gray) then do (Set stringColor = Gray) else do (Do nothing)
If (colorColor Equal to Light Blue) then do (Set stringColor = LightBlue) else do (Do nothing)
If (colorColor Equal to Dark Green) then do (Set stringColor = DarkGreen) else do (Do nothing)
If (colorColor Equal to Brown) then do (Set stringColor = Brown) else do (Do nothing)
Special Effect - Create a special effect attached to the origin of unitTrigger using ((SharedModels\Glow + stringColor) + .mdl)
Gosh, I love how much easier it is to discuss triggers with the Copy As Text command.

As a note, I wanted to do some sort of "Convert Player Color to String" for the concatenation at the end, but there was no such function. Would have been a derned shorter trigger if there was.
07-29-2003, 12:51 AM#11
Uratoh
Where can I get Colorcolor and Stringcolor from? i'm not familiar with importing that much.
07-29-2003, 01:34 AM#12
Panto
You've got Cookie's pack with the hero glow effect models, don't you? Just checking.

The "stringColor" and "colorColor" are my names for two variables. One is a String variable, and the other is a Color variable.

In the Trigger Editor, if you click on the X button on the top, it will bring up a small variable editor window. There you should make two variables. Make one a Color variable and one a String variable, like I used for the trigger.

Then, refer to your variables when you're writing the trigger.

A better link for Cookie's glowpack is here.
07-29-2003, 03:07 PM#13
Uratoh
I followed the link and got the cookie thing...but I can't figure out what to do with it from there...I hate to ask for hand-holding, but...
07-29-2003, 04:44 PM#14
Panto
Unzip Cookie's file and extract the files to your Warcraft III\SharedModels\ directory. You'll have to make a folder for it.

Then, go into your Import Editor in WE and import the files that you want (I didn't use half of them, because I only needed one size of glow). Change their paths to SharedModels\blahblah.mdx so that the editor is looking for them in the right place.

Then the trigger should point to them correctly.
07-29-2003, 06:28 PM#15
Uratoh
where can I get a good unzip program? I must have taken my stupid pills thismorning....