How show HP/HPmax MP/MPmax text box (actorData.hp)?

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,437
First Language
French
Primarily Uses
RMMV
Hellos friends.
after much research, I have found nothing in rpgmaker to display natively basic states in a message.
An expert -it could help me find a script that will display statistics.
Or maybe an expert who could use these call script.
I have found nothing that allows this kind of action.
Thanks for your help
I wish I could just write example
\ <Hp>   \ <Mhp> to display the max HP and HPMAXIMUM in a message.

Code:
     \<hp\>, actorData.hp);
     \<mp\>, actorData.mp);
     \<tp\>, actorData.tp);
     \<mhp\>, actorData.mhp);
     \<mmp\>, actorData.mmp);
     \<atk\>, actorData.atk);
     \<def\>, actorData.def);
     \<mat\>, actorData.mat);
     \<mdf\>, actorData.mdf);
     \<agi\>, actorData.agi);
     \<luk\>, actorData.luk);
     \<hit\>, actorData.hit);
     \<eva\>, actorData.eva);
     \<cri\>, actorData.cri);
     \<cev\>, actorData.cev);
     \<mev\>, actorData.mev);
     \<mrf\>, actorData.mrf);
     \<cnt\>, actorData.cnt);
     \<hrg\>, actorData.hrg);
     \<mrg\>, actorData.mrg);
     \<trg\>, actorData.trg);
     \<tgr\>, actorData.tgr);
     \<grd\>, actorData.grd);
     \<rec\>, actorData.rec);
     \<pha\>, actorData.pha);
     \<mcr\>, actorData.mcr);
     \<tcr\>, actorData.tcr);
     \<pdr\>, actorData.pdr);
     \<mdr\>, actorData.mdr);
     \<fdr\>, actorData.fdr);
     \<exr\>, actorData.exr);
     \<level\>, actorData.level);
     \<maxlevel\>, actorData.maxLevel());
     \<exp\>, actorData.currentExp());
Code:
Window_Message.prototype.convertNameBox = function(text) {
		text = text.replace
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,288
Reaction score
7,636
First Language
German
Primarily Uses
RMMV
you're going at it from the wrong direction.


use a control variable command to load the game data you want into the variable before the show text (all your values are available as game data by default, no need for any script) and then display the variable value with the default text codes in the show text
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Ami
What do you think about the Wood Bridge inside of Volcano?
Yet another gaming question, i'm currently playing Last of Us 2 and want to get another game to play next but can't decide between Ghost of Tsushima, Miles Morales & Jedi Fallen Order. After the latest mandalorian i AM on a star wars kick, but i also LOVED the last spiderman game that prequels Miles Morales. Ghost of Tsushima is the bottom of my list but i heard it was AWESOME. Just want a good story & fun gameplay.
I checked out Genshin Impact gameplay out of curiosity. I can't believe it's available as a mobile game too. Smooth animation, great music, and stellar sound effects (the ambient sounds are pretty detailed).

I'm flabbergasted to see games have becoming more and more advanced. Maybe also because I'm oblivious to current trend for a long time, it almost feel like I'm being sent into distant future. xD
xDRAGOONx wrote on WaywardMartian's profile.
Your artwork is amazing!!!
:ewat:
Stream will be live shortly with a session of the Interactive Text Adventure! Feel free to drop by!

Forum statistics

Threads
105,667
Messages
1,015,406
Members
137,343
Latest member
Sethos
Top