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
MZ Print Stats in text box
JS Plugin RequestsHi there!
You can do with my Eli Escape Codes plugin:
hakuenstudio.itch.io
Need my core plugin on my signature.
You can do with my Eli Escape Codes plugin:
Hakuen Studio Escape Codes for RPG Maker MZ by Hakuen Studio
Show almost everything from database using escape codes!
hakuenstudio.itch.io
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).
Change "Key" to whatever you want to name the escape code.
Example: Atk . That will be typed as \Atk[x].
Type: choose number
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:
change your Key and parameter for other stats.
hp
mhp
mp
mmp
atk
def
mat
mdf
agi
luk
Using Visustella Message Core >
Plugin Manager > VisuMZ_1_MessageCore > Text Code Replacements >
Create a new entry(double-click blank area at bottom of list).
Change "Key" to whatever you want to name the escape code.
Example: Atk . That will be typed as \Atk[x].
Type: choose number
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;
change your Key and parameter for other stats.
hp
mhp
mp
mmp
atk
def
mat
mdf
agi
luk
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.
less convenient and needs multiple commands, but sometimes plugins cause compatibility issues.
Thanks @Eliaquim checking it out now
@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.
@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/