Simple Bar Display with Variable control

Bonkers

Get ready to be Wowed!
Restaff
Joined
May 26, 2013
Messages
2,941
Reaction score
2,897
First Language
English
Primarily Uses
RMMV
Similar to Galv's http://galvs-scripts.com/category/rmvxa-scripts/audiovisual-effects/#post-521 I'd like a plug in that does the same features and works with a graphic to display a variable when called to do so.

I have seen Galv has started to convert his original scripts from ACE to MV, but I do not know if he plans to do this one.  Would it be too complicated\time consuming to ask for something like this?
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,545
Reaction score
3,715
First Language
Java's Crypt
Primarily Uses
RMMZ
Will it be a stand alone plug in or do I need a system plug in/base to activate it?
You will need the OrangeHud.js and the OrangeHudGauge.js (this second one I haven't made yet), nothing else.
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
A bar that displays a variable? It's been done already, I would use the search bar
 

Bonkers

Get ready to be Wowed!
Restaff
Joined
May 26, 2013
Messages
2,941
Reaction score
2,897
First Language
English
Primarily Uses
RMMV
A bar that displays a variable? It's been done already, I would use the search bar
I have for a month now.  I still don't see a plug in that does it for MV.  If you know of one please do share a link with me.  I'm still looking.
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
My apologies here is a script for you.

/*: * @plugindesc Makes a bar on the map that shows a variables progress. * @author Jeremy Cannady * * @param X * @desc X position of the gar. * @default 100 * * @param Y * @desc Y position of the bar. * @default 300 * * @param WIDTH * @desc Width of the bar. * @default 300 * @param HEIGHT * @desc Height of the bar. * @default 50 * * @param CURRENT VALUE * @desc Variable id # of the current value. * @default 1 * * @param MAX VALUE * @desc Variable id of the max value. * @default 2 * * @param FILL COLOR * @desc Fill color of the bar. Default is green. * @default #01DF01 * * @param BACK COLOR * @desc Background color of the bar(unfilled portion). Default is dark gray. * @default #424242 * * @help * Version 1.0 **/var COLD = COLD || {};(function(){ COLD.variableBar = { Parameters : PluginManager.parameters('variableBar'), alias: { Scene_Map:{ createDisplayObjects:Scene_Map.prototype.createDisplayObjects, updateMain:Scene_Map.prototype.updateMain }, }, }; COLD.Param = COLD.Param || {}; COLD.Param.variableBar = COLD.Param.variableBar || {}; COLD.Param.variableBar.x = COLD.variableBar.Parameters['X']; COLD.Param.variableBar.y = COLD.variableBar.Parameters['Y']; COLD.Param.variableBar.width = COLD.variableBar.Parameters['WIDTH']; COLD.Param.variableBar.height = COLD.variableBar.Parameters['HEIGHT']; COLD.Param.variableBar.currentValue = COLD.variableBar.Parameters['CURRENT VALUE']; COLD.Param.variableBar.maxValue = COLD.variableBar.Parameters['MAX VALUE']; COLD.Param.variableBar.fillColor = COLD.variableBar.Parameters['FILL COLOR']; COLD.Param.variableBar.backColor = COLD.variableBar.Parameters['BACK COLOR'];})();(function($){ $.prototype.createDisplayObjects = function() { COLD.variableBar.alias.Scene_Map.createDisplayObjects.call(this) this.createVariableBarSprite(); }; $.prototype.createVariableBarSprite = function() { this._variableBar = new Sprite(); this.addChild(this._variableBar); this._variableBar.bitmap = new Bitmap(Graphics.width, Graphics.height) }; $.prototype.updateMain = function(){ COLD.variableBar.alias.Scene_Map.updateMain.call(this); this.updateVariableBar(); }; $.prototype.updateVariableBar = function(){ var bitmap = this._variableBar.bitmap; var param = COLD.Param.variableBar; var rate = $gameVariables.value(param.currentValue) / $gameVariables.value(param.maxValue); var rate = (rate > 1)? rate = 1 : rate; if(rate){ bitmap.clear(); bitmap.fillRect(param.x, param.y, param.width, param.height, param.backColor); bitmap.fillRect(param.x, param.y, rate * param.width, param.height, param.fillColor); }; };})(Scene_Map); 
Check out this one too. Here.
 
Last edited by a moderator:

metronome

Veteran
Veteran
Joined
Aug 21, 2014
Messages
338
Reaction score
144
First Language
English (Sure!)
Primarily Uses
Ah...you are talking about THAT bar.

Just when I thought you are looking for the same stuffs like me >.<

I am looking for a plugin that will shows certain variable in a window (or bar, or what ever it is called) permanently, and as far as I know, all I get is plugin to show the number of gold the player has in a window permanently through out the game play.....
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
I visit plugin requests often. I always try to help people out. Only way to get better is to help someone else.
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
is it possible to format your script?

I want to use it but its only one long line :D
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

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'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top