Quetz

Villager
Member
Joined
May 29, 2023
Messages
28
Reaction score
4
First Language
Español
Primarily Uses
RMMV
Hello!

I'm working in customizing a battle HUD, everything is working well, however, I encountered an issue I didn't notice until now x_x

Concept:
My main character can swap between 2 forms, for that I simply used a "Change Actor Image" command and a Switch.

Issue:
After I implemented Moghunter Battle HUD, that no longer works, since it uses a new folder called Battlehud.

I can keep making the character swap forms outside of battle. But in battle it uses a different file to draw the Face from and I can't seem to find a way to add the condition to the Moghunter plugin.

I'm using a Switch to turn on and off the second form, so in theory I can imagine adding that condition with that switch inside the plugin so it draws a different Face file instead, but my knowledge for coding is nearly zero.

Does anyone knows how to edit it?

Here is the plugin Im using
 

Attachments

  • MOG_BattleHud.js
    135.3 KB · Views: 1

TESTOSTERONE

Nosey aren't ya?
Regular
Joined
Feb 11, 2017
Messages
515
Reaction score
2,753
First Language
English
Primarily Uses
RMMV
Never mind, ignore this, I see you want it to change mid-battle.
 
Last edited:

Quetz

Villager
Member
Joined
May 29, 2023
Messages
28
Reaction score
4
First Language
Español
Primarily Uses
RMMV
Never mind, ignore this, I see you want it to change mid-battle.
Oh not at all, I'm glad I checked right away because what you did worked perfectly!

Sorry for the missunderstanding! I didn't want to change it mid battle, the form swap occurs always outside of it but the swap didnt update in battle. So your edit was perfect!

Thanks so much!

Moghunter specifies to mention if the plugin was edited, I'm not sure how to edit that part though.
Think you can mention it too on the plugin itself if is not a problem or which part I should edit?
 
Last edited:

TESTOSTERONE

Nosey aren't ya?
Regular
Joined
Feb 11, 2017
Messages
515
Reaction score
2,753
First Language
English
Primarily Uses
RMMV
ooooh lol, well in that case :D

reposting this here:

Assuming:
  • Your main character has actorId = 1
  • Switch you are using is 140
  • You have two images: Face_1 and Face_1b in the battlehud folder

Change line 3023 from:

Code:
this._face = new Sprite(ImageManager.loadBHud("Face_" + this._battler._actorId));

to:

Code:
this._face = new Sprite(ImageManager.loadBHud("Face_" + this._battler._actorId + ($gameSwitches.value(140) && this._battler._actorId == 1 ? "b" : "")));
 

Quetz

Villager
Member
Joined
May 29, 2023
Messages
28
Reaction score
4
First Language
Español
Primarily Uses
RMMV
ooooh lol, well in that case :D

reposting this here:

Assuming:
  • Your main character has actorId = 1
  • Switch you are using is 140
  • You have two images: Face_1 and Face_1b in the battlehud folder

Change line 3023 from:

Code:
this._face = new Sprite(ImageManager.loadBHud("Face_" + this._battler._actorId));

to:

Code:
this._face = new Sprite(ImageManager.loadBHud("Face_" + this._battler._actorId + ($gameSwitches.value(140) && this._battler._actorId == 1 ? "b" : "")));
I'll add you on the credits XD, Should I edit the plugin description that says " Author: Moghunter" to "Author: Moghunter , edited by TESTOSTERONE"?
 

TESTOSTERONE

Nosey aren't ya?
Regular
Joined
Feb 11, 2017
Messages
515
Reaction score
2,753
First Language
English
Primarily Uses
RMMV
Thank you, but no credit is necessary for me. :D You can keep it as moghunter.

I’m just hoping that you get to learn some coding here and there.
 

Latest Threads

Latest Profile Posts

Me: "Who the heck would play a game with no stakes, no enemies, and all you do is raise and breed bees?"
Later after playing it. - "Holy crap, I didn't know it was 1:30. Where'd my time go?"
The site is being slow and funky again. IS SOMEONE CRAFTING POEMS?!
So yeah, @TRIDIUM @TESTOSTERONE, I wuz like, "What do they mean by borderline and boundaries?"

And then, y'all know this girl?

actress1.png

alice_bikini.png

The clothes? They're just a, um, quick edit. :kaoswt:
I've uploaded the opening cutscene from my game to my channel. It basically introduces us to the first three characters, and what their relationships are:
Cosmic Inferno: Opening dialogue
I don't want to start a panic...but everyone, check the color of your milk!
IMG_20231002_082329.jpg

Forum statistics

Threads
135,021
Messages
1,253,018
Members
177,951
Latest member
DarkKing
Top