Health bar on map?

Hmmm, If i understand correctly, You don't prefer use switch id.


You want it like choice in main menu or in options menu or plugin command ?!!
... or plugin command ?!!



That may be the most flexible, if you mean passing a Switch ID and state to the plug-in..? If that causes problems, it would be possible to use a Switch ID, or have somewhere easy to edit in the plug-in itself where the ID could be modified..? As long as there was a clear comment to that effect in the code, it would be easy enough for me (and any other reasonable User...) to modify..? That may be the easiest way, to avoid rendering the thing too complex..? That would allow the use of any suitable Switch. A Comment along the lines of...


*/ The value 'xx' is to be replaced with the Switch ID to which this Plug-in will respond./*
sorry but I made it with a switch of your choice until i have solution of this.

View attachment HealthBar.js
@mrcopra...


No need for apologies; this looks fine..! Just one tiny detail... My Switch ID is '77'. Where exactly do I put '77' in the code, please..?


RMsCudJ.png



So close..!
Why do you want add the ID in script?!!


You can add it in plugin 

healthBar.jpg
Why do you want add the ID in script?!!...



By pure ignorance as to the usage of a plug-in..! This is the very first I've used, and it's very instructive.


It's working..! Marvellous..! I'm making a very basic RPG, using the Sample Maps as a starting point. Most of the time, I have no need of a Health Bar, but in my Overworld Map and a couple of others, I've a 'Step' counter which reduces HP with every step. In that case, it's useful (to the Player...) to have a visual indication of this reduction, and the Health Bar does this very well. It only shows the HP of the Party Leader, but that's enough for my game.


My original personal challenge was to make a game using only the standard components taken straight from the box; no plug-ins, no scripts. Yours is the first which has tempted me to use as a real Game improvement; I'm particularly seduced by its simplicity of use. Thanks again for taking the trouble to reply to my request. I've a Demo hosted on my Google Drive which I'll update this evening with the latest version (ver 0.4.9...) which will include this new feature, and you have, of course, been added to the Credits. I started out to do a simple game; it's now grown to well over sixty Maps..!


Well done, Sir, my hat is duly doffed; my thumb is up.


R91KekF.gif



Link to the Web version Game; the Credits are on the Hero's table at his Home...


Rachdale Cheese Demo ...
By pure ignorance as to the usage of a plug-in..! This is the very first I've used, and it's very instructive.


It's working..! Marvellous..! I'm making a very basic RPG, using the Sample Maps as a starting point. Most of the time, I have no need of a Health Bar, but in my Overworld Map and a couple of others, I've a 'Step' counter which reduces HP with every step. In that case, it's useful (to the Player...) to have a visual indication of this reduction, and the Health Bar does this very well. It only shows the HP of the Party Leader, but that's enough for my game.


My original personal challenge was to make a game using only the standard components taken straight from the box; no plug-ins, no scripts. Yours is the first which has tempted me to use as a real Game improvement; I'm particularly seduced by its simplicity of use. Thanks again for taking the trouble to reply to my request. I've a Demo hosted on my Google Drive which I'll update this evening with the latest version (ver 0.4.9...) which will include this new feature, and you have, of course, been added to the Credits. I started out to do a simple game; it's now grown to well over sixty Maps..!


Well done, Sir, my hat is duly doffed; my thumb is up.


R91KekF.gif



Link to the Web version Game; the Credits are on the Hero's table at his Home...


Rachdale Cheese Demo ...
I was trying for something similar. I can't seem to get it to work? my switch is set to 64 and i set the switch ID in the plugin to 64 as well.
I think i'm confusing myself.
I should just be able to make a control switch and have it set to that number in an event right? When I do that it doesn't seem to show anything.
Love the plug-in, it blocks the display name though for each map.
I was trying for something similar. I can't seem to get it to work? my switch is set to 64 and i set the switch ID in the plugin to 64 as well.
I think i'm confusing myself.
I should just be able to make a control switch and have it set to that number in an event right? When I do that it doesn't seem to show anything.
I'm having the same issue. Maybe an update blocked functionality for the plugin?
sorry for replying to a 3 year old post. but im very new to rpg maker and i would love to use a health bar on map too! may i know how do i use that js file u uploaded? i have no idea how to work with it
sorry for replying to a 3 year old post. but im very new to rpg maker and i would love to use a health bar on map too! may i know how do i use that js file u uploaded? i have no idea how to work with it
edit: nvm i got it working, its very nice!! however i wish i could make it appear only after the first map, and idk how to do that. How do i set the switch/switch id so i can put the switch id at the plugin command?

EDIT 2 : I FIGURED IT OUT NOW OMG ITS WORKING PERFECTLY THANK YOU
edit: nvm i got it working, its very nice!! however i wish i could make it appear only after the first map, and idk how to do that. How do i set the switch/switch id so i can put the switch id at the plugin command?

EDIT 2 : I FIGURED IT OUT NOW OMG ITS WORKING PERFECTLY THANK YOU

sorry for late respond but I am glad you fixed it ^^
yo how did you do it? i want something like that, but instead of health bar, a sanity bar without the numbers showing
If you dont mind, I am going to try and extend it to be used for NPCs and for other statuses like detecting if they see you 🙂
If you dont mind, I am going to try and extend it to be used for NPCs and for other statuses like detecting if they see you 🙂
sure, my plugins are open ;3
sure, my plugins are open ;3
I just about did it... still need to figure out the z-index issues but holy cow your script... with some tweaks and some borrowing from Nast_Text_Pop_Events.js helped out a ton to get it running per event.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/health-bar-on-map.65217/