Unit Image

BSJikan

New Member
Reaction score
5
I'm trying to set it up to change the picture in a multiboard to the unit someone chooses as their hero. Now, I figure I'd have to set it to a variable, since the Multiboards read strings, so do I need to set it up to something like
Code:
If
Unit-Type Equal to Footman
Owner of Unit Equal To Player 1
Then
Set Hero1Image = blah/blah/blah/ImageofFootman.blp
Else
Or is there an easier way to do this?

Oh an I'm doing them all at the same time, the image setting, so I don't have a million triggers checking something when a unit is spawned, and at the end of this trigger is when I set the variable for the picture.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> do I need to set it up to something like

Yep.
No, unfortunately, there is no miracle way to just ask the unit what path its icon uses...

But, you could put all strings in an array, and use the unit's "point value" for example to get the index.
(Assuming you do not need it for something more important)
 

BSJikan

New Member
Reaction score
5
All I'm doing is setting up the image for the multiboard, just a little bit of making it look pretty. So, what I devised is what I have to do then? Alright. It's a little bit of work, but it's worth it to me :D.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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