Advice Needed - Creating a Baten Kaitos-Style Battle System

Hello Folks!

I have a rather crazy request to submit. I’m looking for some insight/advice on how to build a timer-driven, combo-based battle system loosely inspired from Baten Kaitos: Eternal Wings and the Lost Ocean. So far eventing the Battle GUI hasn’t been a challenge (I swear SumRndmDde deserves a medal!). The mechanics, though… that’s another story, and this is where I need your help.

Note: I often see plugin requests for various battle systems, however in this case I want to see how far I can go using RPG Maker's functions (and eventually yanfly's) as this is also a bit of a learning point for me.

Here’s how I want the flow of combat to look like:


-------------------------------Outside of Battle-------------------------------

0. Actors can equip up to 6 skills and items while outside of battle​

----------------------------------During Battle---------------------------------

  1. When an actor’s turn comes up, a small window is displayed with all the skills equipped to it
  2. At the same time, a timer is launched, with a duration based on the actor’s agi. While this timer is running, the player can input the equipped skills/items into a combo bar
  3. While the timer is running, the player also selects the targets of the action. This can be either enemies OR allies, and the more enemies are selected, the higher the skill cost will be
  4. Once the desired combo is input and targets selected, the player presses the “action” button and the game executes the skill chain on the selected targets, provided they have enough mana
  5. If the timer runs out before the player confirms the action, the actor’s turn will be passed and the next actor/enemy begins their turn

For reference, I am using the following plugins:

  • Yanfly’s STB Plugin to schedule battle turns
  • Yanfly’s Target Core and Selection Control for targeting
  • Bobstah’s Advanced Battle Commands to allow only one Actor Command (named “Action”) which points to a custom skill
  • BARREY_CommonEventsInBattle to allow common events to run during battle

Currently, here are the challenges I face:

A. How can I skip an actor’s turn? I have looked around and I see no proper event/script to forcibly skip an actor’s turn once the timer has run out (the timer is set using the setTimeout() function)​

B. How can I get a skill to target the specific enemies selected? My approach so far was to store the TroopIDs in variables, then use targets.push($gameTroop.aliveMembers[TroopId]) in a <Custom target Eval> (see Yanfly’s Target Core) in the attack skill, however this does not seem to work. Is there another method possible?​

C. How can I skip the default Target Selection phase entirely? As the targets are already chosen while the timer was running, when the “Action” command is pressed, I want the skill to immediately execute. How does one go about that?​

D. I currently have an issue where if I set a <Custom Requirement> notetag on the Action skill, it won’t update during the input phase if the condition changes (e.g. as a test, I set a common event to slowly raise the value of a variable. <Custom Requirement> was that for the variable to be >= 10. When that value is reached, the command remains sealed). How can I get around this?​


Any help, insight, or advice would be greatly appreciated. Again, I am aware this is a tall request; that said I am still figuring stuff out when it comes to RPG Maker, so if there is a better way of achieving the above or someone has already toyed with a similar system, I’m eager to learn.

Cheers,

Trasdill

Original thread: https://forums.rpgmakerweb.com/threads/advice-needed-creating-a-baten-kaitos-style-battle-system.93842/