MZ Charge/gauge skill for bosses

Before I'm posting this thread, I searched it on google and found an answer : use states to do charge skill.
But I want it outside states to prevent players from getting confused, because my game has many states.

if you know game named Granblue Fantasy, I want exactly the bosses has a gauge like this to launch ultimate skill

Spoiler: screenshot
1646471719574.png

is there a plugin for MZ to do this? or maybe a trick?
do you want this to warn players or do you want it as a tactic option?

it is extremely easy to program sequences into the action pattern without any visible effect to confuse the player. The player would then have to learn the attack sequence by experience.

it only becomes problematical if you want a display on the screen of where in the sequence the enemy would be. For that you would indeed need a plugin - an HUD type plugin to be exact.
And those are not only more work, but I currently know of none that would allow for enemy data as the focus, most simple HUDs focus on actor/player data.
do you want this to warn players or do you want it as a tactic option?
I want both, for example the player can reduce the gauge so they can avoid a fatal attack from boss or the player has powerful skill but it will fill boss gauge/charge skill

it only becomes problematical if you want a display on the screen of where in the sequence the enemy would be. For that you would indeed need a plugin - an HUD type plugin to be exact.
And those are not only more work, but I currently know of none that would allow for enemy data as the focus, most simple HUDs focus on actor/player data.
I think I found the plugin "Boost Action" from VS but the gauge visible only for the player. I don't know how to make it visible on enemies.
The problem is that enemies don't work that way by default, and I doubt you'll find a plugin for that.

which means you have two options now:
1) use MP or TP to simulate your charges, and look for a plugin that displays enemy HP/TP/MP.
basically have some of your regular skills raise the TP or MP of the boss, and give the powerskill a TP cost with a high rating. the power skill will be used when the TP scale is filled up enough.

but that will require some work for disabling TP ratio for that enemy and more.

2) request a plugin specifically for such a mechanic on the enemies
this would include both display and game mechanics including the options for your actors to reduce the count.
The problem is that enemies don't work that way by default, and I doubt you'll find a plugin for that.
I see
1) use MP or TP to simulate your charges, and look for a plugin that displays enemy HP/TP/MP.
basically have some of your regular skills raise the TP or MP of the boss, and give the powerskill a TP cost with a high rating. the power skill will be used when the TP scale is filled up enough.
This would be best option for now, because the option number 2 is impossible for now cause I think it will cost a lot money to request specific plugin I guess?

Thankyou for answering my thread and also giving advice, very helpful 😍

@NaosoX I open the video on youtube and no information about the plugin or even the websites? or its your channel?
Im on mobile right now and formatting is going crazy! Ill have to explain later
nothing special, 2 skills and 1 common event to make this
I think it will cost a lot money to request specific plugin I guess?
not exactly

there is a whole forum for free requests, but of course those free requests only get done if you find a programmer who thinks that many people could use such a plugin. which means the chances are only good with a good request presentation.
other than that you should have access to the classifieds forum for paid work, and there are several people who offer plugins and give there price ranges there. It depends on the amount of work of course, and no one knows what is expensive for you and what you would be willing to pay for such things. But most plugins go for less than 100$ unless you have a lot of functions you want.
Im on mobile right now and formatting is going crazy! Ill have to explain later
nothing special, 2 skills and 1 common event to make this
Thanks, I want more info about it, take your time 😀

not exactly

there is a whole forum for free requests, but of course those free requests only get done if you find a programmer who thinks that many people could use such a plugin. which means the chances are only good with a good request presentation.
other than that you should have access to the classifieds forum for paid work, and there are several people who offer plugins and give there price ranges there. It depends on the amount of work of course, and no one knows what is expensive for you and what you would be willing to pay for such things. But most plugins go for less than 100$ unless you have a lot of functions you want.
Unfortunately I'm not fluent in English, and I'm terrible at explain something even in my native language. Maybe I'll try to make request someday xD


Ok, here is a method to create this effect.
Understand that there can be multiple ways to do this, I will provide one way using only the Visustella Sample Game https://visustella.itch.io/visumz-sample
These are the required plugins used:
http://www.yanfly.moe/wiki/Core_Engine_VisuStella_MZ
http://www.yanfly.moe/wiki/Battle_Core_VisuStella_MZ
http://www.yanfly.moe/wiki/Skills_and_States_Core_VisuStella_MZ

Before you begin, create images to represent the gauge being on/off.
Spoiler: Example Images
GaugeImage.png

Modified Image used from:


Don't copy these, use your own


We will be using 1 switch and 1 variable. Create and name them.
For this example I've used switch 21 and named it VisualBossBoost.
For this example I've used variable 41 and named it BossBoost.

Once that is in place, use the existing or make a new Base Troop Battle Event.
A Base Troop Battle Event will run at the start of every battle.
Plugin Manager > VisuMZ_1_BattleCore > Mechanics Settings > Base Troop > Base Troop ID's(multiple base troops can exist -- default troop is 1).
Spoiler: Base Troop
BaseTroop.png

Now that the base troop has been identified/setup, you can go to your base troop.
Spoiler: Visustella Sample Default Base Troop Event
BaseTroopEvent.png

Create or add onto the turn 0 event to display the gauge images.
Spoiler: Gauge on turn 0
DisplayGauge.png


You can design the layout and effect style to suit your needs, this example will display instantly.

Since the troop event will run on every battle, we should put into place a way to determine or activate when it is a boss battle. The easiest way is to set a switch you can activate just before a boss battle.

So, now the gauge will appear when we declare a boss battle. Let's get it to function how we intend. For this we will setup a common event.
Start by having conditional branches based on out variable for values 0 ~ 5
Spoiler: CE Setup Step 1
CEset1.png

This will be our reference for each phase of the boss gauge.

Now copy the gauge image placement we made in base troop event and paste that into condition 0
Spoiler: CE Setup Step 2
CEset2.png

When the variable is at 0, it will display just as it did at turn 0; in this example -- grey.

Now paste this into variable 1 condition, but change image 1 to the active image.
Copy and paste that into variable condition 2, and change image 2, etc... until they are filled out to display according to the represented variable amount.

Spoiler: CE Setup End
Code:
◆If:BossBoost = 0
  ◆Show Picture:#1, DiaGrey, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#2, DiaGrey, Upper Left (48,0), (100%,100%), 255, Normal
  ◆Show Picture:#3, DiaGrey, Upper Left (96,0), (100%,100%), 255, Normal
  ◆Show Picture:#4, DiaGrey, Upper Left (144,0), (100%,100%), 255, Normal
  ◆Show Picture:#5, DiaGrey, Upper Left (192,0), (100%,100%), 255, Normal
  ◆
:End
◆If:BossBoost = 1
  ◆Show Picture:#1, DiaRed, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#2, DiaGrey, Upper Left (48,0), (100%,100%), 255, Normal
  ◆Show Picture:#3, DiaGrey, Upper Left (96,0), (100%,100%), 255, Normal
  ◆Show Picture:#4, DiaGrey, Upper Left (144,0), (100%,100%), 255, Normal
  ◆Show Picture:#5, DiaGrey, Upper Left (192,0), (100%,100%), 255, Normal
  ◆
:End
◆If:BossBoost = 2
  ◆Show Picture:#1, DiaRed, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#2, DiaRed, Upper Left (48,0), (100%,100%), 255, Normal
  ◆Show Picture:#3, DiaGrey, Upper Left (96,0), (100%,100%), 255, Normal
  ◆Show Picture:#4, DiaGrey, Upper Left (144,0), (100%,100%), 255, Normal
  ◆Show Picture:#5, DiaGrey, Upper Left (192,0), (100%,100%), 255, Normal
  ◆
:End
◆If:BossBoost = 3
  ◆Show Picture:#1, DiaRed, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#2, DiaRed, Upper Left (48,0), (100%,100%), 255, Normal
  ◆Show Picture:#3, DiaRed, Upper Left (96,0), (100%,100%), 255, Normal
  ◆Show Picture:#4, DiaGrey, Upper Left (144,0), (100%,100%), 255, Normal
  ◆Show Picture:#5, DiaGrey, Upper Left (192,0), (100%,100%), 255, Normal
  ◆
:End
◆If:BossBoost = 4
  ◆Show Picture:#1, DiaRed, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#2, DiaRed, Upper Left (48,0), (100%,100%), 255, Normal
  ◆Show Picture:#3, DiaRed, Upper Left (96,0), (100%,100%), 255, Normal
  ◆Show Picture:#4, DiaRed, Upper Left (144,0), (100%,100%), 255, Normal
  ◆Show Picture:#5, DiaGrey, Upper Left (192,0), (100%,100%), 255, Normal
  ◆
:End
◆If:BossBoost = 5
  ◆Show Picture:#1, DiaRed, Upper Left (0,0), (100%,100%), 255, Normal
  ◆Show Picture:#2, DiaRed, Upper Left (48,0), (100%,100%), 255, Normal
  ◆Show Picture:#3, DiaRed, Upper Left (96,0), (100%,100%), 255, Normal
  ◆Show Picture:#4, DiaRed, Upper Left (144,0), (100%,100%), 255, Normal
  ◆Show Picture:#5, DiaRed, Upper Left (192,0), (100%,100%), 255, Normal
  ◆
:End

Now it's time to create the skills!
You can decide what would work best for your game, but I will explain the example setup.

Spoiler: Boost Skill Example
BoostSkill.png

Take note that we have the common event called under effects.
Notetags:
Code:
<JS Skill Enable>
 enabled = user.mp >= 50 && $gameVariables.value(41) <= 4;
</JS Skill Enable>

<JS Post-Start Action>
 if ($gameVariables.value(41) >= 5){
}
else{
 $gameVariables.setValue(41, $gameVariables.value(41) + 1)
};
</JS Post-Start Action>

The skill will be enabled as long as the boss has the mana to cast it, and the boost gauge is not at max.
If the boost gauge is 5 or more, the is no additional effect.
If the boost gauge is not maxed, each use will gain 1 to the value of the boost variable.
It may be overkill, but I tend to add redundancies as a fail-safe. You can decide what works best for you.

Spoiler: Boost Ultimate Example
BoostUltimate.png


As with the previous skill, the common event is linked via effects.
Code:
<JS Pre-Apply>
 $gameVariables.setValue(41, 0)
</JS Pre-Apply>

<JS Skill Enable>
 enabled = $gameVariables.value(41) === 5;
</JS Skill Enable>

The skill will be enabled as long as the boos gauge is maxed.
once the skill is used, the meter will drop back to zero.

Add the new skills to the boss!
Spoiler: Boss
Boss.png

Spoiler: NOTE
You can create player skills which call the same common event and reduce boost variable to keep the boss ultimate at bay!

A lot of the times people tend to jump to plugins(granted we are using plugins for their notetags), or some exotic script.
I hope this helps you see the many wonderful things you can do with a little creativity.

Spoiler: Love Note
The original video https://forums.rpgmakerweb.com/index.php?threads/charge-gauge-skill-for-bosses.145446/post-1257084 I put together in just a few minutes. I used Visustella boost plugin http://www.yanfly.moe/wiki/Boost_Action_VisuStella_MZ, but I wanted to create another method which didn't need it as I didn't actually use the plugins features, just some functions.
You can still create a more advanced version with the boost plugin and utilize the features if you choose.

Please Enjoy!
@NaosoX that's awesome! Actually I already use all that plugin you mentioned but I can't imagine what you've done.

I'll try to make it right now!
I don't know how to thank you for writing and explaining this for me! I think there will also be people who need this.
Very much appreciated 😍



EDIT :
I already try it and works perfectly! :ptea: Awesome!
For some reason the image moves on svreen shakes and zoom sequence, how i can make the hud stay fixed on screen?

Original thread: https://forums.rpgmakerweb.com/threads/charge-gauge-skill-for-bosses.145446/