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.
 
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.
 
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.
 
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?? :)
 
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).
 
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.
 
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
 
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.
 
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 :(
 
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.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top