I'm looking for a way to display a Variable [I'll use it for the Party's Gold amount, but Variables are more versatile] during Battle. Something like a window in the upper right corner would be awesome. Maybe making the position easy to customize would a good addition as well, though it's not super important that happens or anything.
MV Gold Display during Battle, or a displaying a Variable during Battle
JS Plugin Requests[MV & MZ] Custom Main Menu UI using WYSIWYG Editor
What is this Plugin? This plugin comes packed with a UI tool that lets you customize your game's main menu! Features More than 6 premade layout configurations ...or arrange all windows as you wish Choose how your Actors should be rendered: Face, SV Battler, Map Sprite, custom Portrait...
forums.rpgmakerweb.com
I'm sorry, please disregard that. I tested it and found that it's only stable for the MZ version.
I think you can just imitate the base code to add a gold window in the battle scene (I assume it properly gets rid of it if it's attached the same way as the other windows). Then just make it refresh the gold window in the update. If you want you can add logic to not refresh every frame, but add a check if the amount of gold has changed.
const _myEdit1_Scene_Battle_createAllWindows = Scene_Battle.prototype.createAllWindows;Scene_Battle.prototype.createAllWindows = function() { _myEdit1_Scene_Battle_createAllWindows.call(this); this.createGoldWindow();};Scene_Battle.prototype.createGoldWindow = function() { this._goldWindow = new Window_Gold(0, 0); this._goldWindow.x = Graphics.boxWidth - this._goldWindow.width; this._goldWindow.y = 0; this.addWindow(this._goldWindow);};const _myEdit1_Scene_Battle_update = Scene_Battle.prototype.update;Scene_Battle.prototype.update = function() { _myEdit1_Scene_Battle_update.call(this); this._goldWindow.refresh();};Original thread: https://forums.rpgmakerweb.com/threads/gold-display-during-battle-or-a-displaying-a-variable-during-battle.180890/