Hi
I was wondering, is there a script call that shows the picture of the icon associated with the weapon/armor/item if you passed it the weapon/armor/item ID in the database?
Thanks
There is no call to simply show icons outside of windows. Icons are drawn on windows, and unless the code is inside a window, it will not work.
Now, if the code is to draw it inside of a window, then you can call 'this.drawIcon(iconIndex, x, y)'
Remember that this only work Windows, not anywhere else.
Also to draw an item/weapon/armor icon, you won't be able to do this by simply providing the item ID. you need to retrieve the whole object. for example. to display an Weapon icon, you need to call 'this.drawIcon($dataWeapons[WeaponId].iconIndex, x, y)'
To draw an icon elsewhere (for example on a event or battle) you need a plugin to allow that.
Where do you want this picture drawn? If it's in a message box, \I[n] will display the icon with index n.
Hi Shaz,
I wanted it to appear above the players head (part of my item popup system) but not in a message box. I have figured out an alternative anyway but thanks 😀