AEA - Charge Turn Battle System

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by Archeia, Jun 2, 2014.

  1. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,579
    Likes Received:
    14,274
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Charge Turn Battle System
    Archeia Engine Ace
     
    Introduction

    Allows players to have CTB Mechanics for their battle system!
     

    Features
    A Charge Turn Battle System!
     
    Screenshots
    [​IMG]
    Without Luna Engine
     
    [​IMG]
    With Luna Engine
     
    How to Use
     

      #--------------------------------------------------------------------------  # The default skill speed recovery. It's a percentage, i.e 50 means 50% speed.  # Note: It doesn't include Attack. Attack speed is always 100 unless specified  # in the attack skill's notebox.  #--------------------------------------------------------------------------  CTB_SKILL_SPEED = 75    #--------------------------------------------------------------------------  # The default item speed recovery.  #--------------------------------------------------------------------------  CTB_ITEM_SPEED = 150    #--------------------------------------------------------------------------  # The default guard speed.  #--------------------------------------------------------------------------  CTB_GUARD_SPEED = 120    #--------------------------------------------------------------------------  # The default escape speed.  #--------------------------------------------------------------------------  CTB_FLEE_SPEED = 300    #--------------------------------------------------------------------------  # Just type in: <speed: n> on skill notebox.  #--------------------------------------------------------------------------  CTB_SPEED_SET = /<speed:\s*(\d+)>/iFor the turn icons, you need to make two versions!
     
    The Active slot should be "Character/Enemyname_BigIcon"
    example: Ralph_BigIcon
     
    For the small slots, they should be "Character/Enemyname_SmallIcon" 
    example: Ralph_smallicon
     
    Demo

    Version 1.02

    Download over here!

    Version 1
    Download over here!
    Mirror Download Link 
     
    Script
    Too many scripts. Download Demo instead.
     
    F.A.Q.
    Q: Is this compatible with Yanfly Battle Engine
    A: ...Not yet ;w;
     
    Q: Is this compatible with the Luna Engine?
    A: Yes! From what I saw so far.

    Q: I found a bug.
    A: Sob...I'll try ;-;
     
    Q: Can you add x feature?
    A: Sob...I'll try ;-;
     
    Credit and Thanks

    - Archeia_Nessiah

    - Kread_Ex

    - AwesomeCool : He’s totally awesome and did a lot of fixes and reports!

    - Yami : For being awesome!

    - NeonBlack : Helping me pinpoint a bug.

     
    Author's Notes
    Free to use commercially and non-commercially. 
    Core script isn't a basic module or anything, it's the CTB itself. It's separated from the main configuration file.
     
    Last edited by a moderator: Jun 13, 2014
    #1
  2. tonytechno

    tonytechno Villager Member

    Messages:
    25
    Likes Received:
    1
    Location:
    United States, Michigan
    First Language:
    English
    Looks really good. :)
     
    #2
  3. AwesomeCool

    AwesomeCool Bratty and spoiled little sister Veteran

    Messages:
    2,877
    Likes Received:
    1,954
    Location:
    Behind you! BOOOO!
    First Language:
    English
    Primarily Uses:
    N/A
    Does this work with battle symphony?  If it does I am using it.  :)
     
    #3
  4. Lowell

    Lowell The Walking Atelier Veteran

    Messages:
    292
    Likes Received:
    68
    First Language:
    English
    Oh? my previous CTB didn't work with a battle system I used. Wonder if this will be what I'm looking for.
     
    #4
  5. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,579
    Likes Received:
    14,274
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    It works with Kread's Animated Battlers. I'm not sure about Symphony though...
     
    #5
  6. AwesomeCool

    AwesomeCool Bratty and spoiled little sister Veteran

    Messages:
    2,877
    Likes Received:
    1,954
    Location:
    Behind you! BOOOO!
    First Language:
    English
    Primarily Uses:
    N/A
    got it working with battle Symphony  :)

    all I had to change was this...

    def input if @actions[@action_input_index].nil? @actions[@action_input_index] = Game_Action.new(self) end @actions[@action_input_index] endto this...

    def input if @action_input_index.nil? @action_input_index = 0 end if @actions[@action_input_index].nil? @actions[@action_input_index] = Game_Action.new(self) end @actions[@action_input_index] endEdit: found a bug, states do not work right.  If poison is put on a character, it never damages him and the state never expires.  I guess this is due to turns never being incremented.
     
    Last edited by a moderator: Jun 3, 2014
    #6
    Archeia and tonytechno like this.
  7. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,579
    Likes Received:
    14,274
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Oh wait, that IS odd. Lemme try to fix that.
     
    #7
  8. AwesomeCool

    AwesomeCool Bratty and spoiled little sister Veteran

    Messages:
    2,877
    Likes Received:
    1,954
    Location:
    Behind you! BOOOO!
    First Language:
    English
    Primarily Uses:
    N/A
    Also, can I ask what determines the order in which battlers go?

    I can't seem to change the order from the initial order that the characters go in.  No matter what I change.  Changing agility nor speed mid battle or before battle has no effect.  Which makes me believe the order is bugged somehow.

    I will try to dig deeper for more info.  :)

    edit:  I think that @action_battlers array needs to be sorted by ctb_ticks in AEA - CTB after line 143 (So that if two battlers go into the action_battlers array at the same time the one that moved faster will go first).  Still trying to find out why slowing down agility of battlers mid battle is not messing with the order in any way.
     
    Last edited by a moderator: Jun 4, 2014
    #8
    Archeia likes this.
  9. nio kasgami

    nio kasgami VampCat Veteran

    Messages:
    8,590
    Likes Received:
    2,340
    Location:
    Canada / Quebec
    First Language:
    French
    interesting battle system lemme check if it work with tankentai if it not (probally the Battle camera will not work) I will fix this for you  because I know you are a pretty occupied person archeia~
     
    #9
  10. Nirwanda

    Nirwanda Procrastimancer Veteran

    Messages:
    1,280
    Likes Received:
    601
    Location:
    Buenos Aires
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    I admit to be a little concerned about compatibilities, but this looks so great. Thanks a lot, Archeia!
     
    #10
  11. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    612
    Likes Received:
    329
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A
    AwesomeCool makes a good point. It pretty much looks like a turn order bar script, not an actual battle system. I can't figure out the actual mechanics or do anything mid battle to put any of the battlers at a disadvantage. Could you explain how the turn mechanic works?
     
    #11
  12. Dr.Yami

    Dr.Yami 。◕‿◕。 Developer

    Messages:
    994
    Likes Received:
    736
    Location:
    Finland
    First Language:
    Vietnamese
    Primarily Uses:
    Other
    Last edited by a moderator: Jun 10, 2014
    #12
  13. AwesomeCool

    AwesomeCool Bratty and spoiled little sister Veteran

    Messages:
    2,877
    Likes Received:
    1,954
    Location:
    Behind you! BOOOO!
    First Language:
    English
    Primarily Uses:
    N/A
    nope it doesn't sadly. I set an enemy at 999 agility and the order looks like it works until the first action is made then it defaults to the standard order.

    add this fix to the fix and it will work perfectly (place below all other AEA CTB scripts and yami's fix):

    https://www.dropbox.com/s/annxe6ncgw2j1ln/AwesCool%20AEA%20fix.rb
     
    Last edited by a moderator: Jun 10, 2014
    #13
  14. Farr

    Farr Veteran Veteran

    Messages:
    247
    Likes Received:
    92
    Location:
    C-bus, Ohio
    First Language:
    Portuguese
    YBE compatible?
     
    #14
  15. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,579
    Likes Received:
    14,274
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Hello everyone!


    Here's a new version of the CTB with some fixes! Please give a warm thanks to AwesomeCool and Yami-chan for all the help they gave! The script page is also updated. It fixes the following things:


    1. If the enemy can't make any actions it crashes (example would be a monster without mana thus can't using abilities) - line 203 the error occurs due to current_action being nil.


    2. States do not expire nor does damage tick from them.


    3. Forced actions do not work.


    4. Set an enemies agility to 999 (kept rest the same) and order didn't change at all (at first it looked like it was going to till after the first action when the bar changed to its normal order)


    Bug that needs to be fixed:


    The order is sometimes wrong (I noticed this with the slime I gave various different skills to that all have different speeds set. Making me believe that skills with different speeds on one character will throw off the order bar).


    Some of the stuff AwesomeCool has implemented isn't included but we're all working on it ;w; )/


    Enjoy and Good Luck with your Indie Game Contest entries thingmajingers too!
     
    #15
    Dalph likes this.
  16. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    612
    Likes Received:
    329
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A
    This seems to be working better now. However, there might be a bug. If not, then I think this should be looked at more carefully.

    Whenever you highlight a skill that alters the speed (Guard), it will show the turn order preview correctly. But as you scroll through the other commands, the turn order preview doesn't change until you get back to "Attack."

    I believe when the cursor moves off of "Guard" in the Command Menu, the turn order bar should show a preview based on the standard speed.
     
    #16
  17. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,579
    Likes Received:
    14,274
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    I don't get this issue with guard?
     
    #17
  18. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    612
    Likes Received:
    329
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A
    It's quite hard to explain. I apologize for the confusing explanation. This video should help.
     
    #18
  19. Farr

    Farr Veteran Veteran

    Messages:
    247
    Likes Received:
    92
    Location:
    C-bus, Ohio
    First Language:
    Portuguese
    I don't think it's a bug, ctb predicts who will act next turn and so on, if guard speed is high, it means you'll have more actions to perform before the enemies does.
     
     
    #19
  20. Fernyfer775

    Fernyfer775 Veteran Veteran

    Messages:
    1,299
    Likes Received:
    802
    First Language:
    English
    If you watch the video you will see that the turn order doesn't refresh itself after "selecting" guard, thus giving players a wrong interpretation of what the turn order will look like if say, they hovered over guard, and then instead used a "Magic" ability. The order gauge only seems to fix itself once the player hovers back over the basic Attack command.
     
    #20

Share This Page