- Joined
- Feb 8, 2013
- Messages
- 1,479
NEW COLORS FOR SELECTION CIRCLES AND ORDER CONFIRMATIONS
Have you ever wanted to have a different color for the selection circles? While many models exist to change the texture of selection circles, no tutorial or thread I could find gave a clear answer about how this could be done. Here is my formula for changing the in-game colors of selection circles and target confirmations. WHAT YOU WILL NEED: 1. First open notepad. 2. Then add the following text: [SelectionCircle]
// Defines different textures to be used based on selection circle size. // The Size## value defines the largest size which uses the given textures. // Note that the last size does not need a Size## value since anything bigger // than the next size down uses it. NumSizes=3 Size00=100 Texture00=ReplaceableTextures\Selection\SelectionCircleSmall TextureDotted00=ReplaceableTextures\Selection\SelectionCircleSmallDotted Size01=250 Texture01=war3mapImported\BlankIcon.blp TextureDotted01=war3mapImported\BlankIcon.blp Size01=400 Texture02=ReplaceableTextures\Selection\SelectionCircleLarge TextureDotted02=ReplaceableTextures\Selection\SelectionCircleLargeDotted // This value is multiplied by the SLK scale field to get the circle size ScaleFactor=72 // This value is added to the selection circle height // when on walkable doodads. // Note: this is also applied to shadow images ImageWalkableZOffset=15 // Colors ColorFriend=255,75,150,200 ColorNeutral=255,255,255,200 ColorEnemy=255,0,0,200 AllyOffset=0.2 [TargetingColors] TargetLightColor=255,75,150,200 SelTargetColor=255,255,150,0 NOTE: This creates a light blue color, but feel free to adjust the (rgb) values at =x,x,x,x. Note: alpha, red, green, blue 3. The save as war3mapMisc.txt and import into your map and delete the war3imported/ prefix on the pathname. TA-DA! Now you have a custom color for your target confirmation indicator. Now for that pesky green selection circle. This will not be as easy. Some people might use a trigger to:
4. Now you need to make (or download) your new colored selection circle and import it and overwrite the pathname: Abilities\Spells\Undead\VampiricAura\AuraRune6.blp 5. Now create a dummy spell with no icon. I like to use Item Armor Bonus (+1) and give the the ability the target attachment vampiric aura. 6. Then trigger the selection circle to appear when a unit is selected. Here is a simplified example. You should create conditions for neutral and enemy units.
And there you have it. Now I realize there are much cleaner and probably better ways to do this. I was just shocked that there was almost nothing on this topic so I wanted to share what I learned. Also, the GUI above isn't quite right, I am not trying to give a complete GUI explanation. If you can code, then you can do it better than me. Also, if you know how to model, then you could make a better model. I am using vampiric aura, but certainly a better model would help. If someone wants to be kind enough to edit the selectioncircle.mdl and post it here with a new path for custom skins, well that would be fantastic. However, I tried and failed to create my own so this is what I have for now. Hope you all like it! |
Last edited: