MV Victory aftermath variables

Hopefully the title is explanatory enough to give a rough idea of what I'm looking for.

I have been using several Yanfly scripts to make my project work; two of which are the StatusCore extention Actor Variables and the popular Victory Aftermath. The Actor Variables plugin plays a huge role in alloting an extra set of stats for each character, which can be accumulated in battle. When an enemy is defeated, a limited random number is added into a series of variable pools, which are tallied up and distributed at the end of battle using SRD's Battle End Events. I have been successful with the mechanic itself so far-- but my co-writer and I would like to go further and have a screen that shows, similar to the Victory Aftermath screens, displaying those variables accrued before they are distributed. It would be a simple plugin, I imagine, but I'm just too dense to understand javascript and it is far beyond my capacity.

All I'm able to do right now is a message box that shows the accrued variables (in this screenshot's case the only one that had any variables added was the one named "Pyro". All others remain empty.)
Spoiler: Screenshot
5feec79bdc0e461016f38689fcb9dab9.png

What I would like to do is something to the effect of this:
Spoiler: Blueprint
cab8d0de1dd758d3f66da354a7004eaf.png

I know what I'm looking for is a bit drab and simplified-- maybe I ought to add something to fill up all that dead space, or size down the window containing the variables. But I'll worry about all that stuff later. There's a lot of dead space in the victory aftermath screens anyhow (with a party of only 3 actors, and me with my little thing against how empty the spoils screen looks), and I think that's a whole other issue I need to tackle maybe in a different thread or something, I don't know...

Anyway, that's my issue at the moment. I just need a victory window that spits out variables. If anyone is willing or able to help, I will be eternally grateful and put your name first in the credits of this thing I'm making, if it even successfully gets made.
I hope I'm allowed to bump this now. It's been over a week.

If there is anything wrong with my request, please feel free to let me know. I've added links to the plugins involved.
well it's been months. Bumping again, sorry

If it makes anything easier, I could trade off yanfly's Victory Aftermath with Moghunter's BattleResult. I really just need something that shows a window containing variables at the end of battle. That's literally all I need. I really hope someone can help.
Been quite a few months, still haven't been able to figure this out on my own.
Sorry for bumping again.
I don't understand what you're having trouble with. It looks like you already have a text window that shows variables. Do you just want to resize that text window or create a new one? Are you having trouble referencing variables in a text window?
I don't understand what you're having trouble with. It looks like you already have a text window that shows variables.
I think the point of the post is that the "blueprint" picture is nothing actually in the OP's game. They want to know how to create it and display it during the Aftermath.

I'm a little surprised that it's been almost a year and the OP hasn't just looked up a few YouTube tutorials on how to construct and draw things in a window in RPG Maker. Not at all to say there's anything wrong with the question, but...

Anyway, here's a basic template for you. Just copy one of the other sections of the Aftermath and put the stuff you want inside of it, right?

Code:
//=============================================================================
// Window_VictoryVars
//=============================================================================

function Window_VictoryVars() {
    this.initialize.apply(this, arguments);
}

Window_VictoryVars.prototype = Object.create(Window_ItemList.prototype);
Window_VictoryVars.prototype.constructor = Window_VictoryVars;

Window_VictoryVars.prototype.initialize = function(titleWindow) {
    var wy = titleWindow.height;
    var ww = Graphics.boxWidth;
    var wh = Graphics.boxHeight - wy;
    Window_ItemList.prototype.initialize.call(this, 0, wy, ww, wh);
    this.openness = 0;
    this.refresh();
};

Window_VictoryVars.prototype.makeItemList = function() {
    this._data=[];
// Putting the values of variables 1 through 8 in this per your blueprint
    for (let i=1; i<=8; i++)
        this._data.push($gameVariables.value(i));
};

Window_VictoryVars.prototype.drawItem = function(index) {
    var item = this._data[index];
    if (!item) return;  
    var rect = this.itemRect(index);
    rect.width -= this.textPadding();
    this.drawText("Variable "+index+" "+item, rect.x, rect.y, "left");
};

You would then need to insert the window into order in the plugin parameter and the code (since it doesn't look like that "custom" step functionality ever actually got added).

That gets added into updateVictorySteps(), needs a Scene_Battle.updateVictoryVars() method as well as Scene_Battle.createVictoryVars() and Scene_Battle.finishVictoryVars() - most of that is just copy and pasting, change the name appropriately.

So that's not a complete code solution for you, but I've never made a window before and I didn't want you to just keep floundering. Maybe someone else who's tinkered with this plugin before will come by and supply the rest (or point out anything I did wrong), and if not that should be enough for you to either copy-paste your way to success or to at least make progress and have specific errors you need help with.
Oh, trust me, I have looked up youtube videos on that very subject. I do know how to "just add a window" but that's about it. (There's not a single guide on how to close one. Still struggling that to this day.) The real issue is applying it to the battle scene end and keeping the battle scene from closing before said window is even so much as legible. I can't just plonk what I want into a script call because that would be a long script call and there is a character limit.

The template you provided seems to do the same thing as everything else-- it gets closed automatically before you can even so much as see it. But that's fine, because I found a workaround and will be going with that. Thank you for your time, and thank you very much for trying to help.
This thread is being closed due to being solved. If you would like it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/victory-aftermath-variables.150484/