Item Slot Questions...

Deep thought

New Member
Reaction score
1
1. Is it possible to give a hero an item in a specific slot? Like, if I want to give Arthas a gem of true seeing in slot 2 of his inventory, how would I do this?

2. Is it possible to detect when a player moves an item around in a hero's inventory? Like, if Arthas moves gem of true seeing around in his inventory then display the text "why did you do that?"


Thanks
 

Nexor

...
Reaction score
74
2. There is an event, and is the unit order, search for it in the forums, the item-move-in-inventory orders have order ids too :)
 

Deep thought

New Member
Reaction score
1
Thanks, all this works very well.

Another question, though. I want a multiboard that displays the icon of an item in it. Is it possible to get the path of an item's icon? If not, what other ways would you suggest going about this?

In case this question isn't clear enough, I want something like this:

Red skips a cinematic:
change the icon in row 1 column 1 to (icon path of last created item)
 

tooltiperror

Super Moderator
Reaction score
231
There is a way, using strings, I forget what it is, sorry.
 

cleeezzz

The Undead Ranger.
Reaction score
268
>THEN move the item by slots
i couldn't even find that o_O

as for the orderids, i never noticed

JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    local integer order = GetIssuedOrderId()
    call BJDebugMsg( I2S(order) )
    if order == 852002 then
        call BJDebugMsg("ITEM MOVED TO SLOT 1")
    elseif order == 852003 then
        call BJDebugMsg("ITEM MOVED TO SLOT 2")
    elseif order == 852004 then
        call BJDebugMsg("ITEM MOVED TO SLOT 3")
    elseif order == 852005 then
        call BJDebugMsg("ITEM MOVED TO SLOT 4")
    elseif order == 852006 then
        call BJDebugMsg("ITEM MOVED TO SLOT 5")
    elseif order == 852007 then
        call BJDebugMsg("ITEM MOVED TO SLOT 6")
    endif
endfunction

you will have to do it in jass though, conditions being if orderid equals to 852002-852007 then check inventory (because it doesn't tell you which item slot switched with which.)
 

Laiev

Hey Listen!!
Reaction score
188
wootaaaa

look what i find :D

Trigger:
  • Hero - Give (Triggering unit) a Tome of Experience in slot 1


is that function what you say in gui! :D SWEEEEEEEEEEEEET

EDIT: JNGP <3
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top