RMMV Exclude Message Window from Yanfly's 'Hide Battle Hud'

coucassi

Veteran
Veteran
Joined
Sep 23, 2019
Messages
131
Reaction score
196
First Language
German
Primarily Uses
RMMV
Heyho again!

I am using Yanfly's Action Sequence Packs to create In-Battle-Cut-Scenes and would like to include Dialogue in those Scenes. The command to hide the battle hud however also hides the message window.
An obvious solution would be to show the battle hud, when the message plays and hide it again afterward, but in this case for a tiny moment the full hud becomes visible, before it is hidden again by the message window.
If I have more than one message of dialogue now, the rest of the hud keeps turning on and off, which looks really awkward.

Can I somehow edit the script to manipulate the hide hud command, so that the message window is not affected?

Another way to make it look less unintentional would be to make the rest of the hud stay, when the message window pops out. This way it would at least not turn on and off al the time.

Thanks for any thoughts.
 

Zero_G

Veteran
Veteran
Joined
Mar 28, 2020
Messages
96
Reaction score
60
First Language
English
Primarily Uses
RMVXA
I can look into it, can you tell me which plugin is the the command you are using? And paste here the exact command you are using to hide the battle hud.
 

coucassi

Veteran
Veteran
Joined
Sep 23, 2019
Messages
131
Reaction score
196
First Language
German
Primarily Uses
RMMV
Thank you!

I am using Yanfly's Action Sequence Packs. The Pack that introduces the option to hide the battle hud is YEP_X_ActSeqPack_2. The mother PlugIn is YEP_BattleEngineCore, just in case.

The Sequence Packs allow to create unique Skills via Skill Note Tag. What I have to type in to make the Battle Hud disappear is this:

<target action> HIDE BATTLE HUD </target action>

This way a skill is created that, when it is used hides the battle hud. It stays hidden even after the skill is executed until another skill comes into action whos notetag contains the following:

<target action> SHOW BATTLE HUD </target action>

Please tell me if you need anything else, I'll try to make things as clear as possible.
 

Zero_G

Veteran
Veteran
Joined
Mar 28, 2020
Messages
96
Reaction score
60
First Language
English
Primarily Uses
RMVXA
Ok, I was checking on it, the function that hides or shows the HUD is this:
JavaScript:
BattleManager.actionBattleHud = function(actionName) {
  if (actionName === 'HIDE BATTLE HUD') {
    this._windowLayer.x = Graphics.boxWidth * 495;
  } else if (actionName === 'SHOW BATTLE HUD') {
    this._windowLayer.x = 0;
  }
  return false;
}

Problem with this, is that is this is hiding the whole layer, not each window individually. So the function has to be rewritten to do that, and exclude the message window.
Sadly I don't have the time to do that, so I recommend that you make a thread in "Plugin Requests" about this (Or ask a mod to move this one).

Alternately you can manualy use these script calls instead of the yanfly's hide/show, to fix that "hud keeps turning on and off" problem:
JavaScript:
SceneManager._scene._windowLayer.visible = false // hide it
SceneManager._scene._windowLayer.visible = true // show it
 
Last edited:

coucassi

Veteran
Veteran
Joined
Sep 23, 2019
Messages
131
Reaction score
196
First Language
German
Primarily Uses
RMMV
Thanks for your effort! I will try a few things with your script calls and do as your suggested if it doesn't help.
 

Latest Threads

Latest Posts

Latest Profile Posts

My Overworld might be a mix of inspiration from 2D Final Fantasy games, Breath of Fire, Battlechasers: Nightwar, Super Mario World, and Pillars of Eternity. If I can make it more in-depth than just walking from point A to point B, that might do a lot for the gameplay experience. Hmm...
Terribly depressed. Worst birthday I've had in years, no motivation to work on anything. Still no income. At least I've got my computer running again.
Doing RPG Maker News for 19th September 2021

Stream will be live with some Dark Souls 3, followed by a session of the Interactive Text Adventure! Feel free to drop by!

Forum statistics

Threads
115,197
Messages
1,088,017
Members
149,778
Latest member
kamikun95
Top