ACBS - Atoa Custom Battle System 3.2

Atoa! Back from Project A-kon! Need a tester again? Talk to you soon!
@Sheyki
i did already fix the name window bug.

I forget to add some instructions on the Overdrive script.

The overdrive must be "unlocked", with an script call add the code:
$game_actors[Actor ID].overdrive_unlock = true

@MayorAnime
The new update is at hand, so i'm surely will need some tests ^^
Hi Atoa! Thx for the line of the overdrive skill

I've noticed that if you put the bar of overdrive only increase with the damage taken ('Dmg' => 100), the overdrive bar will increases only with the attacks of the actor :S the enemy attacks don't increase the bar.

^^
Atoa wrote:
@MayorAnime
The new update is at hand, so i'm surely will need some tests ^^


Great! As soon as you tell me that it's uploaded, I will great right to testing it!
this system will should have multi_attack

ex
Image

in one animetion but have many damage


or not is this system has existed already ?
@ShinryuMk2
You mean this:
  1.  # -----------------------------------------------------------------------------------
  2.   # "COMBO/**" : Actions with multiple repetitions
  3.   #   ** must be equal the number of hits, for random hits add an min value and
  4.   #      after the max value, separated by "-".
  5.   #   Ex.: "COMBO/5" Combo with 5 hits
  6.   #        "COMBO/3-7" Combo with 3 to 7 hits.
  7.   # -----------------------------------------------------------------------------------
  8.   # "HITS/**" :  Actions with multiple hits.
  9.   #   ** must be equal the number of hits, for random hits add an min value and
  10.   #      after the max value, separated by "-".(like the Combo)
  11.   # -----------------------------------------------------------------------------------
  12.   # "SEQUENCE/**" : Skill sequences.
  13.   #   ** must be equal the IDs that makes part of the sequence, separated by ",".
  14.   #   Ex.: "SEQUENCE/57,58,59" The skills ID 57,58 and 59 will be used after the
  15.   #    action with that effect.
Expand to see the code.

Well this text was removed directly from the script.

Also you could just test the demo, you would see that "Atoa" haves an multi hit skills, and "KaHh" haves an multi attack skill (plus the hit's are random from 2 to 4).

You should really read *all* (when i mean *all*, is really *all*) instrunctions. (the green text on the config scripts and add-ons).

I took me a lot of hours writting all those explanation, i think everyone willing to use this system would at least read them.
It's pretty sad that someone can't read, don't have time to read all the instructions or don't even bother to read at all. (I must admit that your instructions are one of the longest and most detailed ever.) I know it's really annoying when they skip the entire text, toy around with the script then complains.

I just love experimenting combination with your scripts and most of them work perfectly. (Got some problem with timing the animation but that's OK.) Sometimes I run into problem but your instruction helped me a lot.

Anyway, I hope you're doing fine. 🙂 It's been a while since I last check this thread because I'm working on eventing pretty hard lately. No new bugs to report as of now.
@ Neoz Kaho
The animation timing is quite buggy on the current version, but on the next update it is far better.
@Atoa
system combo I used to,
but , that want to be want to show damage in frames that want ,

such as ,
frames that 6 have damage,
frames that 21 have damage,
frames that 53 have damage,

but , your system is like to show animetion finished then arrive at show damage that one (but many)
good evening
I have to create a system recharging of skill, but I do not manage to incorporate it in the “ACBS - Atoa Custom Battle System 2.0 Final
“

the script “ACBS - 2.0 Final” which I use:

  1. Atoa's Active Time Battle Version "Atoa ATB"
  2. New Status
  3. Skill Auto-Life
  4. Skill Reflect
  5. Skill Scan
  6. Skill Drain
  7. Atoa Bestiary
  8. Consum Items Actions
  9. Two Hands
  10. Equipment Multi Slots
  11. Status Limit
  12. Advanced Weapons
  13. Enemy Advanced Status
Expand to see the code.



Here my script skill recharging:
  1. #==============================================================================
  2. # ■ Compétence avec rechargement(V1.01)
  3. #  -Par Johnseed
  4. #------------------------------------------------------------------------------
  5. #  Incompatibiliter avec scrits modiffier:
  6. #  Game_Battler 1
  7. #  Game_Battler 3
  8. #  Scene_Battle 1
  9. #  Scene_Battle 3
  10. #  Scene_Battle 4
  11. #  Window_Skill
  12. #------------------------------------------------------------------------------
  13. # Changelog:
  14. # Mise en place
  15. # Compilation
  16. # Window_Skill en une seul collone
  17. # Ajout de Window_Skill_Info
  18. # Ajout d'atribution du nombre des tours
  19. #------------------------------------------------------------------------------
  20. # Explication:
  21. # A partire de la ligne 64 il sufit de rajouter la comande:
  22. #    @skill_active[X].round_max = Y
  23. #     X = id de la compétence
  24. #     Y = nombres de tour de rechargement
  25. # Si Y = 0 la compétence poura etre lancer a chaque tour
  26. # Si vous ne choisisser pas de commande pour une compétence
  27. # son temp de recharge sera obligatoirment de 3 tours
  28. #==============================================================================
  29. # ■ Skill_Switching
  30. #==============================================================================
  31. class Skill_Switching
  32.   def initialize(round_max=3)
  33.     @round_max = round_max+1
  34.     @round = 0
  35.   end
  36.   def round
  37.     return @round
  38.   end
  39.   def round=(val)
  40.     @round = val
  41.     @round=0 if @round<0
  42.   end
  43.   def round_max
  44.     return @round_max
  45.   end
  46.   def round_max=(val)
  47.     @round_max = val+1
  48.   end
  49. end
  50. #==============================================================================
  51. # ■ Game_Battler
  52. #==============================================================================
  53. class Game_Battler
  54.   def round(id)
  55.     return @skill_active[id].round
  56.   end
  57.   def skill_active(id)
  58.     return @skill_active[id]
  59.   end
  60.   def define_cooldown
  61.     for i in 1..$data_skills.size
  62.       @skill_active[i] = Skill_Switching.new
  63.     end
  64.     @skill_active[1].round_max = 1
  65.     @skill_active[2].round_max = 2
  66.     @skill_active[3].round_max = 3
  67.     @skill_active[4].round_max = 4
  68.     @skill_active[5].round_max = 5
  69.     @skill_active[6].round_max = 6
  70.     @skill_active[7].round_max = 0
  71.     @skill_active[81].round_max = 0
  72.     # etc ...
  73.   end
  74. end
  75. #==============================================================================
  76. # ■ Game_Battler 1
  77. #==============================================================================
  78. class Game_Battler
  79.   attr_reader   :battler_name
  80.   attr_reader   :battler_hue              
  81.   attr_reader   :hp                      
  82.   attr_reader   :sp                    
  83.   attr_reader   :states  
  84.   attr_accessor :hidden
  85.   attr_accessor :immortal
  86.   attr_accessor :damage_pop
  87.   attr_accessor :damage
  88.   attr_accessor :critical                
  89.   attr_accessor :animation_id            
  90.   attr_accessor :animation_hit            
  91.   attr_accessor :white_flash              
  92.   attr_accessor :blink                    
  93.   def initialize
  94.     @skill_active = []
  95.     define_cooldown
  96.     @battler_name = ""
  97.     @battler_hue = 0
  98.     @hp = 0
  99.     @sp = 0
  100.     @states = []
  101.     @states_turn = {}
  102.     @maxhp_plus = 0
  103.     @maxsp_plus = 0
  104.     @str_plus = 0
  105.     @dex_plus = 0
  106.     @agi_plus = 0
  107.     @int_plus = 0
  108.     @hidden = false
  109.     @immortal = false
  110.     @damage_pop = false
  111.     @damage = nil
  112.     @critical = false
  113.     @animation_id = 0
  114.     @animation_hit = false
  115.     @white_flash = false
  116.     @blink = false
  117.     @current_action = Game_BattleAction.new
  118.   end
  119.   def maxhp
  120.     n = [[base_maxhp + @maxhp_plus, 1].max, 999999].min
  121.     for i in @states
  122.       n *= $data_states[i].maxhp_rate / 100.0
  123.     end
  124.     n = [[Integer(n), 1].max, 999999].min
  125.     return n
  126.   end
  127.   def maxsp
  128.     n = [[base_maxsp + @maxsp_plus, 0].max, 9999].min
  129.     for i in @states
  130.       n *= $data_states[i].maxsp_rate / 100.0
  131.     end
  132.     n = [[Integer(n), 0].max, 9999].min
  133.     return n
  134.   end
  135.   def str
  136.     n = [[base_str + @str_plus, 1].max, 999].min
  137.     for i in @states
  138.       n *= $data_states[i].str_rate / 100.0
  139.     end
  140.     n = [[Integer(n), 1].max, 999].min
  141.     return n
  142.   end
  143.   def dex
  144.     n = [[base_dex + @dex_plus, 1].max, 999].min
  145.     for i in @states
  146.       n *= $data_states[i].dex_rate / 100.0
  147.     end
  148.     n = [[Integer(n), 1].max, 999].min
  149.     return n
  150.   end
  151.   def agi
  152.     n = [[base_agi + @agi_plus, 1].max, 999].min
  153.     for i in @states
  154.       n *= $data_states[i].agi_rate / 100.0
  155.     end
  156.     n = [[Integer(n), 1].max, 999].min
  157.     return n
  158.   end
  159.   def int
  160.     n = [[base_int + @int_plus, 1].max, 999].min
  161.     for i in @states
  162.       n *= $data_states[i].int_rate / 100.0
  163.     end
  164.     n = [[Integer(n), 1].max, 999].min
  165.     return n
  166.   end
  167.   def maxhp=(maxhp)
  168.     @maxhp_plus += maxhp - self.maxhp
  169.     @maxhp_plus = [[@maxhp_plus, -9999].max, 9999].min
  170.     @hp = [@hp, self.maxhp].min
  171.   end
  172.   def maxsp=(maxsp)
  173.     @maxsp_plus += maxsp - self.maxsp
  174.     @maxsp_plus = [[@maxsp_plus, -9999].max, 9999].min
  175.     @sp = [@sp, self.maxsp].min
  176.   end
  177.   def str=(str)
  178.     @str_plus += str - self.str
  179.     @str_plus = [[@str_plus, -999].max, 999].min
  180.   end
  181.   def dex=(dex)
  182.     @dex_plus += dex - self.dex
  183.     @dex_plus = [[@dex_plus, -999].max, 999].min
  184.   end
  185.   def agi=(agi)
  186.     @agi_plus += agi - self.agi
  187.     @agi_plus = [[@agi_plus, -999].max, 999].min
  188.   end
  189.   def int=(int)
  190.     @int_plus += int - self.int
  191.     @int_plus = [[@int_plus, -999].max, 999].min
  192.   end
  193.   def hit
  194.     n = 100
  195.     for i in @states
  196.       n *= $data_states[i].hit_rate / 100.0
  197.     end
  198.     return Integer(n)
  199.   end
  200.   def atk
  201.     n = base_atk
  202.     for i in @states
  203.       n *= $data_states[i].atk_rate / 100.0
  204.     end
  205.     return Integer(n)
  206.   end
  207.   def pdef
  208.     n = base_pdef
  209.     for i in @states
  210.       n *= $data_states[i].pdef_rate / 100.0
  211.     end
  212.     return Integer(n)
  213.   end
  214.   def mdef
  215.     n = base_mdef
  216.     for i in @states
  217.       n *= $data_states[i].mdef_rate / 100.0
  218.     end
  219.     return Integer(n)
  220.   end
  221.   def eva
  222.     n = base_eva
  223.     for i in @states
  224.       n += $data_states[i].eva
  225.     end
  226.     return n
  227.   end
  228.   def hp=(hp)
  229.     @hp = [[hp, maxhp].min, 0].max
  230.     for i in 1...$data_states.size
  231.       if $data_states[i].zero_hp
  232.         if self.dead?
  233.           add_state(i)
  234.         else
  235.           remove_state(i)
  236.         end
  237.       end
  238.     end
  239.   end
  240.   def sp=(sp)
  241.     @sp = [[sp, maxsp].min, 0].max
  242.   end
  243.   def recover_all
  244.     @hp = maxhp
  245.     @sp = maxsp
  246.     for i in @states.clone
  247.       remove_state(i)
  248.     end
  249.   end
  250.   def current_action
  251.     return @current_action
  252.   end
  253.   def make_action_speed
  254.     @current_action.speed = agi + rand(10 + agi / 4)
  255.   end
  256.   def dead?
  257.     return (@hp == 0 and not @immortal)
  258.   end
  259.   def exist?
  260.     return (not @hidden and (@hp > 0 or @immortal))
  261.   end
  262.   def hp0?
  263.     return (not @hidden and @hp == 0)
  264.   end
  265.   def inputable?
  266.     return (not @hidden and restriction <= 1)
  267.   end
  268.   def movable?
  269.     return (not @hidden and restriction < 4)
  270.   end
  271.   def guarding?
  272.     return (@current_action.kind == 0 and @current_action.basic == 1)
  273.   end
  274.   def resting?
  275.     return (@current_action.kind == 0 and @current_action.basic == 3)
  276.   end
  277. end
  278. #==============================================================================
  279. # ■ Game_Battler 3
  280. #==============================================================================
  281. class Game_Battler
  282.   def skill_can_use?(skill_id)
  283.           if round(skill_id)>0 and round(skill_id)<skill_active(skill_id).round_max
  284.       return false
  285.     end
  286.     if $data_skills[skill_id].sp_cost > self.sp
  287.       return false
  288.     end
  289.     if dead?
  290.       return false
  291.     end
  292.     if $data_skills[skill_id].atk_f == 0 and self.restriction == 1
  293.       return false
  294.     end
  295.     occasion = $data_skills[skill_id].occasion
  296.     if $game_temp.in_battle
  297.       return (occasion == 0 or occasion == 1)
  298.     else
  299.       return (occasion == 0 or occasion == 2)
  300.     end
  301.   end
  302.   def attack_effect(attacker)
  303.     self.critical = false
  304.     hit_result = (rand(100) < attacker.hit)
  305.     if hit_result == true
  306.       atk = [attacker.atk - self.pdef / 2, 0].max
  307.       self.damage = atk * (20 + attacker.str) / 20
  308.       self.damage *= elements_correct(attacker.element_set)
  309.       self.damage /= 100
  310.       if self.damage > 0
  311.         if rand(100) < 4 * attacker.dex / self.agi
  312.           self.damage *= 2
  313.           self.critical = true
  314.         end
  315.         if self.guarding?
  316.           self.damage /= 2
  317.         end
  318.       end
  319.       if self.damage.abs > 0
  320.         amp = [self.damage.abs * 15 / 100, 1].max
  321.         self.damage += rand(amp+1) + rand(amp+1) - amp
  322.       end
  323.       eva = 8 * self.agi / attacker.dex + self.eva
  324.       hit = self.damage < 0 ? 100 : 100 - eva
  325.       hit = self.cant_evade? ? 100 : hit
  326.       hit_result = (rand(100) < hit)
  327.     end
  328.     if hit_result == true
  329.       remove_states_shock
  330.       self.hp -= self.damage
  331.       @state_changed = false
  332.       states_plus(attacker.plus_state_set)
  333.       states_minus(attacker.minus_state_set)
  334.     else
  335.       self.damage = "Manqué!"
  336.       self.critical = false
  337.     end
  338.     return true
  339.   end
  340.   def skill_effect(user, skill)
  341.     self.critical = false
  342.     if ((skill.scope == 3 or skill.scope == 4) and self.hp == 0) or
  343.        ((skill.scope == 5 or skill.scope == 6) and self.hp >= 1)
  344.       return false
  345.     end
  346.     effective = false
  347.     effective |= skill.common_event_id > 0
  348.     hit = skill.hit
  349.     if skill.atk_f > 0
  350.       hit *= user.hit / 100
  351.     end
  352.     hit_result = (rand(100) < hit)
  353.     effective |= hit < 100
  354.     if hit_result == true
  355.       power = skill.power + user.atk * skill.atk_f / 100
  356.       if power > 0
  357.         power -= self.pdef * skill.pdef_f / 200
  358.         power -= self.mdef * skill.mdef_f / 200
  359.         power = [power, 0].max
  360.       end
  361.       rate = 20
  362.       rate += (user.str * skill.str_f / 100)
  363.       rate += (user.dex * skill.dex_f / 100)
  364.       rate += (user.agi * skill.agi_f / 100)
  365.       rate += (user.int * skill.int_f / 100)
  366.       self.damage = power * rate / 20
  367.       self.damage *= elements_correct(skill.element_set)
  368.       self.damage /= 100
  369.       if self.damage > 0
  370.         if self.guarding?
  371.           self.damage /= 2
  372.         end
  373.       end
  374.       if skill.variance > 0 and self.damage.abs > 0
  375.         amp = [self.damage.abs * skill.variance / 100, 1].max
  376.         self.damage += rand(amp+1) + rand(amp+1) - amp
  377.       end
  378.       eva = 8 * self.agi / user.dex + self.eva
  379.       hit = self.damage < 0 ? 100 : 100 - eva * skill.eva_f / 100
  380.       hit = self.cant_evade? ? 100 : hit
  381.       hit_result = (rand(100) < hit)
  382.       effective |= hit < 100
  383.     end
  384.     if hit_result == true
  385.       if skill.power != 0 and skill.atk_f > 0
  386.         remove_states_shock
  387.         effective = true
  388.       end
  389.       last_hp = self.hp
  390.       self.hp -= self.damage
  391.       effective |= self.hp != last_hp
  392.       @state_changed = false
  393.       effective |= states_plus(skill.plus_state_set)
  394.       effective |= states_minus(skill.minus_state_set)
  395.       if skill.power == 0
  396.         self.damage = ""
  397.         unless @state_changed
  398.           self.damage = "Manqué!"
  399.         end
  400.       end
  401.     else
  402.       self.damage = "Manqué!"
  403.     end
  404.     unless $game_temp.in_battle
  405.       self.damage = nil
  406.     end
  407.     return effective
  408.   end
  409.   def item_effect(item)
  410.     self.critical = false
  411.     if ((item.scope == 3 or item.scope == 4) and self.hp == 0) or
  412.        ((item.scope == 5 or item.scope == 6) and self.hp >= 1)
  413.       return false
  414.     end
  415.     effective = false
  416.     effective |= item.common_event_id > 0
  417.     hit_result = (rand(100) < item.hit)
  418.     effective |= item.hit < 100
  419.     if hit_result == true
  420.       recover_hp = maxhp * item.recover_hp_rate / 100 + item.recover_hp
  421.       recover_sp = maxsp * item.recover_sp_rate / 100 + item.recover_sp
  422.       if recover_hp < 0
  423.         recover_hp += self.pdef * item.pdef_f / 20
  424.         recover_hp += self.mdef * item.mdef_f / 20
  425.         recover_hp = [recover_hp, 0].min
  426.       end
  427.       recover_hp *= elements_correct(item.element_set)
  428.       recover_hp /= 100
  429.       recover_sp *= elements_correct(item.element_set)
  430.       recover_sp /= 100
  431.       if item.variance > 0 and recover_hp.abs > 0
  432.         amp = [recover_hp.abs * item.variance / 100, 1].max
  433.         recover_hp += rand(amp+1) + rand(amp+1) - amp
  434.       end
  435.       if item.variance > 0 and recover_sp.abs > 0
  436.         amp = [recover_sp.abs * item.variance / 100, 1].max
  437.         recover_sp += rand(amp+1) + rand(amp+1) - amp
  438.       end
  439.       if recover_hp < 0
  440.         if self.guarding?
  441.           recover_hp /= 2
  442.         end
  443.       end
  444.       self.damage = -recover_hp
  445.       last_hp = self.hp
  446.       last_sp = self.sp
  447.       self.hp += recover_hp
  448.       self.sp += recover_sp
  449.       effective |= self.hp != last_hp
  450.       effective |= self.sp != last_sp
  451.       @state_changed = false
  452.       effective |= states_plus(item.plus_state_set)
  453.       effective |= states_minus(item.minus_state_set)
  454.       if item.parameter_type > 0 and item.parameter_points != 0
  455.         case item.parameter_type
  456.         when 1  
  457.           @maxhp_plus += item.parameter_points
  458.         when 2  
  459.           @maxsp_plus += item.parameter_points
  460.         when 3  
  461.           @str_plus += item.parameter_points
  462.         when 4  
  463.           @dex_plus += item.parameter_points
  464.         when 5  
  465.           @agi_plus += item.parameter_points
  466.         when 6  
  467.           @int_plus += item.parameter_points
  468.         end
  469.         effective = true
  470.       end
  471.       if item.recover_hp_rate == 0 and item.recover_hp == 0
  472.         self.damage = ""
  473.         if item.recover_sp_rate == 0 and item.recover_sp == 0 and
  474.            (item.parameter_type == 0 or item.parameter_points == 0)
  475.           unless @state_changed
  476.             self.damage = "Manqué!"
  477.           end
  478.         end
  479.       end
  480.     else
  481.       self.damage = "Manqué!"
  482.     end
  483.     unless $game_temp.in_battle
  484.       self.damage = nil
  485.     end
  486.     return effective
  487.   end
  488.   def slip_damage_effect
  489.     self.damage = self.maxhp / 10
  490.     if self.damage.abs > 0
  491.       amp = [self.damage.abs * 15 / 100, 1].max
  492.       self.damage += rand(amp+1) + rand(amp+1) - amp
  493.     end
  494.     self.hp -= self.damage
  495.     return true
  496.   end
  497.   def elements_correct(element_set)
  498.     if element_set == []
  499.       return 100
  500.     end
  501.     weakest = -100
  502.     for i in element_set
  503.       weakest = [weakest, self.element_rate(i)].max
  504.     end
  505.     return weakest
  506.   end
  507. end
  508. #==============================================================================
  509. # ■ Scene_Battle 1
  510. #==============================================================================
  511. class Scene_Battle
  512.   def battle_end(result)
  513.     $game_temp.in_battle = false
  514.     $game_party.clear_actions
  515.     for actor in $game_party.actors
  516.       actor.remove_states_battle
  517.     end
  518.     $game_troop.enemies.clear
  519.     if $game_temp.battle_proc != nil
  520.       $game_temp.battle_proc.call(result)
  521.       $game_temp.battle_proc = nil
  522.     end
  523.     for j in 0...$game_party.actors.size
  524.       for i in 1..$data_skills.size
  525.         $game_party.actors[j].skill_active(i).round = 0
  526.       end
  527.     end
  528.     $scene = Scene_Map.new
  529.   end
  530. end
  531. #==============================================================================
  532. # ■ Scene_Battle 3
  533. #==============================================================================
  534. class Scene_Battle
  535.   def phase3_prior_actor
  536.     begin
  537.       if @active_battler != nil
  538.         @active_battler.blink = false
  539.       end
  540.       if @actor_index == 0
  541.         start_phase2
  542.         return
  543.       end
  544.       @actor_index -= 1
  545.       @active_battler = $game_party.actors[@actor_index]
  546.       @active_battler.blink = true
  547.       @active_battler.skill_active(@skill.id).round = 0
  548.     end until @active_battler.inputable?
  549.     phase3_setup_command_window
  550.   end
  551.   def update_phase3_skill_select
  552.     @skill_window.visible = true
  553.     @skill_info_window.visible = true
  554.     @skill_window.update
  555.     if Input.trigger?(Input::UP) or Input.trigger?(Input::DOWN)
  556.       @skill_info_window.refresh(@skill_window.skill)
  557.     end
  558.     if Input.trigger?(Input::B)
  559.       $game_system.se_play($data_system.cancel_se)
  560.       end_skill_select
  561.       return
  562.     end
  563.     if Input.trigger?(Input::C)
  564.       @skill = @skill_window.skill
  565.       if @skill == nil or not @active_battler.skill_can_use?(@skill.id)
  566.         $game_system.se_play($data_system.buzzer_se)
  567.         return
  568.       end
  569.       $game_system.se_play($data_system.decision_se)
  570.       @active_battler.current_action.skill_id = @skill.id
  571.       @skill_window.visible = false
  572.       @skill_info_window.visible = false
  573.         $game_party.actors[@actor_index].skill_active(@skill.id).round =
  574.         $game_party.actors[@actor_index].skill_active(@skill.id).round_max
  575.       if @skill.scope == 1
  576.         start_enemy_select
  577.       elsif @skill.scope == 3 or @skill.scope == 5
  578.         start_actor_select
  579.       else
  580.         end_skill_select
  581.         phase3_next_actor
  582.       end
  583.       return
  584.     end
  585.   end
  586. def update_phase3_enemy_select
  587.     @enemy_arrow.update
  588.     if Input.trigger?(Input::B)
  589.       $game_system.se_play($data_system.cancel_se)
  590.       end_enemy_select
  591.       @active_battler.skill_active(@skill.id).round = 0
  592.       return
  593.     end
  594.     if Input.trigger?(Input::C)
  595.       $game_system.se_play($data_system.decision_se)
  596.       @active_battler.current_action.target_index = @enemy_arrow.index
  597.       end_enemy_select
  598.       if @skill_window != nil
  599.         end_skill_select
  600.       end
  601.       if @item_window != nil
  602.         end_item_select
  603.       end
  604.       phase3_next_actor
  605.     end
  606.   end
  607. def update_phase3_actor_select
  608.     @actor_arrow.update
  609.     if Input.trigger?(Input::B)
  610.       $game_system.se_play($data_system.cancel_se)
  611.       end_actor_select
  612.       @active_battler.skill_active(@skill.id).round = 0
  613.       return
  614.     end
  615.     if Input.trigger?(Input::C)
  616.       $game_system.se_play($data_system.decision_se)
  617.       @active_battler.current_action.target_index = @actor_arrow.index
  618.       end_actor_select
  619.       if @skill_window != nil
  620.         end_skill_select
  621.       end
  622.       if @item_window != nil
  623.         end_item_select
  624.       end
  625.       phase3_next_actor
  626.     end
  627.   end
  628.   def start_skill_select
  629.     @skill_window = Window_Skill.new(@active_battler)
  630.     @skill_info_window = Window_Skill_Info.new(@active_battler, @skill_window.skill)
  631.     @skill_window.help_window = @help_window
  632.     @actor_command_window.active = false
  633.     @actor_command_window.visible = false
  634.   end
  635.   def end_skill_select
  636.     @skill_window.dispose
  637.     @skill_info_window.dispose
  638.     @skill_window = nil
  639.     @help_window.visible = false
  640.     @actor_command_window.active = true
  641.     @actor_command_window.visible = true
  642.   end
  643. end
  644. #==============================================================================
  645. # ■ Scene_Battle 4
  646. #==============================================================================
  647. class Scene_Battle
  648.     def update_phase4_step1
  649.     @help_window.visible = false
  650.     if judge
  651.       return
  652.     end
  653.     if $game_temp.forcing_battler == nil
  654.       setup_battle_event
  655.       if $game_system.battle_interpreter.running?
  656.         return
  657.       end
  658.     end
  659.     if $game_temp.forcing_battler != nil
  660.       @action_battlers.delete($game_temp.forcing_battler)
  661.       @action_battlers.unshift($game_temp.forcing_battler)
  662.     end
  663.     if @action_battlers.size == 0
  664.       for j in 0...$game_party.actors.size
  665.         for i in 1..$data_skills.size
  666.           $game_party.actors[j].skill_active(i).round -= 1
  667.         end
  668.       end
  669.       start_phase2
  670.       return
  671.     end
  672.     @animation1_id = 0
  673.     @animation2_id = 0
  674.     @common_event_id = 0
  675.     @active_battler = @action_battlers.shift
  676.     if @active_battler.index == nil
  677.       return
  678.     end
  679.     if @active_battler.hp > 0 and @active_battler.slip_damage?
  680.       @active_battler.slip_damage_effect
  681.       @active_battler.damage_pop = true
  682.     end
  683.     @active_battler.remove_states_auto
  684.     @status_window.refresh
  685.     @phase4_step = 2
  686.   end
  687. end
  688. #==============================================================================
  689. # ■ Window_Skill
  690. #==============================================================================
  691. class Window_Skill < Window_Selectable
  692.   def initialize(actor)
  693.     super(0, 128, 320, 352)
  694.     @actor = actor
  695.     @column_max = 1
  696.     self.index = 0
  697.     if $game_temp.in_battle
  698.       @column_max = 1
  699.       self.y = 64
  700.       self.width = 320
  701.       self.height = 256
  702.       self.back_opacity = 160
  703.     end
  704.     refresh
  705.   end
  706.   def skill
  707.     return @data[self.index]
  708.   end
  709.   def refresh
  710.     if self.contents != nil
  711.       self.contents.dispose
  712.       self.contents = nil
  713.     end
  714.     @data = []
  715.     for i in [email hidden]
  716.       skill = $data_skills[@actor.skills[i]]
  717.       if skill != nil
  718.         @data.push(skill)
  719.       end
  720.     end
  721.     @item_max = @data.size
  722.     if @item_max > 0
  723.       self.contents = Bitmap.new(width - 32, row_max * 32)
  724.       self.contents.font.name = $fontface
  725.       self.contents.font.size = $fontsize
  726.       for i in 0...@item_max
  727.         draw_item(i)
  728.       end
  729.     end
  730.   end
  731.   def draw_item(index)
  732.     skill = @data[index]
  733.     if @actor.skill_can_use?(skill.id)
  734.       self.contents.font.color = normal_color
  735.     else
  736.       self.contents.font.color = disabled_color
  737.     end
  738.     x = 4
  739.     y = index * 32
  740.     rect = Rect.new(x, y, self.width / @column_max - 32, 32)
  741.     self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  742.     bitmap = RPG::Cache.icon(skill.icon_name)
  743.     opacity = self.contents.font.color == normal_color ? 255 : 128
  744.     self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
  745.     self.contents.draw_text(x + 28, y, 204, 32, skill.name, 0)
  746.     self.contents.draw_text(x + 232, y, 48, 32, skill.sp_cost.to_s, 2)
  747.   end
  748.   def update_help
  749.     @help_window.set_text(self.skill == nil ? "" : self.skill.description)
  750.   end
  751. end
  752. #==============================================================================
  753. # ■ Window_Skill_Info
  754. #==============================================================================
  755. class Window_Skill_Info < Window_Base
  756.   def initialize(actor, skill)
  757.     super(320, 64, 320, 256)
  758.     self.back_opacity = 160
  759.     self.contents = Bitmap.new(width - 32, height - 32)
  760.     self.contents.font.name = $fontface
  761.     self.contents.font.size = $fontsize
  762.     @actor = actor
  763.     refresh(skill)
  764.   end
  765.   def refresh(skill)
  766.     self.contents.clear
  767.     x = 4
  768.     wait = @actor.skill_active(skill.id).round
  769.     wait = 0 if wait<0
  770.     wait_max = @actor.skill_active(skill.id).round_max-1
  771.     scope = ""
  772.     case skill.scope
  773.       when 0 then scope = "Aucun"
  774.       when 1 then scope = "Un Ennemi"
  775.       when 2 then scope = "Tout les ennemis"
  776.       when 3 then scope = "Un Allié"
  777.       when 4 then scope = "Tout les alliés"
  778.       when 5 then scope = "Allié KO"
  779.       when 6 then scope = "Tout les alliés KO"
  780.       when 7 then scope = "Utilisateur"
  781.     end
  782.     self.contents.font.color = system_color
  783.     self.contents.draw_text(x, 0, 160, 32, skill.name)
  784.     self.contents.draw_text(x, 32*1, 160, 32, "Mana : ")
  785.     self.contents.draw_text(x, 32*2, 160, 32, "Recharge : ")
  786.     self.contents.draw_text(x+120, 32*2, 160, 32, "Attente : ")
  787.     self.contents.draw_text(x, 32*3, 160, 32, "Cible : ")
  788.     self.contents.font.color = normal_color
  789.     self.contents.draw_text(x+65, 32*1, 128, 32, skill.sp_cost.to_s)
  790.     self.contents.draw_text(x+110, 32*2, 128, 32, wait_max.to_s)
  791.     self.contents.draw_text(x+210, 32*2, 128, 32, wait.to_s)
  792.     self.contents.draw_text(x+160, 32*3, 128, 32, scope)
  793.     case skill.id
  794.     when 57
  795.         self.contents.draw_text(x, 32*4, 250, 32, "c la fin du monde mais tout va bien")
  796.     when
  797.         self.contents.draw_text(x, 32*4, 250, 32, skill.description)
  798.       end
  799.   end
  800. end
Expand to see the code.


please to help me
tanks
to afflict for my English I am French just.
@johnseed
No wonder why this dont work... you've rewrote a lot of class that you didn't change.
First, you don't need to replace the *whole* class, just add the methos you changes, and *only* them.
Also try using alias intead of rewitting methods.
@Atoa
I thank you for having answered me, I know that my script has much defect (it is my first script) and I thank you for your advises.
I arrive has to incorporate without problem my script in the “ACBS - 2.0 Final”
But it is with script “Atoa ATB” and “Consum Items Actions” that there is incompatibility which I do not arrive has to resolve.
I thank you
@Atoa

Wow! 😀
My mouth felt down when I tested the Crono Trigger cbs. This is totaly amazing.

Officialy the best rmxp battle script I've ever seen.

This script seems perfect for my game:
viewtopic.php?f=78&t=70897

I'm currently reading the scripts to learn how this little beast was made.

So Atoa, do you have any suggestions, to help me to get close to the super mario rpg battle system?

I'll keep reading!

Thanks again!
I'm having a problem. I'm using some CCOA battlers. They completely fine until it either casts magic or dies, then the graphic begins to cycle strangely. For instance:

Image

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=62914