MZ Changing info on Actor Status Window

Hi all,

I've been learning javascript for a while now and so far i've made some progress in terms of syntax, logic, conditional branches, objects and some other stuff.

I managed to create some mechanics in my game through script calls on events, but now I want to make something more advanced.

Basically, I would like to add more actor parameters (like cri, hit) to be shown on the status window, but I don't really know where to start. I spent some time reading the js files, but I couldn't find the function that writes the parameters, so that I could start changing it, and now I feel like I'm stuck.

1635883493060.png
Basically, I would like to add more actor parameters (like cri, hit) to be shown on the status window
You can get the actor's extra/special parameter by typing this
Code:
$gameActors.actor(1).cri
$gameActors.actor(1).hit
$gameActors.actor(1).mdf
// etc

but I couldn't find the function that writes the parameters
AFAIK, there is no function to write xparam and sparam by default. You have to combine draw text, get the param number, change the font color, etc ...

Original thread: https://forums.rpgmakerweb.com/threads/changing-info-on-actor-status-window.141784/