RPG Maker Forums

Hello, I'm having a problem with getting an item's icon.

Let me explain a couple of things:

Plugin Involved:
- Yanfly's Self Switch and Variables
- Yanfly's Icon on Event




1. Shows a text.
2. Ask the player to pick an item and store it in a self variable called 'sellingItem'.



This second image shows where I'm having a problem, I can't seem to find the proper way of displaying the item's assigned icon on the event. Thus, as you can see, I have to rely on event pages just to tell the game what icons to display on the event based on the selected item of the player. What I'm doing is 1 item and 1 icon per page and this is so inefficient in doing it plus MV only has a maximum event page of 20 considering the fact that I have hundreds of items to select to.

Please don't give me a plugin to increase the max number of event pages as I mentioned that I find that method too clunky. What I'm looking for is an efficient way of doing this like:

- Fetch the item
- Get the item's icon index and store it somewhere.
- Tell the game to display THAT stored icon on the event using Yanfly's Icon on Event plugin. Another method should suffice if yanfly's plugin can't do it.

In other words, the first line in the second image needs to be flexible instead of being <Icon on Event: 372> (aka manually setting the icon) but rather having it fetches the selected item, get its icon, store it and then output the icon regardless of the selected item I want it to always output the assigned icon of the item.

In even more simpler words, I want to display a selected item's icon on an event.


I'm sorry if I explained badly. Anybody can help me out?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top