So I'm using the Yep Battle Engine Core plugin and I noticed that when I use a plugin to give an enemy an HP bar and the enemy's HP is lower than the actor's, it's HP bar isn't all the way full. I thought it might have just been the other plugin I'm using but it does this regardless of what other plugin I'm using to give an enemy an HP bar. I'm currently using the SRD HUD Maker for custom HP bars. Is there any way to fix it so that the enemy's HP bar will appear full without making it have as much HP as the actor in my party? I'd post a screenshot but I'm making a Pokémon fan game and I don't wanna risk breaking any rules.
MV Enemy's HP Bar Isn't Full In YEP Battle Engine Core
Javascript/Plugin SupportSo just to be clear, you have tried turning the HUD Maker plugin OFF and it still shows your new enemies at partial health?
You can always change the graphic for one of your enemies to a default image for a screenshot, or make a new placeholder enemy for the purpose.
You can always change the graphic for one of your enemies to a default image for a screenshot, or make a new placeholder enemy for the purpose.
Like I said, it does this no matter what other plugin I use to give the enemy an HP bar. They even seem to still have less HP when I remove the custom HP bar.
Also, here's a screenshot.
Like I said, that wording does not make it clear that you have tried completely disabling the HUD Maker.
However, given your response I'll presume that you have, in fact, tried that.
So get into a battle, open the console with F8, and type in $gameTroop.members()[1].hp, hit Enter, see if the value matches the enemy's HP in your database.
I just did that and it makes look like it has 0 HP now.
Try making a new troop, adding enemies into it, and doing a test battle, type the same thing in.
If you made a troop and deleted or changed enemies in your database without also manually removing them from the troop, it can make things go haywire.
If that's not the problem, you'd have to do the fun trick of disabling all your plugins, make sure the basic game data doesn't have the problem, then enable your plugins one at a time until you see which one causes the problem.
You should also double check that all of your plugins are in the correct order as recommended by the authors.
If you made a troop and deleted or changed enemies in your database without also manually removing them from the troop, it can make things go haywire.
If that's not the problem, you'd have to do the fun trick of disabling all your plugins, make sure the basic game data doesn't have the problem, then enable your plugins one at a time until you see which one causes the problem.
You should also double check that all of your plugins are in the correct order as recommended by the authors.
On the HUD Maker, it says 300/500 HP. I think that's the problem but I have no idea how to fix that. I need it to say 300/300 HP.
Here's what I have on the HUD Maker for the enemy's HP.
Okay, so if you only have one enemy in the troop, you would test it with a 0 in the brackets in the command I gave you.
If that agrees that they're spawning with only 300, then you need to make sure they don't have something like a state or troop event that removes HP.
And then do what I already said, turn all your plugins off, and test that way. Your screenshot is not helpful because we can't see the full code in the text fields.
If that agrees that they're spawning with only 300, then you need to make sure they don't have something like a state or troop event that removes HP.
And then do what I already said, turn all your plugins off, and test that way. Your screenshot is not helpful because we can't see the full code in the text fields.
I just figured it out. Apparently all I had to do was put the number 300 for the max value and that's it lol
...what? All the enemies in your game have 300 HP?
Well now I see the problem with this. Ugh why is this so difficult? For some reason, the enemy's max HP is always the same as the actor's
I'm gonna bounce out, friend. I told you the code in the HUD was cut off and you haven't posted the full lines, so I don't know if your code in there is even saying the right thing.
You haven't posted your actual enemy from the database, so I don't know what the correct number for its max HP is supposed to be.
You haven't said if the number is still wrong when you turn off all your plugins.
I dunno what else I can say.
You haven't posted your actual enemy from the database, so I don't know what the correct number for its max HP is supposed to be.
You haven't said if the number is still wrong when you turn off all your plugins.
I dunno what else I can say.
I just discovered that it's HP is based on the amount of HP Class number 6 is. I'm still confused but I guess I kinda solved it.
I don't see how that's a solution...but if you're happy then ¯\_(ツ)_/¯
I have to do some guess work to see what classes effect which enemy HP but it works.
Fundamentally it does not...something is not working correctly in your game if your enemy hit points have anything to do with classes. You can ignore it instead of following the troubleshooting steps you've been given if you want to, but if something so randomly weird is broken, who knows what else might be going wrong with the numbers or math in your game?
I just completely figured out what the problem was. It was some of the plugins I had on like Enemy Actor and Bind Event To Actor.
Original thread: https://forums.rpgmakerweb.com/threads/enemys-hp-bar-isnt-full-in-yep-battle-engine-core.134749/