Gameover Stats/score

I'm trying to figure out how to create a plug in that shows the Players Stats, Like Exp, at the game over screen, like a Score System.
Much like in the picture- shown as an example

I thought it would be something like
e68zsx.png


this.displayExp();

but that doesn't seem to work, I've never used JS, only c++.
does anyone know how this would be written out in JS?
Also, would there be any way to draw the "term" for Exp from the settings "term" tab?
So Score would be drawn up as what ever the term was under "EXP"?
Well, for reference this is the code that draws the title on Scene_Title:
Spoiler: Scene_Title excerpt (rpg_scenes.js)
Code:
Scene_Title.prototype.drawGameTitle = function() {
    var x = 20;
    var y = Graphics.height / 4;
    var maxWidth = Graphics.width - x * 2;
    var text = $dataSystem.gameTitle;
    this._gameTitleSprite.bitmap.outlineColor = 'black';
    this._gameTitleSprite.bitmap.outlineWidth = 8;
    this._gameTitleSprite.bitmap.fontSize = 72;
    this._gameTitleSprite.bitmap.drawText(text, x, y, maxWidth, 48, 'center');
};
So you can try something like this (save as a .js file & import as a plugin):
Spoiler: Example plugin
Code:
// cf Scene_Title (rpg_scenes.js)
Scene_Gameover.prototype.drawScore = function() {
  var x = 20;
  var y = Graphics.height * 0.6;
  var w = Graphics.width - x * 2;
  var txt = TextManager.exp + ': ' + $gameActors.actor(1).currentExp();
  var sp = this._scoreSprite = new Sprite(new Bitmap(Graphics.width, Graphics.height));
  sp.bitmap.outlineColor = 'white';
  sp.bitmap.outlineWidth = 1;
  sp.bitmap.fontSize = 48;
  sp.bitmap.drawText(txt, x, y, w, 48, 'center');
  this.addChild(sp);
};

// Add a "draw score" call after the default code
(function(alias) {
  Scene_Gameover.prototype.createBackground = function() {
    alias.call(this);
    this.drawScore();
  };
})(Scene_Gameover.prototype.createBackground);
Here I've used actor 1's current total experience as the score, feel free to change that and any other stuff as you like~ 🙏
the good stuff

Wow, Thank you so much! This is absolutely perfect! I figured it would have been something along those lines.
Again, thanks so much!
Sorry for being lazy I couldn't seem to find the source file my self, is it in one of the js files in plug ins? I searched through scenes and windows so far and havent been able to find it 🙁

But again thanks so much!
You're welcome! 😂
...I couldn't seem to find the source file my self, is it in one of the js files in plug ins? I searched through scenes and windows so far and havent been able to find it 🙁
The basic rpg_stuff.js code files can be found in your project's js folder (one level above plugins). Scene_Title starts at line 420 of rpg_scenes.js, at least in v1.5.2 (probably the same in the latest version). 🙂

Original thread: https://forums.rpgmakerweb.com/threads/gameover-stats-score.111202/