Restart

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

Finally showing some updates again
I think it's ready - Chapter Selection:
unknown.png
On another more gaming topic, I paid 20 bucks for a visual novel to emotionally destroy me. I may write an entry about that.
1638611395177.png
Reading about metaverses recently. I can totally imagine myself in the future, logging in with VR glasses to a virtual beach villa sitting in a virtual chair, with a virtual laptop facing the sea...coding 16-bit RM.
Mod name: "[Game name] Gameplay Overhaul"
What they actually mean: "Here is a mod that makes the game harder."

Forum statistics

Threads
117,175
Messages
1,105,165
Members
153,290
Latest member
melissa1123
Top