Warcraft III resources & community, 2003–2006 · archived

GetItemIcon(GetManipulatedItem())

9 posts
#1

GetItemIcon(GetManipulatedItem())

is anything like that possible?? can you get the string from the item's icon with jass???
#2
i dont think so... why do you ask?
#3
I want to make a backpack system based on a multiboard. Everything works by now; as u enter an item it goes to the first availabl slot in the back pack, wichnregisters its type and displays its name. I just thought it would have been super cool if it also displayed its icon.

By the way... is there a way to make personal multiboads?? GUI lets you create a shared multiboard and i begun JASSing two days ago... so, if you could help me with the code I would be thankful
#4
Im pretty sure you can display a multiboard to a player? or is that just leaderboards? i dunno much about multiboards

oh, and, now that you mention it, there is some way to get their icon, ask Blade.dk.
#5
as long as there is no "If (Item-type comparisson)" i'll take anything. Thnx
#6
maybe this function can help you,but you should know
to use it
here is it:
native GetAbilityEffectById takes integer abilityId, effecttype t, integer index returns string

the ability could be the itemId,very useful function
#7
are you sure it works???

uhmmm... so i just do something like this?

call GetAbilityEffectById('xxxx',null,null)


I don't get it; how come an item has effecttype or index... that shoud work only for abilities, as far as I can tell... but i'll try anything, it would be pretty cool to achieve it
#8
You can not directly get the icon of an item I believe, but you can get the item type integer.

You simply have to make a system of retrieveing an icon for an item type.
Easiest is if you store the icons path in a game chache under the item type value.

About "private" multiboards.
IT IS VERY EASY TO MAKE THEM PRIVATE!

if GetLocalPlayer() == Player(integer) then
call MultiboardDisplay(multiboard, true)
endif

integer = player number integer (player slot - 1)
multiboard = multiboard you want only the integer player to see.


Before you ask "WTF has the IF - THEN actions got to do with displaying a multiboard to a single player?" read this.

GetLocalPlayer is a very usefull but dangerous command.
It seems to run some hidden function when read by WC3 that sets a certain function to happen to a spacific player.
If you set the function to something more phyical it will cause a multiplayer desync or worse a crash.
It also works with player groups.
A few standard functions use this.

In that example it would only make the multiboard visable for the player integer by unhiding it for that player.
Note that the multiboard has to be hidden in the first place or it will do nothing.
#9
I love you Dr. Super Good