Custom MP Bar

I found a couple of other posts in a similar vein but I'd like to have an MP bar that is different from the regular gauge.

For the game I'm making the actor has a very low MaxMP so wanted to have something more illustrative than just a gradient gauge.

I'd like to be able to do one of the three versions:
Spoiler: Segmented gauge
1734313996867.png

A segmented gauge that ticks each block down and shows how much MP left there is

Spoiler: Counter
1734314120901.png
1734314192227.png

A counter similar to how they do on Slay the Spire or Hearthstone

OR, a plugin that allows for it to be animated so it displays only one number then it changes to the updated number after the cost has been deducted (i.e. Has 3 mana, uses a spell that costs 2, now the counter just shows 1)
What does Yanfly's Segmented Gauges not do that you need?
I would like to be able to customize the segments similar to how Hearthstone has the lit up and dimmed mana crystals.
I would like to be able to customize the segments similar to how Hearthstone has the lit up and dimmed mana crystals.
I actually remade that interface for my own hearthstone inspired card game.

However, to do this I used 1 event per manacrystal (which are coins in my case).

To do this with actual mana, in place of the mana bar, that is going to be a whole different issue.
depends if its in the map or window.

for the map, SRD_HUDMaker can do this easely.
for windows, Shaz made a plugin here (post 11) that replace
HP, MP, TP bars with a sprite and has a number on it, so it can work
the way you want.
depends if its in the map or window.

for the map, SRD_HUDMaker can do this easely.
for windows, Shaz made a plugin here (post 11) that replace
HP, MP, TP bars with a sprite and has a number on it, so it can work
the way you want.
Oh? I tried SumRndmDde's plugin before, but I can imagine how that could make it like this. But then again, I don't know the plugin that well.

Just out of curiosity, wanna walk is trough the process? (Asuming that it isn't a 39 chapter solution and instead can be explain in a few minutes)

The shaz plugin seems interesting as well. I think I'll try that one out as soon as I get home... (I'm in the bus home from work.)

Spoiler: I'm not the OP.
Just to be clear for everyone, since my reply might suggest differently, I am not the OP. This wasnt my question, but I think it is a rather interesting one.
@JohnDoeNews sure, but it's in spoiler, but numbers need to be modified,
as this was my first setup (which can have 500HP) but uses segments.

the NUMBER CUR / MAX is NOT on it. but here is a small illustration for
segments if its on MAP or BATTLE (not inside windows).

Spoiler: 5 pieces segments
==============================================
5 equal pieces
==============================================

piece1:
max value:
$gameParty.leader().mhp/5

current value:
$gameParty.leader()._hp-($gameParty.leader().mhp*4/5)


piece2:
max value:
$gameParty.leader().mhp/5

current value:
$gameParty.leader()._hp-($gameParty.leader().mhp*3/5)


piece3:
max value:
$gameParty.leader().mhp/5

current value:
$gameParty.leader()._hp-($gameParty.leader().mhp*2/5)


piece4:
max value:
$gameParty.leader().mhp/5

current value:
$gameParty.leader()._hp-($gameParty.leader().mhp/5)


piece5:
max value:
$gameParty.leader().mhp/5

current value:
$gameParty.leader()._hp

if it has half segments you can do it like this (similar as above) (also 5 pieces).
Spoiler: 5 pieces with half segments
piece1:
max value:
$gameParty.leader().mhp/8

current value:
$gameParty.leader()._hp-($gameParty.leader().mhp*7/8)


piece2:
max value:
$gameParty.leader().mhp/4

current value:
$gameParty.leader()._hp-($gameParty.leader().mhp*5/8)


piece3:
max value:
$gameParty.leader().mhp/4

current value:
$gameParty.leader()._hp-($gameParty.leader().mhp*3/8)


piece4:
max value:
$gameParty.leader().mhp/4

current value:
$gameParty.leader()._hp-($gameParty.leader().mhp/8)


piece5:
max value:
$gameParty.leader().mhp/8

current value:
$gameParty.leader()._hp

sample of the first part is like:
in case you have like... 300HP, here's how it would be:
piece 1: 300/50 (full)
piece 2: 250/100 (full)
piece 3: 150/100 (full)
piece 4: 50/100 (half full)
piece 5: 0/50 (empty)
@JohnDoeNews sure, but it's in spoiler, but numbers need to be modified,
as this was my first setup (which can have 500HP) but uses segments.

the NUMBER CUR / MAX is NOT on it. but here is a small illustration for
segments if its on MAP or BATTLE (not inside windows).

(...)
Yeah... Maybe I should re-download the plugin by SRD too, and check it out again, because that doesn't ring a bell at all. 😛 But it does seem interesting. I won't highjack the thread any further, though. I hope the plugins are helpful for OP. (I'm not even going to use them myself, I just would love to see how it's done. Although, while I type this, I realize it can be useful for my card-game.)

Spoiler: How I faked it, with events.
In an earlier reply OP mentioned it to glow for each point of mana like in Hearthstone, right? And then I mentioned I use coins for the costs of my card game, which is slightly inspired by Hearthstone.

This is what it looks like:
1734372279915.png

It is still in the early stages of development, but the coin were easily made, so at least that is done. And none of my earlier card games had the coins. (Which comes from Avery's iconset, btw... One of the few things that are not RTP edits of my own.) So, it is still in an experimental fase.

This is how I did it:

Page 1:
1734372771254.png


Page 2 of the same event:
1734372791589.png


I repeated this 15 times (per player), and each coin had a higher number in the condition.

So, if you want to use it in a non-typical battle, maybe in a board game, or maybe a card-game like me, or at least on a map that never scrolls, you could do it with events.

I have no clue what you want to use it for, and this is probably not helpful for you at all, that is why it is behind a spoiler.

This might not be very useful if you want it in a battle scene, or in an RPG... But if you are trying to create a cool game system, here is how I do it.

By the way, if you are NOT making an RPG, then I am really curious what you are making. Specially since you named Heartstone as an example.
I actually remade that interface for my own hearthstone inspired card game.

However, to do this I used 1 event per manacrystal (which are coins in my case).

To do this with actual mana, in place of the mana bar, that is going to be a whole different issue.
Sorry I feel like I wasn't clear, the initial goal is to have the mana bar act like the mana crystals on Hearthstone during the battle 😅So with every skill used in battle the tokens would be greyed out/dimmed out.

depends if its in the map or window.

for the map, SRD_HUDMaker can do this easely.
for windows, Shaz made a plugin here (post 11) that replace
HP, MP, TP bars with a sprite and has a number on it, so it can work
the way you want.
I was looking into that plugin initially but I get an img/system/undefined.png error when I load my game. Would I need SRD_HUDMaker on top of Shaz's plug in?
Spoiler: How I faked it, with events.
In an earlier reply OP mentioned it to glow for each point of mana like in Hearthstone, right? And then I mentioned I use coins for the costs of my card game, which is slightly inspired by Hearthstone.

This is what it looks like:
View attachment 325903
It is still in the early stages of development, but the coin were easily made, so at least that is done. And none of my earlier card games had the coins. (Which comes from Avery's iconset, btw... One of the few things that are not RTP edits of my own.) So, it is still in an experimental fase.

This is how I did it:

Page 1:
View attachment 325905

Page 2 of the same event:
View attachment 325906

I repeated this 15 times (per player), and each coin had a higher number in the condition.

So, if you want to use it in a non-typical battle, maybe in a board game, or maybe a card-game like me, or at least on a map that never scrolls, you could do it with events.

I have no clue what you want to use it for, and this is probably not helpful for you at all, that is why it is behind a spoiler.

This might not be very useful if you want it in a battle scene, or in an RPG... But if you are trying to create a cool game system, here is how I do it.

By the way, if you are NOT making an RPG, then I am really curious what you are making. Specially since you named Heartstone as an example.
This is interesting, but I have no idea how you implemented that by just looking at these two event pages. Is this a map scene with each coin being an event? The layout is kinda what I want to have but inside a battle scene.

The game I'm making is pretty much Papers, Please with Slay the Spire mechanics 🙏
I repeated this 15 times (per player), and each coin had a higher number in the condition.
15 events? you could do it with 1 event, and little scripting as well for the value
to highlight, so you kind of overkill it 😀

but the part I mentioned with HUDMaker = part of my map hud (or was ( version 2)).
as this was my hud (also drastic changed) but has segments.
but if you use it like hearts or segments (10hp, 10 segments) it looks also cooler 😉
but this is more a bunch of elements.
_Actor HUD_.gif


but you can achieve the same with your coins and 1 event instead of 15 on both sides,
so you control them somehow while its action button and not parallel 😛

@Alkaline similar of segments can count, depends how you want it to look like as if
segments counts per hit, or for multiple hits.

you should test it, but shaz require 2 images (empty and full) if you don't have those,
it throws undefined error I think, but didn't test that plugin.
15 events? you could do it with 1 event, and little scripting as well for the value
to highlight, so you kind of overkill it 😀

but the part I mentioned with HUDMaker = part of my map hud (or was ( version 2)).
as this was my hud (also drastic changed) but has segments.
but if you use it like hearts or segments (10hp, 10 segments) it looks also cooler 😉
but this is more a bunch of elements.
View attachment 325915

but you can achieve the same with your coins and 1 event instead of 15 on both sides,
so you control them somehow while its action button and not parallel 😛

@Alkaline similar of segments can count, depends how you want it to look like as if
segments counts per hit, or for multiple hits.

you should test it, but shaz require 2 images (empty and full) if you don't have those,
it throws undefined error I think, but didn't test that plugin.
Here's a mock up of what I'm trying to achieve
Spoiler: Mock up Mana Bar
1734381433451.png

So with each block would be a segment and once its used up it changes to the unlit version so the top row would be full mana, mid row would be 2/3, then 1/3 and so on... and on Shaz's plug in theres only room for one image per section (i.e. one image for MP bar, one image for HP bar)
as mine like MapHUD, the same values can be achieved for pieces.
instead of 5, use 9. so you have 1 piece set up (in rows or mixed)
Spoiler: 9 segments
piece1:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp*8/9)


piece 2:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp*7/9)

... continue
piece 7:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp*2/9)


piece8:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp/9)


piece9:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp

so with hudmaker, you have something like this (you can add the rows with
each segments how you want to set it how it works.)
assuming mp = 9 and not more.

as the BAR (MP) is empty and full for usage) so make sure you link them correctly.
as mine like MapHUD, the same values can be achieved for pieces.
instead of 5, use 9. so you have 1 piece set up (in rows or mixed)
Spoiler: 9 segments
piece1:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp*8/9)


piece 2:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp*7/9)

... continue
piece 7:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp*2/9)


piece8:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp/9)


piece9:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp

so with hudmaker, you have something like this (you can add the rows with
each segments how you want to set it how it works.)
assuming mp = 9 and not more.

as the BAR (MP) is empty and full for usage) so make sure you link them correctly.
are you doing all of this with HUDMaker? I'm confused as to where to write and put the code on 😐
yes, with SRD HUDMaker, it's quite useful to make HUDS in Battle or on Map.
activate the plugin, go into battle, open HUDMaker.
Sorry I feel like I wasn't clear, the initial goal is to have the mana bar act like the mana crystals on Hearthstone during the battle 😅So with every skill used in battle the tokens would be greyed out/dimmed out.
Oh yeah, if it was for battle, what I did would not be useful at all.

This is interesting, but I have no idea how you implemented that by just looking at these two event pages. Is this a map scene with each coin being an event? The layout is kinda what I want to have but inside a battle scene.
Well, that single event has 2 pages. In the first page, you soo it has no requirement, and a black coin. When you look at the second page, you see a gold coin with a variable in the condition, that is 1.

If you would use it on the map, and not in battle, you could have found a way to store the current mana in that variable.

Now, if you have 0 mana, the coin will be black, and if you have 1 mana, the coin will be gold.

That you'd need to do 5 times, if the max mana is 5. Each of those events would have the same condition, but each with the same variable being 1 larger than the last.

If you have 2 mana, now 2 coins would be gold, and with 3 mana, 3 coins would be gold.

But since you want that in a battle scene, you can forget about all that right away, because this only works on the map.

I hope the plugins are more helpful.

The game I'm making is pretty much Papers, Please with Slay the Spire mechanics 🙏
Oh snap. That looks interesting. I had to google the games. I have a set of card games too, as I mentioned, but I had to take battle out of the game completely to do it. My card game actually runs on the map directly.

Once you have a demo, I'd love to try it out. Even if it is just a few battles and there isn't any story yet. 😛

15 events? you could do it with 1 event, and little scripting as well for the value
to highlight, so you kind of overkill it 😀
I use javascript to make things easier for myself. This? This was pretty easy as it is. 😛

but the part I mentioned with HUDMaker = part of my map hud (or was ( version 2)).
as this was my hud (also drastic changed) but has segments.
but if you use it like hearts or segments (10hp, 10 segments) it looks also cooler 😉
but this is more a bunch of elements.
View attachment 325915

but you can achieve the same with your coins and 1 event instead of 15 on both sides,
so you control them somehow while its action button and not parallel 😛
That looks awesome. I will see if something like that can be usefull for my card game.

(Edit: Sorry for the double post. I meant to add this to the edit.)
yes, with SRD HUDMaker, it's quite useful to make HUDS in Battle or on Map.
activate the plugin, go into battle, open HUDMaker.
Sorry I was getting confused thinking I had to code what you posted 😅. I think there was a misunderstanding, the picture I posted isn't how the whole new gauge would look like but rather the 3 states that I want to cycle between.

Spoiler: Full Gauge
Mana.png

Spoiler: After spending 1 mana
Mana2.png

And so on until they are all greyed out to indicate the player has ran out of mana.

So when the mana is 3/3 it shows the first pic, when its 2/3 shows the second one and so on...

I've been trying to use conditions to show them when the mana is at the equivalent level, even set a variable to be the current MP value so I can make boolean conditionals with it and the moment the mana value changes the pics disappear

Oh snap. That looks interesting. I had to google the games. I have a set of card games too, as I mentioned, but I had to take battle out of the game completely to do it. My card game actually runs on the map directly.

Once you have a demo, I'd love to try it out. Even if it is just a few battles and there isn't any story yet. 😛
I do have a demo but it's played with items instead of cards xD I'm trying to get the build with the cards working properly before updating the demo
And so on until they are all greyed out to indicate the player has ran out of mana.

So when the mana is 3/3 it shows the first pic, when its 2/3 shows the second one and so on...

I've been trying to use conditions to show them when the mana is at the equivalent level, even set a variable to be the current MP value so I can make boolean conditionals with it and the moment the mana value changes the pics disappear
than the code of 9 segments still counts, as it is.
you can do it with 3 segments as well.

gauge you look for = 3 whie, and 3 gray.

than use the code like this:
Spoiler: code 3 segments
piece 1:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp*2/9)


piece2:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp/9)


piece3:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp

or as normal
Spoiler: gauge code single
max value:
$gameParty.leader().mmp

current value:
$gameParty.leader()._mp

so if you have 3 manapoints - 1, it shows the max value / 3.
so it works correct that way.
I do have a demo but it's played with items instead of cards xD I'm trying to get the build with the cards working properly before updating the demo
I'd love to try it out when it's done. Maybe you wanna try mine too? 😛
than the code of 9 segments still counts, as it is.
you can do it with 3 segments as well.

gauge you look for = 3 whie, and 3 gray.

than use the code like this:
Spoiler: code 3 segments
piece 1:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp*2/9)


piece2:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp - ($gameParty.leader().mmp/9)


piece3:
max value:
$gameParty.leader().mmp/9

current value:
$gameParty.leader()._mp

or as normal
Spoiler: gauge code single
max value:
$gameParty.leader().mmp

current value:
$gameParty.leader()._mp

so if you have 3 manapoints - 1, it shows the max value / 3.
so it works correct that way.
I'm still very confused because whenever I try to do with the first method, the other pieces disappear when I change the current value 😅 However, the Gauge Code Single code work just fine as intended!

Now if I were to have a state in game that increased my mana by 1 while the state is active, how would I go about showing that? I do have a bar with 4 segments, but it's only supposed to show up when the actor is under the effects of that state.
if the segments are 9, and make the condition of mmp = 9.
if its 6, than total of 6 will be showing, while the rest works as it should.

I need to check the code I had, or find the demo so you can check what
I did to make that hud I made of version 2 (as it is a complex one).

Original thread: https://forums.rpgmakerweb.com/threads/custom-mp-bar.173943/