Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
848
Reaction score
711
First Language
English
Primarily Uses
RMMV
I don't think there's a stock way of doing it, the easiest quick and dirty hack would be to change which folder it's looking at midfight and then refresh it.

This overwrites the load battlehud code so that if switch 17 is set to true, it'll change to the battlehud2 folder
Code:
ImageManager.loadBHud = function(filename) {
if (($gameSwitches.value(17) == true))
     {
    return this.loadBitmap('img/battlehud2/', filename, 0, true);
     }else{
    return this.loadBitmap('img/battlehud/', filename, 0, true);
    }
};

I *believe* that one setting one of these two variable to true will force a refresh of the battlehud and use the new images but I'm not super familiar with this plugin
Code:
$gameTemp._forceCreateBattleHud = true;
$gameTemp._refresh_Bhud = true;

Haven't tested it, check to see if it works or if the console spits out some whines.
 

shukiri

Villager
Member
Joined
Nov 6, 2018
Messages
21
Reaction score
8
First Language
english
Primarily Uses
RMMV
Thanks. The refresh bhud does nothing in this context. The force create battle HUD makes all parts of the hud just disappear (faces, commands, screen layout). I can't even tell if the folder switch is working because it's not refreshing the file with either of those two functions.

If you ignore the folder approach, I can get it to work with this, but the new image appears OVER the faces and commands.... and I'm sure this is not how you're supposed to do it...

Code:
if ($gameSwitches.value(17) == true) {
        this._screen_layout = new Sprite(ImageManager.loadBHud("Layout_Screen2"));
        this._hudField.removeChild(this._screen_layout);
        this._hudField.addChild(this._screen_layout);
    }
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
531
Reaction score
279
First Language
thai
Primarily Uses
RMMV
never try it myself
but I think you better check it
 

shukiri

Villager
Member
Joined
Nov 6, 2018
Messages
21
Reaction score
8
First Language
english
Primarily Uses
RMMV
Yeah, I have used that plugin before but it's for faces only, not the screen HUD background (unless I am missing something). Maybe there's a clue in there as to how to refresh an image in MOG's plugin?
 

Latest Threads

Latest Posts

Latest Profile Posts

At this point, "unique and diverse cast of characters" might as well be slang for Every Character is a Human-Sue.
I found an absolutely brilliant lifehack on the internet today.

Screenshot_760.jpg
It does sometimes get a little embarrassing that I often come here to ask for help with something and seldom have anything to actually show for it. If there is one thing though I can commend myself for, it's for sticking with an idea I've been tinkering with for this long now and gradually making headways. Even though I've been reserved about my progress, I can say I'm farther now than where I initially started.
I'm gonna put my project on pause for a tiny bit so I can explore the engine outside of it... Winging it can only get you so far LMFAO

Forum statistics

Threads
116,137
Messages
1,096,100
Members
151,563
Latest member
maxmcguire
Top