• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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