• 🏆 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!

[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.
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
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