Showing MP for only some Actors

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,634
Reaction score
5,114
First Language
English
Primarily Uses
RMVXA
I apologize in advance if this has already been answered (I searched through the existing topics and couldn't find anything on the matter), since I imagine someone has probably asked it by now.

I am using MP Bars, Numbers, and (separately) Max Numbers in my custom battle HUD, which are working well.  But only some of my actors actually use MP.  For the bars this is not a problem since the MP Bar appears completely blank when the actor has 0/0 MP, but the MP and Max MP numbers still show up, and I think it will be confusing to the player (who might assume there's a way to build MP on the character), in addition to looking awkward in my particular setup.

How can I disable the display of these numbers for characters with 0 Max MP (or for a predefined set of actors)?  If it's not possible with any standard config, then would I be able to do it by modifying the refresh or refresh_type0 methods in class SpriteHUD_Numbers?
 
Last edited by a moderator:

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,634
Reaction score
5,114
First Language
English
Primarily Uses
RMVXA
Alright, so with some looking around through the Add-Ons, it looks like this is supported by the Specific Actor Config script.  Excellent!  I added the following before the end of the "SPECIFIC" hash but after the entire "ACTOR1" hash:

      "MY_NAME" => {              :mp_num =>  {          :enable   =>  false,        },            :mp_max_num =>  {          :enable   =>  false,        },              },and added the following tag to the actor I wanted to apply it to: <override battle luna: MY_NAME>

Note that it must be all caps (MY_NAME not My_Name) due to what I believe is a bug.  Also note that a comma has to be added after the ACTOR1 hash since they are two separate hashes.

Please forgive the double post; I feel it makes the topic much more readable as the question in one post and the answer in the other.
 

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

Latest Threads

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,191
Members
137,772
Latest member
Kirakirna
Top