MZ Print Stats in text box

Since i'm not seeing something like this for MZ i'm going to request it here. Essentially what I want is a plugin that allows you to print out the current actor parameters eg \mhp[x] and whatever actor id you place in the x will return there mhp stat like this but for MZ if anybody could help that would be awesome I would like it for my game i'm working on
Hi there!

You can do with my Eli Escape Codes plugin:

Need my core plugin on my signature.
EDIT: Sorry I gave you a method that wouldnt work well. now updated to be accurate

Using Visustella Message Core >
Plugin Manager > VisuMZ_1_MessageCore > Text Code Replacements >
Create a new entry(double-click blank area at bottom of list).
1667631799233.png

Change "Key" to whatever you want to name the escape code.
Example: Atk . That will be typed as \Atk[x].
Type: choose number
1667631924888.png

It will look like \[(\d+)\] DON'T WORRY, it's suppose to look that way.

STR: Text leave as Undefined

JS: Text, add this code:
Code:
const id = parseInt(arguments[1]);
return $gameActors.actor(id).atk;

1667633393122.png


change your Key and parameter for other stats.
hp
mhp
mp
mmp
atk
def
mat
mdf
agi
luk

Spoiler: Example in use
1667633500496.png

1667633444128.png

1667633478042.png
and alternatively you can do it without any plugin by using control variable to load the value you want into a variable (it's in the game data section of that command) and then display the variable value.

less convenient and needs multiple commands, but sometimes plugins cause compatibility issues.
Hi there!

You can do with my Eli Escape Codes plugin:

Need my core plugin on my signature.
Thanks @Eliaquim checking it out now
EDIT: Sorry I gave you a method that wouldnt work well. now updated to be accurate

Using Visustella Message Core >
Plugin Manager > VisuMZ_1_MessageCore > Text Code Replacements >
Create a new entry(double-click blank area at bottom of list).
View attachment 244433
Change "Key" to whatever you want to name the escape code.
Example: Atk . That will be typed as \Atk[x].
Type: choose number
View attachment 244434
It will look like \[(\d+)\] DON'T WORRY, it's suppose to look that way.

STR: Text leave as Undefined

JS: Text, add this code:
Code:
const id = parseInt(arguments[1]);
return $gameActors.actor(id).atk;

View attachment 244436

change your Key and parameter for other stats.
hp
mhp
mp
mmp
atk
def
mat
mdf
agi
luk

@NaosoX I didn't even know VisuStellaMZ Message core had that function thank you for pointing it out to me that'll be my Plan B since that plugin is already in my game.
and alternatively you can do it without any plugin by using control variable to load the value you want into a variable (it's in the game data section of that command) and then display the variable value.

less convenient and needs multiple commands, but sometimes plugins cause compatibility issues.
@Andar I considered that but I feel like that would cause far more problems trying to troubleshoot but thanks for the suggestion

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/print-stats-in-text-box.152473/