Jump to content
Fomar0153

Ace Battle Engine Add-On - ATB/Stamina System

Recommended Posts

I see.

I had this problem as well.

 

The way I fixed it was to make passing cost just enough stamina to allow others to actually take a turn.

 

Try setting the passing cost a bit higher then whatever you have it at now.

That should help.

Share this post


Link to post
Share on other sites

Hmm. You would press the right arrow key to pass, correct? I set the Pass cost to like 900 and it doesn't affect it at all. I feel like I'm doing something wrong.

Share this post


Link to post
Share on other sites

I edited this script so much...

I'll have to look at what I did to fix.

 

I don't have the right/left arrows working in my game during battles.

(I pass with a dedicated "Pass" button.)

Edited by Maliki

Share this post


Link to post
Share on other sites

Should I try doing that? How would I do that? I looked in the script and I couldn't immediately find how to modify it.

Share this post


Link to post
Share on other sites

I do not have the script in from of me.  (I'm at work right now.)

 

I'll look once I get home.

 

Anything else I can see about for ya while I'm looking?

:-)

Share this post


Link to post
Share on other sites

Sure lol. My ATB gauges have slightly more of a gap between them and MP, than HP and MP have between each other... How on earth do I space them perfectly?

Share this post


Link to post
Share on other sites

Ok.  Found what I did.

 

first, I added a Passing_cost2 on the line under Passing_Cost

I made the new cost = 10

 

Then, I rewrote prior_command (ctrl-f to find it) as follows:

 

 

def prior_command
    BattleManager.actor.stamina -= CBS::PASSING_COST2
    BattleManager.clear_actor
    @subject = nil
    @actor_command_window.active = false
    @actor_command_window.close
    start_party_command_selection
  end

 

Hope that helps.

Share this post


Link to post
Share on other sites

Ok.

Let me back up a bit.

Earlier you said you pass over a character.

How exactly do you pass over them?

Do you press the "Pass" button?

Or do you simply hit right or left to attempt to move to the next battler?

Share this post


Link to post
Share on other sites

I think it defaults to x.  I use a gamepad, so I don't know what it is on the keyboard.

Share this post


Link to post
Share on other sites

Hi. I'm getting some errors with this script.

 

Everytime my character kills enemy when he counterattacks (enemy attacks->actor counterattacks->enemy dies from damage->crash), the game crashes. I have Yanfly Battle Engine v1.22, Yami Battle Symphony v1.15 and this ATB Script of yours. Before the problem occurs it sounds like my actor is trying to hit the enemey 2 times and when the enemy dies, the sound when enemy falls comes two times... Counterattack itself works fine, this error comes only when my actor manager to KILL the attacking enemy.

 

"Script 'ATB by FOMAR' line 458:NoMethodError occurred. Undefined method 'stamina_cost' for nil:NilClass" . In ATB script around line 458 it says this:  

#--------------------------------------------------------------------------
# â— New Method on_turn_end
#--------------------------------------------------------------------------
def stamina_loss
if self.actor?
@stamina -= input.stamina_cost
else
@stamina -= @actions[0].stamina_cost
end
BattleManager.add_action
end
end

 

If I understand anything, this could be fixed by defining stamina_cost nil:NilClass to 0...? If it can't be 0 then 1 since fomars ATB has Max Stamina 1000 so you wouldn't even notice losing 1 atb point (=stamina).

 

My script order is the only possible:

Yanfly Battle Engine

Yami Symphony

Fomar ATB

 

No other scripts used. EDIT: It crashes without symphony too..

EDIT: Found solution on the previous page, lol... Change this line @stamina -= @actions[0].stamina_cost to this @stamina -= 1000

Edited by RaZzi

Share this post


Link to post
Share on other sites

Can someone tell me why i can't escape when one of my characters die?

The problem is that escape only works when all characters ATB bars are full.  When a character dies, his ATB bars stops progressing which prevents the other party members from attempting to escape.

 

I posted a fix for this somewhere in this thread.  Just do a little hunting and you should be able to find it.

Share this post


Link to post
Share on other sites

Hi. I'm getting some errors with this script.

 

Everytime my character kills enemy when he counterattacks (enemy attacks->actor counterattacks->enemy dies from damage->crash), the game crashes. I have Yanfly Battle Engine v1.22, Yami Battle Symphony v1.15 and this ATB Script of yours. Before the problem occurs it sounds like my actor is trying to hit the enemey 2 times and when the enemy dies, the sound when enemy falls comes two times... Counterattack itself works fine, this error comes only when my actor manager to KILL the attacking enemy.

 

"Script 'ATB by FOMAR' line 458:NoMethodError occurred. Undefined method 'stamina_cost' for nil:NilClass" . In ATB script around line 458 it says this:  

#--------------------------------------------------------------------------
# â— New Method on_turn_end
#--------------------------------------------------------------------------
def stamina_loss
if self.actor?
@stamina -= input.stamina_cost
else
@stamina -= @actions[0].stamina_cost
end
BattleManager.add_action
end
end

If I understand anything, this could be fixed by defining stamina_cost nil:NilClass to 0...? If it can't be 0 then 1 since fomars ATB has Max Stamina 1000 so you wouldn't even notice losing 1 atb point (=stamina).

 

My script order is the only possible:

Yanfly Battle Engine

Yami Symphony

Fomar ATB

 

No other scripts used. EDIT: It crashes without symphony too..

EDIT: Found solution on the previous page, lol... Change this line @stamina -= @actions[0].stamina_cost to this @stamina -= 1000

I still get the same error. Any Idea Why?

Share this post


Link to post
Share on other sites

Hey I get a glitch when I kill with a counter attack, anyone find a way to fix it?

 

Look here.

 

http://www.rpgmakervxace.net/topic/802-ace-battle-engine-add-on-atbstamina-system/?p=99173

 

AlanCasanova,  This link points to your fix, as well.

Edited by Maliki

Share this post


Link to post
Share on other sites

This scripts has a tons of bugs. I fixed them all, adding Actions time system and Turn counts system.

Now it becomes a completely different script - mess in my game.

 

True,  It is a bit of a messy script, but I find that for what it does, it's one of the easiest scripts to fix/expand in it's category.

Share this post


Link to post
Share on other sites

I really wanted this is script but it is very outdated. It has a bug with YEA Battle Command List which keep displaying the execute window after the input. and Another one with Instant cast ignoring it completely :(

Share this post


Link to post
Share on other sites

  I noticed that when escaping using this script it requires all party members to have full stamina meters, but if a party member is dead it glitches the process and causes your team to lose all turns until death. Is there any way to modify the script to skip dead party members when trying to escape so that it doesn't glitch?

 

I made the rookie mistake of not searching the entire forum before posting. found the solution on about page 5 in the middle.

Edited by KeenWolf

Share this post


Link to post
Share on other sites
 

on this script,

how can let monster attack when I am  agonizing command  ?  :huh:

 

in other words : I want monster can continuously attack actors

 

 (time do not stop to select actions or select commands )

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×