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
478
Reaction score
2,436
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
478
Reaction score
2,436
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
478
Reaction score
2,436
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 Posts

Latest Profile Posts

Art Twitter is nice, Im so used to that platform being....A literal maw of despair.
ezgif.com-video-to-gif.gif
with the apartment done, I've finished work on the first area and begun the tutorial. Have a sneak peak at the Biting Boroughs.
Maybe it's just me...but it feels like everyone else has perfectly normal and respectable game threads except for me and @TESTOSTERONE, whose threads are a mess of discussions and jokes with very little relation to our actual games.

Forum statistics

Threads
134,833
Messages
1,251,028
Members
177,627
Latest member
sdavies
Top