Minimap Icon Trigger

DonMushroom

Member
Reaction score
4
Is there a way to change the mini map icon for a unit through triggers.

EG.
On the great train robbery mission there is the dominion kill team that have a mini map icon to show you where they are. Is there a way i could change i icon like this through triggers.

So the circle skull icon would change to a icon of my choosing when (x) Happens.
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
Upgrades should work if you don't have more than one unit for each player.

Create a new upgrade. Go to the Upgrade: Effects + field and add a new effect. Set the type to Actor and the object to the main unit actor of your unit(For example: If your unit is the marauder, set it to the Marauder actor). Pick the Minimap Icon field and set the value to your icon.

You can now use the "Set Upgrade Level For Player" action to give the upgrade you made to a player. When you give it to a player the unit you specified in the effects should have the icon changed. If you set the upgrade level to 0, it should change back to normal.

There might be a way to do this with actor events. That would be preferable since it would be easier to apply to different unit-types and it would work for several units owned by the same player. However, I don't know the proper action to do that.
 

Dave312

Censored for your safe viewing
Reaction score
269
While Siretu's method will work, the Great Train Robbery mission actually uses Pings to create the minimap icon. You can create a Ping with the Create Ping Facing Angle or Create Ping With Point Facing actions. The Model property can be used to determine which icon is displayed (The Dominion Kill Teams use the Ping Boss model). You can also make a ping last forever by setting its duration to 0.
 

DonMushroom

Member
Reaction score
4
Thanks :) They both work great.

The one problem i am having though is setting the upgrade level back to 0 does not get rid of the icon :(

How do you make your own ping and import it?? :)
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
Ah, I was afraid that would happen. You could make another upgrade that sets it to nothing and give it that instead, but that's an ugly solution. Go with Dave's solution instead.

I think there is a ping object tab in the data editor. Open it and create a new ping (in the same you'd create a new button or something).

If you want to use a custom model for the ping, import it first in the import editor(f9).
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
Turns out they don't have their own object type in the data editor. They're just models. You can search in the models tab for "Ping". There's 18 ping models that you can use if you don't want to import your own. They use the .m3 format.

You can create one with the "Create Ping Facing Angle" action.
 

DonMushroom

Member
Reaction score
4
I have a unit with a map icon set in its actor.

I want it to

1, A trigger that changes its icon from the original to a different icon (custom icon 1)
2, A trigger that changes its icon from the original to a different icon (custom icon 2)
3. A trigger that changed it back to the original icon.

Custom icon 1 and custom icon 2 are both DDS files
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
In that case, I think pings are the wrong approach, if you don't know a good way to import the dds into 3ds max and convert it to a .m3 file.

Make three upgrades as I showed you in an earlier post. One that sets it to custom icon 1, one that sets it to icon 2 and one that sets it to nothing.

In trigger 1, set the upgrade level of upgrade 1 to 1 and the level of the other two to 0. Do the same thing for the other two but change which upgrade you set to 1.
 

DonMushroom

Member
Reaction score
4
How do i get it to choose witch of the upgrades to use at the time they are needed? :)

At the moment the icons are going from the default icon to custom icon 1 and i am unable to get it back to the original or to custom icon 3 :(
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
I'm assuming you want to change the minimap icons for everyone in the game at the same time. If not, just put the "Set Upgrade Level For Player" outside the "Pick Every Player in Player Group" and set the player to the player you want to change it for.

Anyway, here are the triggers. You can add an event to get them to run or you can copy them into an existing trigger if that's what you want.

Trigger:
  • Minimap Icon 1
    • Events
    • Local Variables
    • Conditions
    • Actions
      • Player Group - Pick each player in (All players) and do (Actions)
        • Actions
          • Tech Tree - Set Minimap Icon 1 upgrade level to 1 for player (Picked player)
          • Tech Tree - Set Minimap Icon 2 upgrade level to 0 for player (Picked player)
          • Tech Tree - Set Minimap Icon Original upgrade level to 0 for player (Picked player)

Trigger:
  • Minimap Icon 2
    • Events
    • Local Variables
    • Conditions
    • Actions
      • Player Group - Pick each player in (All players) and do (Actions)
        • Actions
          • Tech Tree - Set Minimap Icon 1 upgrade level to 0 for player (Picked player)
          • Tech Tree - Set Minimap Icon 2 upgrade level to 1 for player (Picked player)
          • Tech Tree - Set Minimap Icon Original upgrade level to 0 for player (Picked player)

Trigger:
  • Minimap Icon Original
    • Events
    • Local Variables
    • Conditions
    • Actions
      • Player Group - Pick each player in (All players) and do (Actions)
        • Actions
          • Tech Tree - Set Minimap Icon 1 upgrade level to 0 for player (Picked player)
          • Tech Tree - Set Minimap Icon 2 upgrade level to 0 for player (Picked player)
          • Tech Tree - Set Minimap Icon Original upgrade level to 1 for player (Picked player)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top