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!
Custom script: call UnitAddItemToSlotById( your unit , the item's ID , slot number )
The "your unit" value is the unit you want to add the item to.
In case your unit isn't in a variable, you can use any action that uses your unit, convert it into Custom Text, and you'll see the value in Jass (which is what you need).
The "item's ID" value is your item's Rawcode.
To see rawcodes in the object editor click Ctrl+D (and again to exit rawcode mode).
Rawcodes must be typed inside *dunno how they are called in english*, this guys: ' ' (NOT " "), so for example a rawcode of an item can look like this - 'I000'.
And finaly, the "slot number" value is the slot number...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.