DoubleX RMMV Popularized ATB Core

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,748
Reaction score
911
First Language
Chinese
Primarily Uses
N/A
Updates
JavaScript:
 *      v1.03d(GMT 0500 20-5-2020):
 *      1. Fixed the party escape command being selectable even when it won't
 *         be effective
 

Oscar92player

Veteran
Veteran
Joined
Jul 26, 2012
Messages
512
Reaction score
227
First Language
Spanish
Primarily Uses
RMMV
Updates
JavaScript:
 *      v1.03d(GMT 0500 20-5-2020):
*      1. Fixed the party escape command being selectable even when it won't
*         be effective
Thanks for the update! I've tried the plugin, and it works, but... the Party Window does something strange with the commands when selecting the Escape one, during the action taking place in battle (I think it blinks?). I've uploaded a video:
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,748
Reaction score
911
First Language
Chinese
Primarily Uses
N/A
It's normal, because when the party escape command becomes unavailable when it's selected, the party command window has to be reset and select among available commands, so the blinks are caused by the party command window automatically selecting the fight command in this case :)
 

Oscar92player

Veteran
Veteran
Joined
Jul 26, 2012
Messages
512
Reaction score
227
First Language
Spanish
Primarily Uses
RMMV
It's normal, because when the party escape command becomes unavailable when it's selected, the party command window has to be reset and select among available commands, so the blinks are caused by the party command window automatically selecting the fight command in this case :)
I see, it is the only way to make the player unable to select the Escape command while the action is taking place, and since the enemies on the video are attacking one by one in the same turn, the cursor blinks...

I was thinking... could it be possible, when opening Party Window, to pause the battle entirely? Even when the ATB options are setup to be "full", "act", "target", and "item"? That way, the user will have some kind of "Pause" in the middle of the battle, and also, it will allow to select the commands without problems without actions taking place in the background.
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,748
Reaction score
911
First Language
Chinese
Primarily Uses
N/A
Updates
JavaScript:
 *      v1.04a(GMT 1200 20-5-2020):
 *      1. Added wait_party_cmd
 

Oscar92player

Veteran
Veteran
Joined
Jul 26, 2012
Messages
512
Reaction score
227
First Language
Spanish
Primarily Uses
RMMV
Updates
JavaScript:
 *      v1.04a(GMT 1200 20-5-2020):
*      1. Added wait_party_cmd
Thank you so much, Double X, it works pretty well! This is a big improvement, and now the Party Window and the commands inside it will work better than ever!
 

Lemaire

Villager
Member
Joined
Apr 24, 2019
Messages
7
Reaction score
5
First Language
Indonesia
Primarily Uses
RMMV
Hello DoubleX, I have a question.
I have a skill that increase selected target ATB to max, and I tried using these plugin calls :
target.patb_val.atb = target.max_patb_val

Yes, targets ATB is filled but it stuck at max, forever, unable to pick a command.
Any solution for this ?
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,748
Reaction score
911
First Language
Chinese
Primarily Uses
N/A
Updates
JavaScript:
* v1.04b(GMT 1400 15-6-2020):
* 1. Added battler manipulation plugin call fill_up_patb_val()
Hello DoubleX, I have a question.
I have a skill that increase selected target ATB to max, and I tried using these plugin calls :
target.patb_val.atb = target.max_patb_val

Yes, targets ATB is filled but it stuck at max, forever, unable to pick a command.
Any solution for this ?
You'll have to use the new fill_up_patb_val() instead:
JavaScript:
* 4. patb_val.atb = val
* - Set the battler's atb value as val
* (v1.04b+)Use fill_up_patb_val() instead if val = max_patb_val in
* non-delay fill code and val = 0 in delay fill code, or the
* battler would never be ale to input or execute actions
I've to admit that patb_val.atb = val is a poorly designed plugin call, and the only way for me to fix it quickly without breaking something else is to make a new plugin call for the special case of using max_patb_val as val :)
 

Lemaire

Villager
Member
Joined
Apr 24, 2019
Messages
7
Reaction score
5
First Language
Indonesia
Primarily Uses
RMMV
@DoubleX

Sorry for bothering again,
It seems atb reset feature isn't working? (Both Core and Add-on plugin)

Inserting something (let's say "agi", so battler has its ATB resetted to base agi) on atb_reset_code didn't do anything. Also putting something like <= patb reset: 50> to skill notetag doesn't do anything at all, even though add-on installed. Am I missing something?
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,748
Reaction score
911
First Language
Chinese
Primarily Uses
N/A
@DoubleX

Sorry for bothering again,
It seems atb reset feature isn't working? (Both Core and Add-on plugin)

Inserting something (let's say "agi", so battler has its ATB resetted to base agi) on atb_reset_code didn't do anything. Also putting something like <= patb reset: 50> to skill notetag doesn't do anything at all, even though add-on installed. Am I missing something?
Unfortunately, right now atb_reset_code can't be used that way:
JavaScript:
 * @param atb_reset_code
* @desc Sets the code of the reset atb mechanism as atb_reset_code for
*       additional effects
*       It'll only be used with non-delay atb_reset_code
*       The atb refill will always be freezed while not movable
*       Available code for the atb reset mechanism for additional effects:
*       clear - The atb will be emptied when becoming unmovable as well
*       No additional effects will trigger if atb_reset_code doesn't return
*       an available code
* @default clear
It means that atb_reset_code only cares whether it's clear or something else.
If you want to use agi, you may want to place this snippet right before the core plugin(and especially above the reset addon):
Code:
Game_Battler.prototype.reset_patb_val = function() {
    if ($gameSystem.patb.atb_fill_code === "delay") {
        this._patb_val.atb += this._max_patb_val - this.agi;
    } else {
        this._patb_val.atb = this.agi;
    }
    this._patb_val_change.atb = true;
};
As for <= patb reset: 50>, I failed to reproduce the issue, as the ATB value of the actor after using such a skill is indeed about 50. I'm afraid that you'll have to give me your project(you can do so via pm) so I can know what's really going on :)

I think I'm going to expand the atb_reset_code in the reset addon(so things like agi can also be used), but first I want to ensure there's no issues in the reset notetags first :D
 

Cronnicossy

Warper
Member
Joined
Jun 8, 2020
Messages
1
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hello DoubleX!

I really love your ATB Plugin.
I'm suprised to see you're still active.

I know it's been a while, but I'm just wondering if you were interested in somehow making
a compatibility fix for YanFlys Actor Party Switch Plugin.

It looks like it works almost perfect, but once you actually Swap a party member out, all Actors ATB stops filling and freezes. The enemy still acts though. So the game softlocks.

I don't know how hard, or how easy it is to fix this, but I thought I'd mention it.

Thanks for the great plugin regardless!

EDIT: I didn't know you had new ATB Plugins up!
That's really cool. I will look into them, but what I'm really looking for is Actor Party Swap mid-battle. If you're interested in making that, I'd love to see it!

EDIT 2: WOW. Just found your github with compatibility of a differentp lugin that does exactly what I wanted. Nevermind my entire post, thank you!!
 
Last edited:

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,748
Reaction score
911
First Language
Chinese
Primarily Uses
N/A
I know it's been a while, but I'm just wondering if you were interested in somehow making
a compatibility fix for YanFlys Actor Party Switch Plugin.

It looks like it works almost perfect, but once you actually Swap a party member out, all Actors ATB stops filling and freezes. The enemy still acts though. So the game softlocks.
I wanted to fix that, but as it's a commercial plugin and I'm not supposed to have accesses to it, I won't be able to fix that.

EDIT: I didn't know you had new ATB Plugins up!
That's really cool. I will look into them, but what I'm really looking for is Actor Party Swap mid-battle. If you're interested in making that, I'd love to see it!

EDIT 2: WOW. Just found your github with compatibility of a differentp lugin that does exactly what I wanted. Nevermind my entire post, thank you!!
I hope that ATB system plugin(still under development but is already working) can fulfill your needs, but be warned: That plugin's much, much harder to use than this PATB, as the former mainly addresses complicated and convoluted use cases for advanced users(even though I still have beginners in mind when designing the user sections and have tried to make it even more user-friendly), instead of the latter mainly addressing easy, simple and small use cases for most users(but thus a lot more limited) :)

P.S.: Btw, for those interested in that ATB system plugin, you can try this(it's a demo as it'd be too difficult to fathom this overengineered beast otherwise) ;)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Success, my character has harnessed the power of the particle, and now she leaves a speed streak.:kaopride:



I'm breaking up with QSprite. :kaolivid:
Ami
--- Spoiled Food ---

M.Knight: Oh,no! the Bread has been Mold!
Chef: It's not Mold,it's in Fermentation.
M.Knight: Are you sure?
Chef: Y'know Cheese? It's safe to eat
(Chef eat the Moldy Bread,after that he take into the Hospital with Green Face)
Suddenly I remember the days when I create something just by pure wild imagination. I wasn't thinking about concept, structure, or anything else. Just create (even if it's unfinished in the end). Somehow I kinda want to have that wild imagination again. :D
Google "The Great Stink"
Enjoy.

Forum statistics

Threads
104,335
Messages
1,005,636
Members
135,849
Latest member
Eryops
Top