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 Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,015
Members
137,563
Latest member
MinyakaAeon
Top