Basically, I have a common event set to all of the items which plays a little animation and then proceeds to heal you. The item stat menu doesn't show that it recovers 'x hp' because it plays a common event, is there a way for me to type how much it recovers in the stat window, without creating a heal parameter. (I don't want a heal parameter since it would recover the hp instantly and i want it to be recovered at the end of the common event animation, the game has a visible hud and it looks awkward getting healed before the animation is over.)
How to display different stats in an item's stat window
RPG Maker MV SupportThe RPG Maker engine per default does not even have an item stat window. So it would be really helpful if you could specify which plugin (preferably with a link) you are using to have that stat window.
That said, is there any reason why you need to display the animation through a common event? Can't you just set the item's animation to the desired one and use the item's traits to increase the HP?
That said, is there any reason why you need to display the animation through a common event? Can't you just set the item's animation to the desired one and use the item's traits to increase the HP?
OH my bad, the plugin I am using is Yanfly's Item Core. It has to be a common event since i am developing an abs styled game and there are many checks and commands in case another animation should have priority, the actor's image also changes during the animation, which requires a common event.
Open Yanfly's plugin with a text editor and find the function called
1. after the line where it says
2. after the line where it says
Save the plugin (and best document your changes somewhere). You can now use the following notetags to display values in the item stat window without needing to actually add the effects:
Window_ItemStatus.prototype.drawItemData. Modify this function as follows:1. after the line where it says
if (i === 0) {, insert the following:
JavaScript:
if(this._item.meta.HPpercent)
value = this._item.meta.HPpercent;
else {
//place the code that was originally there inside these brackets
//...
}
if (i === 1) {, insert the following:
JavaScript:
if(this._item.meta.HPplus)
value = this._item.meta.HPplus;
else {
//place the code that was originally there inside these brackets
//...
}
Save the plugin (and best document your changes somewhere). You can now use the following notetags to display values in the item stat window without needing to actually add the effects:
Code:
<HPpercent:x>
<HPplus:y>
Use either the <Info Text Top> or <Info Text Bottom> notetags to display info in the item's info window. Ex:
<Info Text Top>
Your info here
</Info Text Top>
<Info Text Top>
Your info here
</Info Text Top>
Thank you sm! It works perfectly, really appreciate it.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-display-different-stats-in-an-items-stat-window.150852/