Piecemeal ATB Battle System

Hello again, gang,

     This is an open call to any talented coders who might want to take a whack at my idea of a fun and perhaps an as of yet unrepresented battle system. This system would look something like a cross between Deep Dungeons of Doom and Child of Light. So what does it need to do?

Free Combat AKA No Turn Order: Enemies and the Player party alike are limited by recovery timers, not turn orders or even the typical ATB 'Bar'. 

No Pauses in the action: Tying into the above, there should be absolutely no pauses in the action. The use of the classical command windows will likely be optional but even if a player is browsing these for a skill, item or otherwise, enemies are still making actions.

Hotkey Gameplay: This system would ideally lend itself to being played without the typical menus being navigated. Instead, the player would customize a loadout of skills which would be mapped to conveniently placed keys or buttons if using a gamepad. With the goal of the system to be a very real-time experience, the rhythm of combat would have a high skill ceiling but an actiony feel that would be a lot of fun. 

A more reaction based experience: Players will be in constant management of their main character and the other 3 members of their core party. With enemies attacking whenever they are able such features as Active Dodges, blocks and other reactionary combat features would be a must. 

Recovery Time VS Delivery Time: The concept of Recovery time can be applied to two uses in-game. One is known as 'balance' and the other 'equilibrium'. Generally speaking, balance dictates physical speed or the amount of time it takes before you can fire off another physical attack. Likewise, equilibrium governs mental, spiritual or most likely spell related abilities. Each of these types of Recovery time is independent of each other, meaning that a character might for instance, strike out with a kick while pushing at the enemy with a quick mental thrust. 

     Recovery times would vary based on attributes like Dexterity (AGI) or Intelligence. As well as other factors depending on the final design. 

          Delivery Time: This would be the amount of time a skill takes to actually execute. If a soldier can slash out with his sword once every 2 seconds but it also takes a second of ramp-up time and about half a second to hit, his Delivery Time was about 1.5 seconds and the total attack time was 3.5! This should present plenty of opportunities for the strategy in the battle system to shine through, as certain enemies or allies may present higher risk, reward or otherwise. 

Additional Possibilities:  Other possibilities in this system include, of course, states, most of which would somehow stun (stopping recovery time momentarily) or otherwise alter this free-turn order. They might increase delivery time (perhaps if a character was chilled). Optimal windows of opportunity might be implemented so that certain enemies must be hit within a timeframe of their own windups in order to inflict any damage at all, extra damage or possibly to enact % chances for disarming or other effects. 

In short, I can see a lot of potential.

The bottom line is this. I will take any and all offers of help whether simply by advice, skype chats or Piecemeal work which I will be more than happy to provide negotiated compensation for. One day in the hopefully not too distant future, this system may be included in a commercial game. In the case that this ideal is realized, any contributors will be remembered on payday 🙂
If I get your idea, you want:

1. A full auto(except that only 1 action can be executed at a time, as executing more than 1 action at a time is nearly impossible for almost all scripters to implement) ATB system where the atb bar of all battlers are always instantly filled(unless the atb regain is interrupted).

2. Skills/items having both charge(time between right after confirming an action and executing it) and cooldown(time between right after finishing exeucting an action and picking another action) time, which are determined by the user's stats.

3. Skills/Items that can be called via hotkeys directly.

4. 2 independent atb bar types(again, except that only 1 action can be executed at a time), used for physical and mental skills/items respectively.

5. States that can stop the atb bar from refilling or manipulate the charge or cooldown time.

6. Battlers that can be more vulnerable while charging or cooling down.

For having 2 atb bar types, it can certainly be done by a willing and proficient atb system scripter, but the toughest issue is the performance(mainly average fps and its stability). In general, a single atb bar type already costs significant resources to run unless the machine's really powerful, and constantly running 2 atb bar types together can reduce the performance drastically.

I'm still just a nub scripter, but right now I can only reduce the cost of running 1 atb bar type to be roughly 10 average fps in my machine, and the optimization process was already painful as hell for me(it was about 20 average fps lol). If I were to implement 2 atb bar types, I'd expect more than 20(or probably even 30 as I'd have to check which skills/item uses which atb bar type) average fps drop on my machine, which can make the performance really ugly.

Of course, if you can find a willing scripting prodigy, things can be different though 🙂

For the "more reaction based experience", it's basically enemy action and targeting ai things, which can be done via either extremely brilliant battle eventing or enemy action and targeting ai scripts(or even both).

For everything else, you may want to try the below scripts:

Yanfly's Ace Battle Engine

https://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/

YSA Battle System - Classical ATB

http://www.rpgmakervxace.net/topic/865-ysa-battle-system-classical-atb/

DoubleX RMVXA Bug Fixes to YSA Battle System: Classical ATB

http://www.rpgmakervxace.net/topic/21110-doublex-rmvxa-bug-fixes-to-ysa-battle-system-classical-atb/

Yanfly's Skill Restrictions

https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-restrictions/

Actor Personal Hotkeys

http://www.rpgmakervxace.net/topic/18331-actor-personal-hotkeys/

DoubleX RMVXA Compatibility Fixes to YSA Battle System: Classical ATB

http://www.rpgmakervxace.net/topic/21113-doublex-rmvxa-compatibility-fixes-to-ysa-battle-system-classical-atb/

DoubleX RMVXA ATB Addon to YSA Battle System: Classical ATB

http://www.rpgmakervxace.net/topic/25559-doublex-rmvxa-atb-addon-to-ysa-battle-system-classical-atb/

DoubleX RMVXA CATB Clear Addon to YSA Battle System: Classical ATB

http://www.rpgmakervxace.net/topic/21157-doublex-rmvxa-catb-clear-addon-to-ysa-battle-system-classical-atb/

DoubleX RMVXA Cooldown Addon to YSA Battle System: Classical ATB

http://www.rpgmakervxace.net/topic/21158-doublex-rmvxa-cooldown-addon-to-ysa-battle-system-classical-atb/

DoubleX RMVXA Wait Addon to YSA Battle System: Classical ATB

http://www.rpgmakervxace.net/topic/24375-doublex-rmvxa-wait-addon-to-ysa-battle-system-classical-atb/

P.S.: Battler's vulnerability while charging or cooling down can be done via the skills/items' custom damage formulae.

The below checks if the target's charging:

b.ct_catb_value > 0The below checks if the target's cooling down:

b.cd_catb_value > 0The latter can only be used if you use the cooldown addon.
I'll have to set aside some time to really study those scripts and see if I can get them to do what I'm after. Thank you for your contribution to the puzzle! That being said, I'll make something clear...

There doesn't actually have to be any sort of ATB Bar, just a calculation of 'Recovery" and "Delivery"(Attacking)

The cadence of my battle system would be very active and perhaps this is where many script calculations are going on and therefore would cause FPS problems? To further illustrate my idea I'll put it down in more detail.

Battle Starts > If no preemptive or surprise attacks going on, all combatants begin at default recovery times for their particular stats. 

Combat Begins > Depending on how quick the player is and whether any enemies have 'balance' or 'equilibrium', the fighting starts. Every few seconds a combatant is potentially queuing up a simple attack or starting the channel for a spell, active dodging or guarding another combatant. If you were to watch the Deep Dungeons of Doom video just imagine four friendly combatants and X amount in enemies. It wouldn't necessarily run that quickly but it would be much more frenetic than the usual RPGmaker combat. 

Granted, I know so little about scripting or even how scripting and the actual program work together that I may be overreaching. I do have this gut feeling it's really just down to coding the formula for how stats work, setting up the recovery and cast times like can_act? gates to keep the pace, and then moving on to getting the visual representation on board. At this point my team and I have agreed that we are completely out of our depth and we're willing to hire a prodigy, should it take that.
So the atb bars can be hidden or even disabled, which is good performance wise, as one of the biggest average fps killer is drawing the atb bars, and the calculations behind the atb bars are usually much, much cheaper.

So I've misunderstood the recovery time part. You didn't ask for instant atb recovery, but just a normal atb recovery depending on some battler stats. I'd say it's a given in any decent atb system.

YSA-CATB also lets users set the starting atb value for normal, preemptive and surprise start.

If you want battlers to be able to execute an action that doesn't need charging while charging another one, I think it can be done, but it'd probably rather hard to pull off nicely, as I can already think of some edge cases that are extremely prone to serious bugs.

Right now what I can think of is to add Tsukihime's Battle Reactions to my last reply(put it above the compatibility fix):

http://www.rpgmakervxace.net/topic/18706-battle-reactions/

It gives battlers the ability to execute actions if they're targeted by another battler's actions, but a battler can still only input 1 action at a time unless force actions are added into the mix. So far I haven't received any compatibility issue yet(of course it doesn't mean there's none).

About the overall atb system structure, it'll likely be something like this if the Model-View-Controller(MVC) pattern's applied:

Model(Mainly BattleManager, Game_BattlerBase and Game_Battler) - ATB recovery, charge time, cooldown time, action points and some other calculations, in addition to the calculations for the default stuffs

View(Mainly Sprites, Viewports and Windows) - ATB bars(atb recovery, charge time, cooldown time) and some other drawing, in addition to the drawing for the default stuffs

Control(Mainly BattleManager and Scene_Battle) - Frame update(atb recovery, charging time, cooldown time, global atb clock calculation updates, atb bars and windows visual updates), real time action execution(calculation and display stuffs are still done by Model and View respectively), turn start(it usually does the turn end stuffs as well as they're in the same frame)execution, turn length(in number of actions or frame or something else) checking, turn count update(increase by 1 when the atb clock reaches the turn length), actionable battler list update and some other controls, in addition to the control for the default stuffs.

Usually the interaction between Model, View and Controller per frame here is:

1. Control first asks some parts of Model to calculate something and return the results back to Control

2. Control asks some parts of View to display the results returned by Model

What those some parts and something are are controlled by Control.

Finally, wishes you the best of luck for finding a willing scripting prodigy 🙂
You might be interested in this new atb system:

http://forums.rpgmakerweb.com/index.php?/topic/38722-doublex-rmvxa-enhanced-ysa-battle-system-classical-atb/

Original thread: https://forums.rpgmakerweb.com/threads/piecemeal-atb-battle-system.37251/