Need Scripter's Help for Plugin Fix

Whiskeytanggo

Warper
Member
Joined
Jun 28, 2017
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hello!

This is my first post.

If possible, I would really appreciate some help editing this Health Bar plugin that I found here:

https://forums.rpgmakerweb.com/index.php?threads/health-bar-on-map.65217/



I'm trying to do 2 things:

1. Add a Mana Bar below the Health Bar

&

2. Erase the window behind the Health Bar so that only the Health Bar itself is visible


Any help with this would be greatly appreciated, and I'm sure others would enjoy this as well.

Thanks!




Here is the plugin script in case you don't feel like downloading it:



/*:
* @plugindesc HealthBar
* @author mrcopra
*
* @Help
*
*/
(function() {


//////////////////////////////////////////////////////////////////////////////////////

var _Scene_Map_start = Scene_Map.prototype.start;
Scene_Map.prototype.start = function() {
_Scene_Map_start.call(this);
this._myWindow = new My_Window(100,100);
this.addWindow(this._myWindow);
};

var _Scene_Map_update = Scene_Map.prototype.update;

Scene_Map.prototype.update = function() {
_Scene_Map_update.call(this);
this._myWindow.refresh();
};



function My_Window() {
this.initialize.apply(this, arguments);
}

My_Window.prototype = Object.create(Window_Base.prototype);
My_Window.prototype.constructor = My_Window;


My_Window.prototype.initialize = function(x, y) {
Window_Base.prototype.initialize.call(this, 0, 0, this.windowWidth(), this.windowHeight());
this._value = -1;
this.refresh();
};

My_Window.prototype.refresh = function(){

this.contents.clear();
this.drawActorHp($gameParty.leader(), 0, 0, 200)
};

My_Window.prototype.windowWidth = function(){
return 240;
};
My_Window.prototype.windowHeight = function(){
return 80;
};

///////////////////////////////////////////////////////////////////////////////////////////////
})();
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top