Making an item's icon appear in a helpwindow

Fugama

Means well, but messes up sometimes.
Veteran
Joined
Jun 7, 2014
Messages
158
Reaction score
90
First Language
Fake English
Primarily Uses
RMMV
I'm making a battle system for my friend that involves mixing items to create skills. In the menu there's an option that lets players experiment with mixing things and a help window at the bottom displays the description of the resulting skill. NOW I'd like it to display the skill's icon as well but when I make the set text like this


Code:
Window_SpliceResult.prototype.setItem = function(item) {
    this.setText(item ? this.drawIcon(item.iconIndex, 0, 0) + " " +  item.description : '');
};
The icon will come up as "undefined" instead. if the same input is repeated it will display the icon on top of the "undefined" text, how do I go about making this help window show an Icon and then the text?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I think I've created a monster.
...and I love it. <3
Today represents my one year anniversary of throwing out the tile map. :LZSexcite: One year ago my game looked like...


And now for those that don't know, it looks like..


What a year, what a year indeed. RIP Tile Map, nobody misses you. :LZSwink:
There is now a demo released for [Beyond the Mirror]! Check the team recruitment thread to learn more!
'Tis the season to see shipping prices and go 'Yikes'.

Forum statistics

Threads
105,696
Messages
1,015,678
Members
137,379
Latest member
ytviews123
Top