Last update: 19/02/2012 (DD/MM/YYYY)
Download here: PCTB and Order Gauge
Add-on:
- N/A at this time.
Check Instructions in Script. If you have YEA – Battle Engine Ace in your game, see the Instruction below.
To enable Charge Turn Battle for your YEA – Battle Engine Ace, either change the DEFAULT_BATTLE_SYSTEM constant in Ace Battle Engine to :pctb or make an script call during a game using:
$game_system:set_battle_system(:pctb)To revert back to DTB mid-game, use the following script call:
$game_system:set_battle_system(:dtb)
Tags: ctb pctb charge time battle charge turn battle rpg maker vx ace rgss3
Update 2012.02.19:
– Fixed: Press Left/Right when choose action for actor.
– Script now can work alone, without YEA – Battle Engine Ace.
for me after comand Attack game freeze for 1s, but after magic or without script “order gauge” the game runs smoothly
i use CTB with Victor animated battler and some script
It’s true that the Order Gauge sometime make the fps drop low, but I think the Attack issue is in Victor Animated Battler. Can you test without CTB and Order Gauge ?
ok i did some test and (3 enemies and 4 hero):
1. test without CTB and order gauge, but with Victor script and some Yanfly script game runs smoothly
2. test without order gauge, but with Victor script, CTB and some Yanfly script game runs smoothly
3. test without Victor script, but with CTB and order gauge some Yanfly script there is small fps drop low
4. test with CTB, order gauge, Victor script and some Yanfly script there is quite large fps drop low (but for 3 enemies and 1 hero the game runs smoothly and there is no fps drop low maybe by the whole fight once was Fps drop )
for now i will use your CTB without order gauge unless You have a solution?
Can you test with two others predict type too?
After tested with a little change at an internet pub, I got somethings like these:
1, Victor Animated Battle + CTB + Order Gauge Type 2 + 8 Predicted Turns: 56FPS is the lowest.
2, Victor Animated Battle + CTB + Order Gauge Type 2 + 24 Predicted Turns: 46FPS is the lowest.
3, Victor Animated Battle + CTB + Order Gauge Type 0 or 1: 58FPS is the lowest.
4, Victor Animated Battle + CTB + Order Gauge Type 2 + 8 Predicted Turns + YEA – Battle Engine Ace: 38FPS is the lowest, but It occured only when Turn End (Clocktick).
The dropping FPS when use YEA – Battle Engine Ace is caused of refresh status window, so this will be solved when Yanfly releases AutoHUD again.
I will post this updated version when I get home.
after update is a small improvement:) so now i will be waiting for Yanfly next release thx for help
Hey Yami, I’m using CTB with Yanfly Battle Engine. It works fine, but the enemy takes too much time to make an action. I can’t figure out how to change that..
What do you mean by that?
I think he says that the players have too many turns before the enemies act.
Okay. Then Shadow, You should increase Enemy AGI 😮
Coret – on a first look I made the same cocslunion, why is there such a difference between the crawl time average and this speed figure? Look again at the post above, this speed rating is based on the real experience using various data points. What shows up in Webmaster Tools is the time the bot takes to get the HTML (and I guess maybe the JS, who knows these days…).
I couldn’t believe that such app is available until I tested myselfI thought to myself that I really should thank you man for sharing this information with usthis is the best app ever.I hate the toutch keyboard on my sony xperia P , because I always mistypingso thank you very much
The Lunatic formulas for the old version work on this?
at this time, no.
but some default tag in lunatic I made it as CTB default notetags now.
Oh, thanks. The CTB rate ones were really useful.
Ah! Saludos a Trying!TodavÃa no tengo luces, pero tengo a Duende José, Cleo y Whiskey! En enero llegan 2 más (la persona que los rescató quiere mantener a todos los hermanitos juntos hasta que sean más gr.Maecitosanidu!
Try Numb3rs. It’s the story of a math genius helping his FBI brother with cases. It started with genuine math, too. The third season was too FBIish for my taste, but still good show.
Update 2012.02.20
– Reduce lag a little.
– Hide order gauge when victory.
for the order gauge you should make it where you can set it to display vertical or horizontal and to use custom images instead of icons
Hi Yami, thanks for script, I like it so much. I found an error or a fault of mine during the battle.
Step by step explanation, 2 Hero and 1 enemy.
Step 1: Hero 1, select action and the Hero attack.
Step 2: Hero 2, I press LEFT key, and I can select action of Hero 1, then I select action for Hero 2. Hero 1 do his attack, Hero 2 attack, all in the Hero 2 turn.
Sorry by my english, I speak Spanish. Google Translate Help me here.
Hi there, I’m having some trouble getting the script to run. I’m trying to use it with YEA – Battle Engine Ace, and followed the instructions for installing it, changed the Default Battle System to pctb. However, when I go to test it out, via battle test, I get an error for script line 702, which is: NoMethodError occurred. undefined method ‘[]’ for nil:NilClass. Any idea what I might be doing wrong?
I have the same problem. What did you do?
I will check this problem soon.
Nevermind, I figured out what I had done wrong. However, I did manage to get it to hang while in battle, after I told two test characters to guard. Not quite sure what happened, to be honest.
There’s a major compatibility issue with Yanfly’s engine going on.
The script loads up just fine, but after selecting to attack, the character will attack and then…nothing. The enemies won’t take their turn. The game just sits there doing nothing and you have to exit out.
Update 2012.03.17
– Compatible Issue: YEA – Battle Engine Ace.
– Stand Alone fixed.
I am running victor animated battle and I cannot seem to get this to work. is this incompatible with sideview?
Place my CTB under Victor Animated Battler
Hey Yami. For some reason I’m getting this error every time an opponent kills itself with confusion: http://i41.tinypic.com/wlobi9.png (Not tested with poison yet)
I also get an error on the same line when I use a skill that inflicts a state on the caster that has restrictions. (For example I have a skill that will make the caster immune to damage but he will be restricted from attacking. This triggers an error on the same line.)
Pingback: First of many Icon Sets « Candy Coded Response
I had an error. It seems the order gauge script that you coded is not compatible with the Animatted Battle Script of Victor Saint… At first it seems ok but when i selected the attack button. All the members automatically attacks and if the battle if finished. An error will occur saying that
Script ” line 677: NoMethodError occured. undefined method Attack? for nil:NilClass
I keep getting this error with victor engine- animated battle
undefined method ’empty?’ for nil:class
after a few attacks in any battle
Thanks for the awesome script!
I have however found an error when I try to make an enemy run away.
(There’s only one enemy for this batle)
This is the error:
Script line 815 NoMethodError occurred.
undefined method ‘item’ for nil:NilClass
I am getting this same error when I try to use an “Escape” ability!
First of all, thanks for this amazing script! I couldn’t immagine my game without it 🙂
However, I’ve encountered a small problem/bug: when using the default ‘Counterattack’ state, I get the following error:
Script ‘Predected Charge Turn Battle’ line 815: NoMethodError occurred.
undefined method ‘item’ for nil:Class
I truy hope you know how to fix this, because, like I said before, i couldn’t immagine this game without this script.
Thanks for your hard work!
Hiho Yami!
I´m having a little problem here. When i press the “cancel” button in battle, the cursor changes to another actor, but it´s not the turn of this actor:
Atual actor: http://img339.imageshack.us/img339/237/window1.png
When i press “cancel” button: http://img19.imageshack.us/img19/8409/window2l.png
I want to know if there´s a way to make the cursor go to “Party Command Window” instead of going to the back actor. Like in the picture:
Sorry for the bad english, and thanks for the atention! You´ve got a great script here =)
more here: Aunt Rita's Pecan Pie Recipe | Amy Loves It! By admin | category: pecan pie | tags: aunt, not-sure, paternal, patneral-grandmother,
Hey everyone! To those who were looking to NOT have the cursor move to the previous/next actor I found a possible way to fix this!
What you need to do is look for the line “def ctb_prior_actor”
(Ctrl-F it)
Once you find that line, move down 3 lines to where it says “prior_index = last_index – 1”
Change the 1 to a 0.
Next, go down about 20 lines more to “next_index = last_index + 1”
and change that 1 to a 0 as well.
And that should be it!
Note: You won’t be able to go to the party command menu (where you chose “FIGHT” or “ESCAPE”.
YF’s Command List script can probably make for a decent work-around for this.
(Remember to have a copy of the unedited script somewhere, just in case! As I’m technically NOT a scripter, I may not be able to help much if this causes bugs elsewhere! It works fine for me so far, though. ^_^)
I made a post on your thread at the RPG Maker VX Ace community forum (that I didn’t want to rewrite after I thought to check for an updated version here) about some crashes I finally isolated. If you could check it out and see what you can do, I’d appreciate it.
http://www.rpgmakervxace.net/topic/1153-ysa-battle-system-charge-turn-battle-ctb/#entry33599
Oh yeah I forgot about this script. Well too much errors, maybe I will have a big update for this soon ‘-‘
Since you’re updating the script, you could create an option for the bar to be vertical.
Also, I believe it would be easier to use characters instead of icons as they can be added individually.
Maybe I’m just stupid, but… the “ctb cost” and “ctb change” doesn’t seem to do anything. What exactly is it meant to do? Looking at the instructions, it seems that the “ctb cost” tag reduces the speed of the user after using a skill or item, and the “ctb change” tag reduces the speed of the target. But neither one seems to be effective. Is the secret in those ‘threshold’ numbers? In short, I love the system itself but I don’t really understand how to turn the script into something more than a display for whose turn is coming up next. 😦
Hey Yami, I can’t seem to get this working with Victor’s Animated battle. (The order gauge is the problem, I think, because the error didn’t pop up until after I put it in.) Here is the error:
—————————
Testing
—————————
Script ‘YSA Battle Add-On: Order Battlers’ line 677: NoMethodError occurred.
undefined method `input’ for nil:NilClass
—————————
OK
—————————
The error happens I think when an enemy tries to attack? Or when I have to input for the next character. Not sure which is happening.
Well, I don’t update this script anymore. I’m now developing a battle system (there is a script CTB + Order Gauge too). You can check it: https://yamiworld.wordpress.com/2012/08/01/battle-symphony-8d-battlers/
Oh, cool! Will it have compatibility with Victor’s Animated Battlers?
NVM, just tried the demo and it says for Yanfly’s stuff only. 😦
Thanks anyway.
Only the Visual is for YEA only. The mechanics (CTB, PTB…) are standalone.
Thanks, it does indeed work! For now 😀 Victor’s always updating. I hope it keeps compatibility!
Hi Yami.
First of all, thanks for the great scripts. I’m having a problem with your PCTB / Order Guage. Separately, they work great. Together, I get the following error upon starting a battle:
Script ‘Game_Actor’ line 674: TypeError occurred.
no implicit conversion from nil to integer
The offending line:
def input
@actions[@action_input_index]
end
I know minimal scripting to try to force @actions[@action_input_index] = 0 in other places, but that doesn’t seem to work (and I have no problems with this line if either of PCTB / Order Gauge are absent). Would you be able to help me out? Much appreciated.
Invalio
Hey, I downloaded this script a few days ago for my game, as I reached the conclusion that a CBS was the best type of battle system for what I had in mind.
It’s working well so far, but there’s one thing that’s being a problem to me. I guess that since this script changes the battle system so much, it completely breaks the way the game figures out when turns start. I want to make things happen in the beginning of a certaing character’s turn, or perhaps an enemy’s turn.
Specifically, what I want os for each character’s MP to increase by 10 each time their turn comes up. If I try to do this by eventing, All the characters get their first 10 MP at the start of the battle, as they should if I was using the default battle system, and no more. The game can’t detect when turns start and end, it seems.
I figured since you were the one who made the script, you would be the best person to ask about this. How do you think I should work this out?
Disregard my previous post. I found a very simple solution to my problem that works perfectly.
However, I have run into problems when trying to use Yanfly’s Instant Cast script (http://yanflychannel.wordpress.com/rmvxa/battle-scripts/instant-cast/) with this. Most of the time, the game acts as if I didn’t even have instant skills and ends the turn when I use them. The other times, it crashes and gives me this error:
Script ‘Scene_Battle’ line 330: NoMethodError occurred.
undefined method ‘index’ for nil:NilClass
Do you have any idea why this might be happening?
You don’t need an instant cast script for this battle system. Use the tag, in the ability and it will activate and make the actor that used the ability have a turn immediately after using this skill
Sorry, for some reason it wouldn’t show the tag, but here it is: ctb cost: 0%
Nice! Not the optimal solution, as my game features MP regeneration, but I’m sure I can work around it, probably bu making the stance skill remove the ammount of MP that would have regenerated. The only problem I can see happening is when the current MP is less than the ammount of regeneration.
From the details given, I’m not quite sure what you’re trying to pull off, but I’ve tried an MP regeneration system in a previous project. I prefer to use CTB, but I have trouble figuring out the science behind turn calculation. I just edit the numbers in the script until I find it feeling ‘right’, but as a result, things like the default regeneration and state duration tends to be a little off depending on the enemy’s current order in the turn queue. Anyways, I thought I would direct you to Yanfly’s Lunatic State scripts.
In Lunatic States Punishment, there is a tag that says: stat slip heal x%. You can combine this effect in other ways that Yanfly doesn’t quite touch on. You can easily make this effect occur before/after a turn or before/after the specific actor’s action (In my opinion, optimal for a CTB system). The only drawback is that you have to give up one of your six stats to create a static stat to ensure MP regeneration is always the same. On the other end, you can make the stat dynamic so the player must chose between raw damage or MP generation.
This may or may not be helpful, but regardless, it’s good to share ideas.
I have a problem when I put on a state that makes an ally attack an enemy (similar to Berserk status). “Script PCTB line 815: NoMethodError occured. undefined method ‘item’ for nil:NilClass”.
How can I fix this?
Does it work with victor engine? I cant make it work when you command someone to attack everyone will attack the target then an error pops up
sorry PCTB is working fine with VE. The problem is the Order Gauge Script, after the first actor command (ie Attack) other characters will repeat the command then gives an error.
Is there a way to change the mechanic settings such that a specific number of actions can be assigned to a turn?
I don’t really understand the threshold and tick settings. I get that I can reduce the number of actions in a “turn” by increasing the threshold or lowering the turn_ctr, and I can see that a turn seems to be decided by the @clocktick function, but a previous Yami CTB script had an option to simply set a “turn” to a number of actions. I can’t seem to do better than getting a “turn” to be within a range of actions, like 0-1, 0-2, 2-5, or something like that.
There was also an option in the old CTB to change a variable that would decide how many actions were in a turn, as well, that would be quite useful.
Is there any way to reintroduce a set number of actions to define a turn? This would make troop eventing easier, as would state durations.
CyberDagger said in a different comment that he found a simple solution to do that, but with no explanation and I can’t figure it out. I’d like turns to be decided by actions instead of time too.
Hey Yami I’m have a problem. When I try to test my game with PCTB, Order Gauge, and YEA Battle Engine I get an error. Here’s the error message:
(I am using the PCTB)
———————————————————————————————————
Script ‘CHANGE TURN BATTLE’ line 801: NoMethodError occurred.
undefined method `make_ctb_battler_order’ for BattleManager:Module
———————————————————————————————————
————-
Ok?
————-
I’ll be really happy if you could fix this.
Hi, Yami.
Is there a way to make the Order Gauge use custom image instead of icon?
Please, I really love to use this but has no knowledge in scripting
Hi Yami, your dropbox download is disabled due to traffic, is there any chance you could upload your scripts to github? Thanks!
I was also looking for this script, and Yami has recently uploaded all the scripts in github (as stated at the home page).
You can find it here under rmvxa-collection / old-ace-scripts / catb.txt
https://github.com/suppayami/rmvxa-collection
Oh, my bad, I thought CATB was it. Sorry 😡
Oh… I actually found it here.
http://rpgmaker-vx-ace.de/board9-rpg-maker-vx-ace-lite/board18-scripts-rgss3-ace/board64-probleme/565-ysa-battle-system-predicted-charge-turn-battle-broken/
Thanks a lot 🙂
Can you place this script in Github? Kooki’s link, when I paste it in under the Main it only takes up one line…
I would be extremely appreciated if you would add this to a new link, its frustrating!
Is there a way to make turns pass after each action, instead of after some number of frames?
In the youtube video at the top the game is predicting like, the next 12 turns, but when I downloaded this script it would only show turns eqaul to the number of battlers i.e 2 actors + 2 enemies = predict 4 turns… I know nothing about coding but might someone know how I can achieve that myself?
Also does anyone else have problems like ‘missing icons’ on their gauge?
I try making my game have it when you can select two commands. So I added Action Time+ for each party members, enemies, and bosses. But I get an error on it saying:
“Script ‘YSA Battle System: Predicted Charge Turn’ line 859:
NoMethodError occured.
undefined method ‘make_actions’ for nil:NilClass’
Is this one really messed up.
Ignore the last one, I forgot to set it. ^^; But except the part when I try to set two commands on my party members, enemies, and bosses. When I try to select my commands, it only just started the actions. Is there a problem with that.
Hi I would love to use this script but I cannot get i due to the link being closed. it says that the person has too much traffic. Chould you upload it to github
Does anyone know how to make Yanfly Skill Restrictions work with PCTB? Cool downs no longer work. Thanks!
I have the same problem… too bad I don’t know how to fix it…
I can’t get the scripts from Dropbox.
the link are dead…
Anyone has any links to the script? Thanks
https://pastebin.com/BcjkbKiS