• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[ask] Creating Multiboard with hero Icon

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
¿? You just need to create the multiboard, then make the rows and columns, and work from there on. You can change the text, color, icon/noicon or whatever you want just by knowing the column and row you want to modify

JASS:
          Column 
Row   1     2    3      4     5     6
1    Icon Name Kills Deaths Level  Gold
2...

Kills; Deaths, Level and Gold are integers. Just use "Conversion - Integer to String" to display those values. YOu'll probably need an array for each one of those, so you can keep track of each one of them, and use an update trigger everytime one of those values is modified.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
  • Untitled Trigger 001
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 1 columns and 1 rows, titled Hero Icon
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Hide text and Show icons
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNHeroPaladin.blp
This shows the icon of paladin, its small(you can get it bigger i believe) but it works.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
The Icon is a string. I guess the icon path could be saved manually within each unit-type ID and shown when it's picked...
 
Status
Not open for further replies.
Top