Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
848
Reaction score
707
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
7
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
7
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 Profile Posts

Sneak peak of my upcoming update! Who's holding her, you may ask? Find out tonight!
10.PNG
BCj
Finished another GUI! Turn indicator wasn't made by me.

ff981f8dc50b03cf58038c644334b454.jpg


3cb092fdc00087acfa0a190fd891f0ed.jpg
Added a small refining scene to my game.

It makes sense that you try to focus on the squishy mages at the back of the party first, right? If the mage can out-DPS the enemy DPS before the latter can kill the tank in front, the fight becomes boring.

Forum statistics

Threads
115,247
Messages
1,088,351
Members
149,847
Latest member
Diskidd
Top