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?
 

Latest Threads

Latest Posts

Latest Profile Posts

finally got footage of my main character running around his corrupted street...
I finally got the ships and water to flow like I wanted to~ the canals are a success. Now to loop the animation for the kites. So many kites.
Bendyizzt wrote on staggqueen's profile.
Hello Newcomer...
I haven't make anything new yet, but I'm back addicted to writing some MZ plugins. Man, I wish I have more free time like I did 5 years ago.

Forum statistics

Threads
107,693
Messages
1,031,486
Members
139,818
Latest member
mindofjsp
Top