• 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.

[Trigger] Printing item icons in multiboard

Status
Not open for further replies.

sentrywiz

S

sentrywiz

Well the thread name says it all but i'll put it here for clarity sakes.

how would i print out item icons in a multiboard? like in dota at the end of match ? if you also know how, i would like the icons to be printed in a line instead of like 6 with inventory style.
 
First you need to create an array or hashtable that related each item to a corresponding art path string.

ItemItem[1] = Crown of Kings
ItemPath[1] = ReplaceableTextures\CommandButtons\BTNCrownOfKings.blp

Next, you loop through all of the hero's inventory slots, and within that loop you loop through all items in your list to find which one it is, and then you use that path for the multiboard icon.

To print them in a neat line, you simply need to play around with cell sizes.
 

sentrywiz

S

sentrywiz

Yes but do i make 6 columns, 1 for each item or do i make 1 column and try print all items there?

THe looping is just a check therefor it doesn't matter what method I use.
 
Status
Not open for further replies.
Top