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?