- Joined
- May 20, 2009
- Messages
- 822
So, there is the minimap icon function. It however only supports one custom icon, and that's it. It should be possible to make a system that loops through tons of icons though right? Has anyone done this?
it's a single pointer to the path, which is applied to every AltIcon'ed unit. you can't create different icons for different units
We have SetAltMinimapIcon to set one alternative icon at a time and UnitSetUsesAltIcon to make units use the alternative icon or not.
Then we have about 5 more rarely used minimap icons you can use for you own purposes if you want, e.g. the goldmine ones, and that's it.
To my knowledge nobody has made a system out of it and I don't see the point making one.
But you might want to clarify your question as I do not understand what you mean by "make a system that loops through tons of icons".
It's impossible because when you change the alternate icon
path, all other units using alt icon will change.
Example unit1 is set to use icon1. Then you set unit2 to use icon2, which will also cause unit1 to change to icon2.
answer is "nohow"
I have a map right now I am working on where I use at least 5 different minimap icons. The way I do it is to replace the standard ones with my custom ones. For example, entangled goldmine has now become a cave entrance. I also use the chest icon for the chests. These can be moved around if you want too. The neutral building trigger is useless.
Also this won't work if you want to keep all the original icons as well. I don't want to replace anything, I want to expand.
Ah, I see. I don't say this much but I think it is impossible. You can have 1 as you noted but that's all.
You might try checking on the campaigns and see how they use the cave entrance icon. It might be the same way, but I know there are several "extra" minimap icons. Maybe there is some way to access them.