MZ SRD Hud Maker Ultra turn off Hud after battle

I was wondering if there was any way to turn off battle Hud after battle has concluded or you escape from battle. Currently, when I do those things the Hud remains on despite defeating all enemies or running from battle.

My Hud elements are turned on initially when battle starts with a switch.
Does the HUD not go away when you turn off the switch?
Does the HUD not go away when you turn off the switch?
It does, but how would you go about triggering a switch when defeat all enemies or escape from battle?
I don't have MZ so I can't test it but you can try Caethyril's advice here:
I don't have MZ so I can't test it but you can try Caethyril's advice here:
I already switches outside of that turn them off. I am sorry I was clear with the issue. I am trying to turn them off before you leave the Battle Scene.
I would suggest, rather simply, not using a switch - I don't see any reason for it.

Just tell the HUD to only be active if you're in battle, the game engine already has a point of reference for that. $gameParty.inBattle()
I would suggest, rather simply, not using a switch - I don't see any reason for it.

Just tell the HUD to only be active if you're in battle, the game engine already has a point of reference for that. $gameParty.inBattle()
I would put that code in the conditions in HUD Maker or somewhere ele?
I would put that code in the conditions in HUD Maker or somewhere ele?
I haven't used HUD Maker.

Wherever you're telling it to work based on a switch, presumably you have a line of code someplace like $gameSwitches.value(42) - you would replace with what I typed above. That method returns true if the party is in battle.
There is a Display Conditions>Custom Code option in HUD Maker Ultra. Presumably you would put it there

Edit: I also noticed there is a Player in Battle? in other conditions. Why didn't you just use that to begin with?
There is a Display Conditions>Custom Code option in HUD Maker Ultra. Presumably you would put it there

Edit: I also noticed there is a Player in Battle? in other conditions. Why didn't you just use that to begin with?
The reason why I am using a switch is because I have cutscenes in battle (tutorials and story scenes) so whenever those pop up I could shut off the hud.
The reason why I am using a switch is because I have cutscenes in battle (tutorials and story scenes) so whenever those pop up I could shut off the hud.
Why aren't you resetting the switch in the same sequence of commands making your cutscene?
Why aren't you resetting the switch in the same sequence of commands making your cutscene?
I do turn the switch back on after the cutscene though.
Then make the HUD display multi conditional: Switch is ON and Player in Battle
I made the hud element multiconditional using the Switch and Player in Battle but the HUD still remains on.
Isn't that still "In battle"? At what point exactly do you want to turn it off?

Actually, your problem sounds similar to this
Isn't that still "In battle"? At what point exactly do you want to turn it off?

Actually, your problem sounds similar to this
I tried the method that was in the thread along with YEP Base Troop Events plugins so all battles anca call the event. However, it the Hud was left on.
I want the hud to be turned off once all the enemies are defeated or you escape from battle.
I wonder if you could use this to turn off the switch from inside the escape and battle results text windows. It says "almost any window"
I wonder if you could use this to turn off the switch from inside the escape and battle results text windows. It says "almost any window"
I tried to use Eli Message Action but I get a syntax error that makes it so it doesn't run. It doesn't crash the game though.
I tried to use Eli Message Action but I get a syntax error that makes it so it doesn't run. It doesn't crash the game though.
Eli is active on this forum and itch. You could ask him for help with his plugin

From the error message it sounds like you entered some code but didn't close it

Edit: I just tested the MV version and I was able to get a switch to turn off at the victory message popup by doing this. For Escape, I just turned off at Escape Start and turned it on again at Escape failure. I don't have MZ so I can't test that but can confirm MV works

Original thread: https://forums.rpgmakerweb.com/threads/srd-hud-maker-ultra-turn-off-hud-after-battle.158219/