I was trying to figure this out last night and couldn't get it to work. How do you change the color of a unit, it's actor, or it's model? When I go in the data editor to Type => Model, there is the 'color' property. I tried changing it but it doesn't seem to do anything to the unit it's tied to. The weird thing is that the color property (when displayed in list view, not tabbed view) shows 4 different color codes. Default it shows (255,255,255,255). When I change it to, say, blue - it shows (255,0,0,255). As you can see, that first 255 doesn't appear to be changing regardless of what color I choose. Is this the alpha of the unit itself, or is this number the 'intensity' of the color (IE, maybe 255 means the color itself is transparent, whereas a value of 100 means you're starting to shade the unit quite blue?). I can't find a way to make that number change though, and the gui that is brought up when you go to change the color doesn't have any options for alpha or anything.
Regardless, changing this color value did squat to the actual unit in the editor, or when doing test mode. Any idea how I can change the color of a unit? (Also, on a related note, is there a way to make a unit semi-transparent - and how did the creator of that cardcraft map make those units all "Glowy"?)
The effect of Cardcraft has been made with the lighting editor:
Press CRTL+Shift+F10.
The tune up the Specular Multiplier and the Emissive Multiplier and see how it affects the glowiness of your units.
To apply this effect in-game you have to add an action to one of your triggers:
About the 255:
I think it's the alpha channel. You can change it by pressing CRTL+D, which changes the editor into the "raw" mode. Then you can edit all 4 numbers, after that change the editor back by pressing CRTL+D again.
I don't know why the color this doesn't work. Maybe it's just team color? Or maybe you do have to play aroud with the first number, too. Not too sure..
Thanks for the response :) I'm at work right now but I'm sure this will be what I was looking for. Seems to satisfy everything I asked :D Maybe the actor in the data editor has fields for "Opacity" or "Tint", I don't remember. I'll see when I get home. If not...triggers it is! Maybe i'll play with that alpha channel too. Didn't know about ctrl+d, that's helpful - what menu was that located in? I couldn't find it when I was looking around.
CRTL+D is in "View" (called View Raw Data), it kind of disables parts of the editor UI. You see the unprocessed, raw data - not game strings or fancy menues.
I was trying to figure this out last night and couldn't get it to work. How do you change the color of a unit, it's actor, or it's model? When I go in the data editor to Type => Model, there is the 'color' property. I tried changing it but it doesn't seem to do anything to the unit it's tied to. The weird thing is that the color property (when displayed in list view, not tabbed view) shows 4 different color codes. Default it shows (255,255,255,255). When I change it to, say, blue - it shows (255,0,0,255). As you can see, that first 255 doesn't appear to be changing regardless of what color I choose. Is this the alpha of the unit itself, or is this number the 'intensity' of the color (IE, maybe 255 means the color itself is transparent, whereas a value of 100 means you're starting to shade the unit quite blue?). I can't find a way to make that number change though, and the gui that is brought up when you go to change the color doesn't have any options for alpha or anything.
Regardless, changing this color value did squat to the actual unit in the editor, or when doing test mode. Any idea how I can change the color of a unit? (Also, on a related note, is there a way to make a unit semi-transparent - and how did the creator of that cardcraft map make those units all "Glowy"?)
Thank you much :)
Making a unit semi-transparent works with triggers. I don't know if there's a way to use the Data Editor for it.
The trigger:
You can also use this trigger to change a unit's color:
The effect of Cardcraft has been made with the lighting editor:
Press CRTL+Shift+F10.
The tune up the Specular Multiplier and the Emissive Multiplier and see how it affects the glowiness of your units.
To apply this effect in-game you have to add an action to one of your triggers:
About the 255:
I think it's the alpha channel. You can change it by pressing CRTL+D, which changes the editor into the "raw" mode. Then you can edit all 4 numbers, after that change the editor back by pressing CRTL+D again.
I don't know why the color this doesn't work. Maybe it's just team color? Or maybe you do have to play aroud with the first number, too. Not too sure..
Hope that answers all your questions.
@s3rius: Go
Thanks for the response :) I'm at work right now but I'm sure this will be what I was looking for. Seems to satisfy everything I asked :D Maybe the actor in the data editor has fields for "Opacity" or "Tint", I don't remember. I'll see when I get home. If not...triggers it is! Maybe i'll play with that alpha channel too. Didn't know about ctrl+d, that's helpful - what menu was that located in? I couldn't find it when I was looking around.
Again, thanks a ton.
CRTL+D is in "View" (called View Raw Data), it kind of disables parts of the editor UI. You see the unprocessed, raw data - not game strings or fancy menues.
Add a new event for the unit's actor that changes its tint upon birth.
This is what im referring to: http://forums.sc2mapster.com/development/tutorials/2326-unit-change-units-color-making-dark-archon/