DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,828
Reaction score
974
First Language
Chinese
Primarily Uses
N/A
Note
This plugin's available for commercial use

Purpose
Lets users set when/how ATB bars are shown on battler sprites

Games using this plugin
None so far

Configurations
* @param bar_show
* @desc Sets the code as bar_show determining when the battler ATB bars will be
* shown on the battler sprites
* It'll only be used by battlers not using <patb bar show: code> notetags
* Available bar_show codes:
* always - The battler ATB bars will always be shown on the enemy sprites
* defeat - The actor ATB bars will always be shown on the actor sprites
* while the enemy ATB bars will only be shown on the enemy
* sprites for those being defeated before
* This code will only be available if DoubleX RMMV Death Records
* is used
* Setting bar_show as an unavailable code means the battler ATB bars will
* never be shown on the battler sprites
* @Default always
*
* @param bar_w
* @desc Sets the width of the ATB bars shown on the battler sprites as bar_w
* It'll only be used by battlers not using any <patb bar w: w> notetag
* @Default 87
*
* @param bar_h
* @desc Sets the height of the ATB bars shown on the battler sprites as bar_h
* It'll only be used by battlers not using any <patb bar h: h> notetag
* @Default 16
*
* @param bar_x
* @desc Sets the x offset of the ATB bars shown on the battler sprites as bar_x
* It'll only be used by battlers not using any <patb bar x: x> notetag
* @Default 0
*
* @param bar_y
* @desc Sets the y offset of the ATB bars shown on the battler sprites as bar_y
* It'll only be used by battlers not using any <patb bar y: y> notetag
* @Default 0
*
* @param bar_opacity
* @desc Sets the opacity of the ATB bars shown on the battler sprites as
* bar_opacity
* It'll only be used by battlers not using any
* <patb bar opacity: opacity> notetag
* @Default 255
*
* @param bar_text_size
* @desc Sets the size of the description text of the ATB bars shown on the
* battler sprites as bar_text_size
* It'll only be used by battlers not using any <patb bar text size: size>
* notetag
* @Default 13

Notetags
* # Actor/Class/Weapon/Armor/Enemy/State Notetags:
* State notetags take the highest priority, followed by enemy, weapon,
* armor, class and actor
* The 1st notetag that's being read by the battler will be used
* 1. <patb bar show: code>
* - Sets the code determining when the battler ATB bars will be shown
* on the battler sprites as code
* Available codes are those of bar_show
* - Setting code as an unavailable code means the battler ATB bars
* will never be shown on the battler sprites
* 2. <patb bar w: w>
* - Sets the width of the ATB bars shown on the battler sprites as w
* 3. <patb bar h: h>
* - Sets the height of the ATB bars shown on the battler sprites as h
* 4. <patb bar x: x>
* - Sets the x offset of the ATB bars shown on the battler sprites as
* x
* 5. <patb bar y: y>
* - Sets the y offset of the ATB bars shown on the battler sprites as
* y
* 6. <patb bar opacity: opacity>
* - Sets the opacity of the ATB bars shown on the battler sprites as
* opacity
* 7. <patb bar text size: size>
* - Sets the size of the description text of the ATB bars shown on
* the battler sprites as size

Plugin Calls
* # Configuration manipulations
* 1. $gameSystem.patb.param
* - Returns the value of param listed in the plugin manager
* 2. $gameSystem.patb.param = val
* - Sets the value of param listed in the plugin manager as val
* - All $gameSystem.patb.param changes will be saved
* # Actor/Class/Weapon/Armor/Enemy/State manipulations
* 1. meta.patb_bar_show
* - Returns the code determining when the battler ATB bars will be
* shown on the battler sprites
* 2. meta.patb_bar_show = code
* - Sets the code determining when the battler ATB bars will be shown
* on the battler sprites as code
* - All meta.patb_bar_show changes can be saved if
* DoubleX RMMV Dynamic Data is used
* 3. meta.patb_bar_w
* - Returns the width of the ATB bars shown on the battler sprites
* 4. meta.patb_bar_w = w
* - Sets the width of the ATB bars shown on the battler sprites as w
* - All meta.patb_bar_w changes can be saved if
* DoubleX RMMV Dynamic Data is used
* 5. meta.patb_bar_h
* - Returns the height of the ATB bars shown on the battler sprites
* 6. meta.patb_bar_w = h
* - Sets the height of the ATB bars shown on the battler sprites as h
* - All meta.patb_bar_h changes can be saved if
* DoubleX RMMV Dynamic Data is used
* 7. meta.patb_bar_x
* - Returns the x offset of the ATB bars shown on the battler sprites
* 8. meta.patb_bar_y = x
* - Sets the x offset of the ATB bars shown on the battler sprites as
* x
* - All meta.patb_bar_x changes can be saved if
* DoubleX RMMV Dynamic Data is used
* 9. meta.patb_bar_y
* - Returns the y offset of the ATB bars shown on the battler sprites
* 10. meta.patb_bar_y = y
* - Sets the y offset of the ATB bars shown on the battler sprites
* as y
* - All meta.patb_bar_y changes can be saved if
* DoubleX RMMV Dynamic Data is used
* 11. meta.patb_bar_opacity
* - Returns the opacity of the ATB bars shown on the battler sprites
* 12. meta.patb_bar_opacity = opacity
* - Sets the opacity of the ATB bars shown on the battler sprites
* as opacity
* - All meta.patb_bar_opacity changes can be saved if
* DoubleX RMMV Dynamic Data is used
* 13. meta.patb_bar_text_size
* - Returns the size of the description text of the ATB bars shown
* on the battler sprites
* 14. meta.patb_bar_text_size = size
* - Sets the size of the description text of the ATB bars shown on
* the battler sprites as size
* - All meta.patb_bar_size changes can be saved if
* DoubleX RMMV Dynamic Data is used

Video

Prerequisites
Plugins:
1. DoubleX RMMV Popularized ATB Core
Abilities:
1. Little Javascript coding proficiency to fully utilize this plugin

Terms Of Use
You shall keep this plugin's Plugin Info part's contents intact
You shalln't claim that this plugin's written by anyone other than DoubleX or his aliases
None of the above applies to DoubleX or his/her aliases

Changelog
* v1.00d(GMT 0600 19-5-2021):
* 1. Fixed all notetags not working bug
* v1.00c(GMT 1700 16-9-2016):
* 1. Improved this plugin's effectiveness, efficiency and robustness
* v1.00b(GMT 1400 31-5-2016):
* 1. Improved this plugin's effectiveness, efficiency and readibility
* v1.00a(GMT 1500 19-2-2016):
* 1. 1st completed version of this plugin finished

DoubleX RMMV Popularized ATB Bar
 

Attachments

  • DoubleX RMMV Popularized ATB Bar v100d.js
    28.7 KB · Views: 1
Last edited:

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,828
Reaction score
974
First Language
Chinese
Primarily Uses
N/A
Updates

Code:
 *      v1.00b(GMT 1400 31-5-2016):                                           
 *      1. Improved this plugin's effectiveness, efficiency and readibility
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,828
Reaction score
974
First Language
Chinese
Primarily Uses
N/A
Updates

Code:
 *      v1.00c(GMT 1700 16-9-2016):                                           
 *      1. Improved this plugin's effectiveness, efficiency and robustness
 

falken14

Veteran
Veteran
Joined
Dec 6, 2016
Messages
67
Reaction score
39
First Language
English
Primarily Uses
Hi DoubleX, your PATB is working really well for me but I'm having trouble with this plugin, particularly:

* 1. <patb bar show: code>
* - Setting code as an unavailable code means the battler ATB bars [won't appear]

I just want to show ATB bars on the enemies and not the actors (who have them already in the status window). What is an example of 'unavailable code'? I've tried things like $gameSwitches.value(1) == true in the Actor notebox but the bar still shows up on the actor.
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,828
Reaction score
974
First Language
Chinese
Primarily Uses
N/A
Because of these:
Code:
* @param bar_show
* @desc Sets the code as bar_show determining when the battler ATB bars will be
* shown on the battler sprites
* It'll only be used by battlers not using <patb bar show: code> notetags
* Available bar_show codes:
* always - The battler ATB bars will always be shown on the enemy sprites
* defeat - The actor ATB bars will always be shown on the actor sprites
* while the enemy ATB bars will only be shown on the enemy
* sprites for those being defeated before
* This code will only be available if DoubleX RMMV Death Records
* is used
* Setting bar_show as an unavailable code means the battler ATB bars will
* never be shown on the battler sprites
Code:
* 1. <patb bar show: code>
* - Sets the code determining when the battler ATB bars will be shown
* on the battler sprites as code
* Available codes are those of bar_show
* - Setting code as an unavailable code means the battler ATB bars
* will never be shown on the battler sprites
Setting code in <patb bar show: code> as anything other than always and defeat will cause the ATB bar to not appear for the notetag owners.
In your case, things like $gameSwitches.value(1) == true doesn't work because the notetag won't be able to read properly.
You can try something like <patb bar show: false> for all actors, and the ATB bars shouldn't shown on their sprites, which is what you want :)
 

falken14

Veteran
Veteran
Joined
Dec 6, 2016
Messages
67
Reaction score
39
First Language
English
Primarily Uses
Thanks for your quick reply. Hmm, I did try <patb bar show: false> in the Actor notebox initially and it didn't remove the bar. I tried it again on all actors and still appears. I also put <patb bar show: false> tag in a state notebox and added it as a passive state to the actor but it still appears....
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,828
Reaction score
974
First Language
Chinese
Primarily Uses
N/A
Updates
Code:
 *      v1.00d(GMT 0600 19-5-2021):                                           
 *      1. Fixed all notetags not working bug
 

Latest Threads

Latest Posts

Latest Profile Posts

Make a Game in RMMZ Streams are going to remain in hiatus this week. Too much to do! 4 things will be announced on Monday though! Look forward to that.
Typed a long-ish reply to a post... forgot to actually HIT the post button, and moved to a different page.... finally noticed, don't remember what all I had typed and don't feel like trying to re-type it all.... smh....
Their tactics are evolving. They've learned to call for help when cornered. Never trust a mammal!
Good morning all. I still have a post up on video editing for cinematic trailers. Please make sure to check that out and give me a message as its still active in offers.
Hey everyone! I'm back :D

Snow White? More like Snowhere to be seen amiright? Hahaha I'm so sorry!! :kaocry:

Forum statistics

Threads
112,371
Messages
1,067,841
Members
146,017
Latest member
Anselmo00
Top