Charge Turn Battle (CTB) System (Final Fantasy X / Tactics style)

Charge Turn Battle System
by
MobiusXVI

​
Release Notes
Feb 2015 - v. 1.0 Initial Release
Jul 2015 - v. 1.1 Customizable Turn Icons

Aug 2015 - v. 1.2 Beastiary Expansion
Jun 2023 - v. 1.4 Clean up code and reformat
Aug 2023 - v. 1.5 Beastiary Customization


Introduction
This script overhauls the default battle system and replaces it with a "CTB" system similar to Final Fantasy Tactics and Final Fantasy X. Battlers now use their speed to charge up a hidden turn gauge, and when it's full, they get a turn immediately. This causes turns to alternate in a semi-predictable order, making for a more strategic battle system.

Features
- Customizable "charge rate" formula: you can use any stat to determine turn order and adjust it to fit your experience curve
- Dedicated turn window so you'll always know whose turn is next.
- Weapons/Skills/Items can be set to boost/hamper speed when used, allowing you to create "quick attack" skills that let the user act sooner or "mega-death" skills that use up two turns.
- Designate specific enemies as "bosses" which will give them a special icon.
- Can customize the turn icons on a per actor or per enemy basis
- Customize the "escape" term
- Built-in "scan" skill that's easy to set up and use.
- Optional expansion to add icons for states, removing the boring state text.
- Optional expansion to add a beastiary


Screenshots
Standard battle system

Spoiler
7a34otfl3yl407izg.jpg
Battle System with "Status Icons" expansion
Spoiler
q1m27l1ln37om4nzg.jpg

Video of v1.2 in action!


New Beastiary (v1.5)
Spoiler
In-battle quick view
Battle%20Detail%20View.PNG


Large sprite viewing
Beastiary%20Sprite%20View.PNG


Stats and bio display
Beastiary%20Stats%20View.PNG


All element efficiency (unless you hide some!)
Beastiary%20Element%20View.PNG


All state efficiency (unless you hide some!)
Beastiary%20Status%20View.PNG

How to Use
Download the zip file below and unzip it. Import the EnemyIcons pictures into your project into the "pictures" folder.
Open the text file containing the script and copy/paste it into the script editor below all of the default scripts but above Main.


Download
Download everything you'll need: here

FAQ
Q. Can this do _______?
A. Maybe! Leave a post on the forum, and I might just add the feature if it can't already do it.


Credits and Thanks
- MobiusXVI, author
- TheRiotInside, for testing/feedback/suggestions
- Mudkicker, for suggesting customizable turn icons


License
This script is licensed under the MIT license, so you can use it for both commercial and non-commercial games!
Check the included license file for the full text.
Further, if you do decide to use this script in a commercial product, I'd ask that you
let me know via a post here or a PM. Thanks.
Actually, if you look into FF wiki's the CTB of FFX means conditional turn based... XD


Anyway, this seems nice... Can't really say anything else though as it's for XP...
Charge Turn is FFT and Conditional is FFX, they function differently 🙂
Can this be edited so that the turn bar on the side shows actor icons which are placed in the "Pictures" folder? Same for the enemy battlers.
Can this be edited so that the turn bar on the side shows actor icons which are placed in the "Pictures" folder? Same for the enemy battlers.
The enemy battlers already use icons from the pictures folder; there are some default ones included with the download. The naming convention is "enemy1", "enemy2", etc. As long as you don't change the names, you can edit those to be whatever you want. Keep in mind though that if you make them bigger, some of it will get cut off. As for actors, I could edit it to also look for icons, but it will take some time. 
Yeah, but it shows icons for enemy battler number 1, 2, 3 etc, right? I meant if it could show icons for enemy names in the database. Would be cool 😀
Yeah, but it shows icons for enemy battler number 1, 2, 3 etc, right? I meant if it could show icons for enemy names in the database. Would be cool 😀
Ah, ok. I gotcha. I'll take a look and see what I can come up with.
Hey Mudkicker, I just released v1.1 which adds customizing the turn icons on a per actor and/or per enemy basis! 
Hey Mudkicker, I just released v1.1 which adds customizing the turn icons on a per actor and/or per enemy basis! 
Exactly what I had in mind, though I can't seem to get enemy icons working. I've tried setting a different suffix for enemies but it still showed me the 32x32 box.
Exactly what I had in mind, though I can't seem to get enemy icons working. I've tried setting a different suffix for enemies but it still showed me the 32x32 box.
There was a bug. It was trying to use the enemy name plus prefix when looking for filenames. So instead of "Ghost_Turn_Order_Icon", it was looking for "A: Ghost_Turn_Order_Icon" or something like that. It's been fixed and posted to Github.
Version 1.2 released! Adds the beastiary expansion as well as simplifying the status icon expansion. Check out all the great new features! 
I just installed the script today and the charge system looks perfect for the game I'm making. However, when I go to open the game, I get this error:

script_error_2_by_malfunit-d958us1.png


Am I doing something wrong?

EDIT: I just looked up and saw that this is an XP script. I'm using Ace. Oops. ._.
Is there someplace to get those state icons?
Is there someplace to get those state icons?
I got them from here: http://www.gdunlimited.net/resources/image/934/icon-set
Nice resources and script! I haven´t use XP in a long while but I may download it again just to experiment a bit with this. Ah, nostalgia...
Nice script!

Can this do _______?
...all actions take the CT to 0 (consume 100 or all CT), or can edit how much CT each action consume?
Example:
Attacks: -80 CT
Skills: -100 CT
Guard: -40 CT
Items: -70 CT
Regular Attack with 2H Blade category: -90 CT
Regular Attack of Actor ID 4: -70 CT
Skills of ID group [9, 12, 15, 18, 21, 24, 27, 30]: -120 CT (take to negative value, so the next turn will take a long time)
And so on
Thanks!

To answer your question, yes, it can! By default every action consumes the total amount of CT (The total amount is configurable as well). You can then set 'factors' for nearly everything else (a factor is just a penalty or bonus to the amount consumed). Basic attacks serve as the baseline so you can't change them, but to match your example you could do this:

CHARGE_BAR_TOTAL = 80 (Normal attacks now use 80 CT)
SKILL_SPEED_FACTORS.default = -20 (Skills by default now use 80 then another 20 = 100 CT)
DEFEND_SPEED_FACTOR = 40 (Defend now uses 80 CT then gets 40 CT back as a bonus, so total CT usage is -40)
ITEM_SPEED_FACTORS.default = 10 (Items by default now use 80 CT then gets 10 CT back as a bonus, so total CT usage is -70)
You can fill the WEAPON_SPEED_FACTORS with the IDs that you want to adjust to make them slower.
You *can't* specify an actor to receive a permanent boost, but you could give the actor unique weapons that are faster or special skills which are faster.
Using the SKILL_SPEED_FACTORS, you can fill it with the IDs that you want to be slower.

The customization section of the script has more information and instructions on exactly how to configure everything.
Awesome!
I have other doubts, but will test first and edit if have any question or suggestion, you alread think in a lots of possibilities.
Hello ! your script it's working like a charm, i am really happy with this combat sytsem, is there a way to make it compatible with this script ? https://forum.chaos-project.com/index.php/topic,12640.0.html
i watched the video, and it look like the Persona 3/4/5 turn battle mechanic.
you know where in Persona 3/4/5 when its your turn, you take an action IMMEDIATELY.
and after you took an action, the next battler does an action when its their turn.
and when a battler has the highest Agility Stat (A.K.A. Speed Stat)
that certain battler goes first at Turn 0/1.

Original thread: https://forums.rpgmakerweb.com/threads/charge-turn-battle-ctb-system-final-fantasy-x-tactics-style.37195/