DoubleX RMMV Popularized ATB Countdown

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,773
Reaction score
938
First Language
Chinese
Primarily Uses
N/A
Note


This plugin's available for commercial use


Purpose


Lets users set some states updating turns per specified seconds


Games using this plugin


None so far


Notetags

* # State Notetags:
* 1. <patb countdown: sec>
* - Sets the state to have its turn updated every sec seconds
* - Every second in sec only consists of frames with atb updates



Plugin Calls

* # Data State manipulations
* 1. meta.patb_countdown
* - Returns the number of seconds per state turn update
* - Those seconds only consist of frames with atb updates
* 2. meta.patb_countdown = sec
* - Sets the number of seconds per state turn update as sec
* - Every second in sec only consists of frames with atb updates
* - All meta.patb_countdown changes can be saved if
* DoubleX RMMV Dynamic Data is used
* # Battler manipulations
* 1. patb_countdown_clock[stateId]
* - Returns the countdown clock, measured in frames, of state with id
* stateId
* - The number of frames per second is hardcoded as 60 by default
* 2. patb_countdown_clock[stateId] = frames
* - Sets the countdown clock, measured in frames, of state with id
* stateId, as frames frame
* - The number of frames per second is hardcoded as 60 by default
* 3. patb_countdown_freeze[stateId]
* - Returns whether the countdown of a state with id stateId's frozen
* 4. patb_countdown_freeze[stateId] = boolean
* - Sets the countdown of state with id stateId to be frozen if
* boolean is true



Configuration

DoubleX_RMMV.PATB_Countdown = {

/* Sets something to happen when the turn of the countdown state state
* owned by the battler calling on_countdown_update decreases
* on_countdown_update will be bound to the battler upon use
*/
on_countdown_update: function(state) {
// Uses DoubleX RMMV State Triggers to trigger countdown update effects
//var GBB = DoubleX_RMMV.State_Triggers.Game_BattlerBase;
//GBB.execStateTriggers.call(this, state.id, "turn");
//

// Applies 10 hp damage to the state owner per countdown update
this._result.clear();
this._result.success = true;
this.gainHp(-10);
this.onDamage(10);
this.startDamagePopup();
if (this._hp <= 0) { this.performCollapse(); }
} // on_countdown_update

}; // DoubleX_RMMV.PATB_Countdown



Video








Note that this plugin doesn't show the state turn counter, which is shown by Yanfly Engine Plugins - Buffs & States Core in this video


Prerequisites


Plugins:


1. DoubleX RMMV Popularized ATB Core


Abilities:


1. Decent 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.00c(GMT 0700 20-8-2016):
* 1. In sync with the latest DoubleX RMMV Popularized ATB Core version
* v1.00b(GMT 0400 16-7-2016):
* 1. Changed auto removing timing of countdown state to "patb_countdown"
* 2. Increased this plugin's compatibility and robustness
* v1.00a(GMT 0600 6-2-2016):
* 1. 1st testing version of this plugin finished



DoubleX RMMV Popularized ATB Countdown


View attachment DoubleX RMMV Popularized ATB Countdown v100c.rar
 
Last edited by a moderator:

DoubleX

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

Code:
 *      v1.00b(GMT 0400 16-7-2016):                                           
 *      1. Changed auto removing timing of countdown state to "patb_countdown"
 *      2. Increased this plugin's compatibility and robustness
 

DoubleX

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

Code:
 *      v1.00c(GMT 0700 20-8-2016):                                           
 *      1. In sync with the latest DoubleX RMMV Popularized ATB Core version
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Ami
What do you think about the Wood Bridge inside of Volcano?
Yet another gaming question, i'm currently playing Last of Us 2 and want to get another game to play next but can't decide between Ghost of Tsushima, Miles Morales & Jedi Fallen Order. After the latest mandalorian i AM on a star wars kick, but i also LOVED the last spiderman game that prequels Miles Morales. Ghost of Tsushima is the bottom of my list but i heard it was AWESOME. Just want a good story & fun gameplay.
I checked out Genshin Impact gameplay out of curiosity. I can't believe it's available as a mobile game too. Smooth animation, great music, and stellar sound effects (the ambient sounds are pretty detailed).

I'm flabbergasted to see games have becoming more and more advanced. Maybe also because I'm oblivious to current trend for a long time, it almost feel like I'm being sent into distant future. xD
xDRAGOONx wrote on WaywardMartian's profile.
Your artwork is amazing!!!
:ewat:
Stream will be live shortly with a session of the Interactive Text Adventure! Feel free to drop by!

Forum statistics

Threads
105,669
Messages
1,015,412
Members
137,344
Latest member
Zindasan0078
Top