Veggiebad

Regular
Regular
Joined
Nov 27, 2017
Messages
51
Reaction score
1
First Language
English
Primarily Uses
RMVXA
I need help making my boss HP display on screen and I dunnow how to use it. I see the plugin command,
boss_set_event_battler_id
, but I don't know what it does. No matter how hard I try, I can't get the boss HP to display. Can anyone give me assistance?

EDIT: Here is the plugin I'm talking about
https://atelierrgss.wordpress.com/rmv-chrono-engine/
 
Last edited:

Restart

Regular
Regular
Joined
Mar 15, 2019
Messages
848
Reaction score
751
First Language
English
Primarily Uses
RMMV
are you working from the demo project? Mog's stuff is complex enough you often need a working example to make any headway

I believe the enemy profile in the database also has to have "Boss HP" in the comments, and you probably want "Hide HP" too.


I think the number next to the "boss_set_event_battler_id" in the example is vestigal? IT doesn't seem to do anything in the code

Code:
       if (command === "boss_set_event_battler_id")  {
           for (var i = 0; i < $gameMap.allEnemiesOnMap().length; i++) {
               var ev = $gameMap.allEnemiesOnMap()[i];
               var battler = ev.battler();
               if (battler._bosshp_meter) {
                   $gameSystem._chronoBossEnemy = battler;
                   $gameTemp._battler_bhp_refresh = true;
                   if (Imported.MOG_ChronoEngine) {
                      $gameTemp._forceCreateBossHud = true;
                   };
                   break;
               };
           };      
       };
 
Last edited:

Veggiebad

Regular
Regular
Joined
Nov 27, 2017
Messages
51
Reaction score
1
First Language
English
Primarily Uses
RMVXA
are you working from the demo project? Mog's stuff is complex enough you often need a working example to make any headway

I believe the enemy profile in the database also has to have "Boss HP" in the comments, and you probably want "Hide HP" too.


I think the number next to the "boss_set_event_battler_id" in the example is vestigal? IT doesn't seem to do anything in the code

Code:
       if (command === "boss_set_event_battler_id")  {
           for (var i = 0; i < $gameMap.allEnemiesOnMap().length; i++) {
               var ev = $gameMap.allEnemiesOnMap()[i];
               var battler = ev.battler();
               if (battler._bosshp_meter) {
                   $gameSystem._chronoBossEnemy = battler;
                   $gameTemp._battler_bhp_refresh = true;
                   if (Imported.MOG_ChronoEngine) {
                      $gameTemp._forceCreateBossHud = true;
                   };
                   break;
               };
           };     
       };
Oh, do I have to add in another line of code within Mog's Chrono engine plugin script?

I have built my game upon Mog's demo and I have applied "boss HP" with "Hide HP". Dunnow if it's case or space sensitive, but I even made a copy of the original demo and literally copied from there to my game and it still doesn't work.

I even tried resetting my entire save and sped through the game to reach the second boss, but it didn't work.

I plan on making multiple bosses and from what I've gathered, once I beat a boss in the example, it reverts back to the title screen. So I don't know what's going on with that.

the "boss_set_event_battler_id : x" command seems to have done something, since once I removed it, the boss health bar disappeared. It is based upon the ABS system since chrono engine does not have that command. I don't know if I have to declare that command once, or every boss but I cannot see it on the second boss. Only the first.
 

Restart

Regular
Regular
Joined
Mar 15, 2019
Messages
848
Reaction score
751
First Language
English
Primarily Uses
RMMV
The code was just for the plugin (the bit where it parses the command). It looks like the argument in the command doesn't do anything (dunno why mog included a number in the example project when he calls it).


I plan on making multiple bosses and from what I've gathered, once I beat a boss in the example, it reverts back to the title screen. So I don't know what's going on with that.

That's due to an event switch defined in the demo. For instance, the angel boss has
Code:
Dead Switch Id : 74
, and the boss map for the angel has this page on the event handling the boss fight.

ZH1uYX6.png


I don't know if I have to declare that command once, or every boss but I cannot see it on the second boss. Only the first.
you have to activate boss hp for the boss each time.
 

Veggiebad

Regular
Regular
Joined
Nov 27, 2017
Messages
51
Reaction score
1
First Language
English
Primarily Uses
RMVXA
The code was just for the plugin (the bit where it parses the command). It looks like the argument in the command doesn't do anything (dunno why mog included a number in the example project when he calls it).




That's due to an event switch defined in the demo. For instance, the angel boss has
Code:
Dead Switch Id : 74
, and the boss map for the angel has this page on the event handling the boss fight.

ZH1uYX6.png



you have to activate boss hp for the boss each time.
Really? Do I also have to input the same command again as well? I am meaning the same "Plugin Command : boss_set_event_battler_id" for each boss. I removed the number for each command and it does seem to work fine. So I know the number is unneeded. Now I need to know if I need to input the same command, or I should get rid of it for the second boss.
 

Restart

Regular
Regular
Joined
Mar 15, 2019
Messages
848
Reaction score
751
First Language
English
Primarily Uses
RMMV
Maybe I'm confused about what you want - are you trying to have two bosses with boss healthbars onscreen at once, or are you having a boss -> kill it, other stuff happens -> new boss type situation?
 

Veggiebad

Regular
Regular
Joined
Nov 27, 2017
Messages
51
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Maybe I'm confused about what you want - are you trying to have two bosses with boss healthbars onscreen at once, or are you having a boss -> kill it, other stuff happens -> new boss type situation?
Yeah, it is basically Dungeon>boss>dungeon>boss
 

Restart

Regular
Regular
Joined
Mar 15, 2019
Messages
848
Reaction score
751
First Language
English
Primarily Uses
RMMV
Then yeah, you have to call the command for each boss - you can see in the example how mog times it so the boss hp bar shows up at a dramatically appropriate moment.
 

Veggiebad

Regular
Regular
Joined
Nov 27, 2017
Messages
51
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Then yeah, you have to call the command for each boss - you can see in the example how mog times it so the boss hp bar shows up at a dramatically appropriate moment.
I tried it over and over, even restarting the entire game in order to achieve this and I have got nothing. The first boss's HP appears no problem, but the second boss cannot for some strange reason. Even if I copy the exact same command from one boss to another, the second boss's HP still won't show. Here are some screenshots:


 

Restart

Regular
Regular
Joined
Mar 15, 2019
Messages
848
Reaction score
751
First Language
English
Primarily Uses
RMMV
how is the event for your boss monster set up? Is the "Comment: enemy_id : MONSTER_NUMBER" set on the first page?

The code only detects things that are currently set to exist as enemies, so if you define the enemy_id within a later page (like with a variable or self switch), if the boss isn't in that state when the code to create the boss health bar runs, it won't see the boss and won't do anything.
 

Veggiebad

Regular
Regular
Joined
Nov 27, 2017
Messages
51
Reaction score
1
First Language
English
Primarily Uses
RMVXA
how is the event for your boss monster set up? Is the "Comment: enemy_id : MONSTER_NUMBER" set on the first page?

The code only detects things that are currently set to exist as enemies.
Yup, the boss works properly and uses the same attributes as the enemies list. I even copied from the first boss. It's just the health bar not appearing.

Also, when I use the regular health bars, that would work here.
 

Restart

Regular
Regular
Joined
Mar 15, 2019
Messages
848
Reaction score
751
First Language
English
Primarily Uses
RMMV
Can you show me screenshots of your boss events and their pages in the database?
 

Veggiebad

Regular
Regular
Joined
Nov 27, 2017
Messages
51
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Can you show me screenshots of your boss events and their pages in the database?
I apologize for the delay. I have a lot of projects at hand. Give me a moment and I will show you all of my screenshots.
 

Restart

Regular
Regular
Joined
Mar 15, 2019
Messages
848
Reaction score
751
First Language
English
Primarily Uses
RMMV
In the Error 2-2 event, Move the 'boss_set_event_battler_id' comand below the 'control switch 072 boss-2 start on'
 

Veggiebad

Regular
Regular
Joined
Nov 27, 2017
Messages
51
Reaction score
1
First Language
English
Primarily Uses
RMVXA
In the Error 2-2 event, Move the 'boss_set_event_battler_id' comand below the 'control switch 072 boss-2 start on'
I have done that and the second boss's health still hasn't appeared.
 

Restart

Regular
Regular
Joined
Mar 15, 2019
Messages
848
Reaction score
751
First Language
English
Primarily Uses
RMMV
okay, try putting an page with ONLY the enemy id for your second boss as the first page in it. I still think the crucial issue is that it isn't detecting that the enemy exists
 

Veggiebad

Regular
Regular
Joined
Nov 27, 2017
Messages
51
Reaction score
1
First Language
English
Primarily Uses
RMVXA
okay, try putting an page with ONLY the enemy id for your second boss as the first page in it. I still think the crucial issue is that it isn't detecting that the enemy exists
It actually recognizes the second boss as an enemy, because when I put up the regular health bars, it had the same name inputted from the enemy page.
Also, do you mean I just delete the autorun event and just put the boss as the only event?
 

Restart

Regular
Regular
Joined
Mar 15, 2019
Messages
848
Reaction score
751
First Language
English
Primarily Uses
RMMV
nah, I'm saying go into the boss creature, and for the first page, put in a blank page with
comment: enemy id : 10
that doesn't have a sprite, and doesn't require any switches or variables or anything to activate
 

Veggiebad

Regular
Regular
Joined
Nov 27, 2017
Messages
51
Reaction score
1
First Language
English
Primarily Uses
RMVXA
nah, I'm saying go into the boss creature, and for the first page, put in a blank page with
comment: enemy id : 10
that doesn't have a sprite, and doesn't require any switches or variables or anything to activate


Fixed! I guess that was the problem, where the command had no idea what to identify when it comes to the boss's health. I will do the same with other bosses.
 

Latest Threads

Latest Profile Posts

New update for Battle Castle: Shadow from the Past A Shadow's Echo. No gameplay changes or new content, but lots of things got renamed, including the game title, for extra immersion. Some things related to sound too, like activating chests and taking things.
Obvious One.gif
Meet my new mascot. He's also a mimic! No prizes for guessing this guy's name, though, haha
BANNER2.png
I put out a new pack and I swear, I did not realize how it looks like the ones on the right are scared/nervous of the one on the left until way after o_O I just wanted to showcase some of them randomly xD
Well, if anyone has a funny, simple, easy RM game they want me to playtest/review, I would love it.
Someone close to me straight up told me they didn't think my relationship with my girlfriend would last. No lead up, very bluntly. Like it's obvious or something. Trying not to let it get to my head, but it's hard.
The distraction would be a life saver.
QuestMZPlugin.png

My first foray into a plugin that I plan to release. Working on something for those who want to set up a Dragon Quest style battle HUD with minimal fuss. Includes the ability to round the battleback corners to fit your windowskin and, of course, front-view animations.

QuestMZPLugin_CustomWindow.png

Forum statistics

Threads
134,756
Messages
1,250,350
Members
177,519
Latest member
MDNS
Top