[XP] FMBS XRXS Fully Working + Custom Enhancement

Tales of eternia Battle system FIX & ENHANCED


FMBS is a Full movement Battle System that mimics Tales of ... Battle system, i found bug on default script like state bug, Turn system on database states is useless but you can change it into this script. now everything is fixed i think ( item, state bug)

SCRIPT
STATE FIX VER 1.2 (more compatible and faster than before)
Content Hidden Show
  1.  
  2. =begin
  3. STATE_FIX and ADDONS Ver 1.2                          (Tested and edit on April 5th 2008)
  4.                                                                                BY iqbal_0k A.K.A B@!LWORLD
  5. Requirements: -STATE_FIX part 2
  6.                     -FMBS SYSTEM BY XRXS
  7.                    
  8. Credit & Thanks - XRXS for this great battle system             
  9.  
  10. 1.2 Feature :
  11.               - Removing gain sp pop_ups to increase performance
  12.  
  13. Feature
  14.               - Flash damage to indicates battler loss / gain hp/sp
  15.               - Pop'ups state name when incurs or removed
  16.               - Adding BATTLE FRENZY effect
  17.               - Adding REFLECT feature
  18.               - Compatibility to other script (but still fmbs dude)
  19.               - Damage display when poisoned, gain hp, loss sp, gain sp and much more
  20.               - Compacting script to maintain in game performance
  21.               - Add some unique state effect
  22.               - Fix FMBS BUG like slip damage effect by poison, paralyze, can't act,
  23.                  silence
  24.               - easy modification (For dummies)
  25. =end
  26. #===============================================================================
  27. #                                                CONFIGURATION
  28. #===============================================================================
  29. $gain_sp_in_normal_state = true
  30.  
  31. #Change text in the double quotes refers to state name in your database
  32. POISON_NAME = "Poison" # slip damage ... 100% COMPLETED
  33. REGEN_NAME = "Regen" #Recover hp in certain duration ... 100% COMPLETED
  34. PARALYZE_NAME = "Paralyze" # Can't Move ... 100% COMPLETED
  35. ENTANGLE_NAME = "Entangle" # States that prevent action jumping and running ... 100% COMPLETED
  36. FLOAT_NAME = "Float" # makes you Float to avoid ground damage ... 100% COMPLETED
  37. SP_DRAIN_NAME = "SP Drain" # Poison SP (Battle Only) ... 100% COMPLETED
  38. SLEEP_NAME = "Sleep" #can't move and attack but the state will automaticly removed in random duration (Battle Only) ... 100% COMPLETED
  39. DEMI_NAME = "Demi" #Drain hp much faster ... 100% COMPLETED
  40. CURSE_NAME = "Curse" #Occasionally damage HP if act (Attack or defend) and prevent making attack combo ... 100% COMPLETED
  41. SHIELD_NAME = "Shield" # May become invincible if battler guarding (the infincible effect mark with actor blink) ... 100% COMPLETED
  42. BLESSING_NAME = "Bless" # recover SP More Faster in certain duration ... 100% COMPLETED
  43. HEX_NAME = "Hex" # DAMAGE HP BY HALF and then the states are removed automaticly ... 100% COMPLETED
  44. GHOST_NAME = "Ghost" # Occasionally invincible to any damage ... 100% COMPLETED
  45. BERSERK_NAME = "Berserk" #You can't control this infected actor (controlled by AI) / change member in certain duration ... 100% COMPLETED
  46.  
  47. #DONT CHANGE THE LINE BELOW
  48. #==========================================================================================================================================
  49. $data_states = load_data("Data/States.rxdata")
  50. $data_states.each_index do |index| $poison_state_id=index if ($data_states[index]!=nil and $data_states[index].name==POISON_NAME) end
  51. $data_states.each_index do |index| $regen_state_id=index if ($data_states[index]!=nil and $data_states[index].name==REGEN_NAME) end
  52. $data_states.each_index do |index| $paralyze_state_id=index if ($data_states[index]!=nil and $data_states[index].name==PARALYZE_NAME) end
  53. $data_states.each_index do |index| $entangle_state_id=index if ($data_states[index]!=nil and $data_states[index].name==ENTANGLE_NAME) end
  54. $data_states.each_index do |index| $float_state_id=index if ($data_states[index]!=nil and $data_states[index].name==FLOAT_NAME) end
  55. $data_states.each_index do |index| $sleep_state_id=index if ($data_states[index]!=nil and $data_states[index].name==SLEEP_NAME) end
  56. $data_states.each_index do |index| $sp_drain_state_id=index if ($data_states[index]!=nil and $data_states[index].name==SP_DRAIN_NAME) end
  57. $data_states.each_index do |index| $demi_state_id=index if ($data_states[index]!=nil and $data_states[index].name==DEMI_NAME) end
  58. $data_states.each_index do |index| $curse_state_id=index if ($data_states[index]!=nil and $data_states[index].name==CURSE_NAME) end
  59. $data_states.each_index do |index| $shield_state_id=index if ($data_states[index]!=nil and $data_states[index].name==SHIELD_NAME) end
  60. $data_states.each_index do |index| $blessing_state_id=index if ($data_states[index]!=nil and $data_states[index].name==BLESSING_NAME) end
  61. $data_states.each_index do |index| $hex_state_id=index if ($data_states[index]!=nil and $data_states[index].name==HEX_NAME) end
  62. $data_states.each_index do |index| $ghost_state_id=index if ($data_states[index]!=nil and $data_states[index].name==GHOST_NAME) end
  63. $data_states.each_index do |index| $berserk_state_id=index if ($data_states[index]!=nil and $data_states[index].name==BERSERK_NAME) end
  64. #==========================================================================================================================================
  65.  
Expand to see the code.


STATE FIX Ver 1.2 PART 2
Content Hidden Show
  1.  
  2. #-------------------------------------------------------------------------------
  3. =begin
  4. STATE_FIX and ADDONS Ver 1.2
  5.                                                                                BY iqbal_0k A.K.A B@!LWORLD
  6.                                                                                
  7. STATE_DATABASE
  8.  
  9. Requirements: -STATE_FIX part 1
  10.                     -FMBS SYSTEM BY XRXS
  11.                    
  12. Credit & Thanks - XRXS for this great battle system
  13.  
  14. 1.2 Feature :
  15.               - Removing gain sp pop_ups to increase performance
  16.  
  17. Feature
  18.               - Flash damage to indicates battler loss / gain hp/sp
  19.               - Pop'ups state name when incurs or removed
  20.               - Adding BATTLE FRENZY effect
  21.               - Adding REFLECT feature
  22.               - Compatibility to other script (but still fmbs dude)
  23.               - Damage display when poisoned, gain hp, loss sp, gain sp and much more
  24.               - Compacting script to maintain in game performance
  25.               - Add some unique state effect
  26.               - Fix FMBS BUG like slip damage effect by poison, paralyze, can't act,
  27.                  silence
  28.               - easy modification (For dummies)
  29. =end
  30. #-------------------------------------------------------------------------------
  31. #===============================================================================
  32. # Â ¦ Game_Battler
  33. #===============================================================================
  34. class Game_Battler
  35.   def bail_poison
  36.      self.damage = self.maxhp / 90
  37.      if self.damage.abs > 0
  38.         variation = [self.damage.abs * 35 / 170, 1].max
  39.         self.damage += rand(variation) + rand(variation) - variation
  40.      end
  41.      self.hp -= self.damage
  42.   end
  43.  
  44.   def bail_loss_sp
  45.      self.damage = self.maxsp / 90
  46.      if self.damage.abs > 0
  47.         variation = [self.damage.abs * 35 / 170, 1].max
  48.         self.damage += rand(variation) + rand(variation) - variation
  49.      end
  50.      self.sp -= self.damage
  51.   end
  52.     
  53.   def bail_gain_sp
  54.      self.damage = -self.maxsp / 90
  55.      if self.damage.abs > 0
  56.         variation = [self.damage.abs * 35 / 170, 1].max
  57.         self.damage += rand(variation) + rand(variation) - variation
  58.      end
  59.      self.sp -= self.damage
  60.   end
  61.  
  62.   def bail_regen
  63.      self.damage = -self.maxhp / 90
  64.      if self.damage.abs > 0
  65.         variation = [self.damage.abs * 35 / 170, 1].max
  66.         self.damage += rand(variation) + rand(variation) - variation
  67.      end
  68.      self.hp -= self.damage
  69.   end
  70.  
  71.   def bail_hex
  72.      self.damage = -self.hp / 50
  73.      self.hp -= self.damage
  74.   end
  75.  
  76.   def bail_demi
  77.      self.damage = self.maxhp / 99
  78.      self.hp -= self.damage
  79.   end
  80.  
  81. end
  82.  
  83. #===============================================================================
  84. # Â ¦ Scene_Battle mimics fmbs part 2
  85. #===============================================================================
  86. class Scene_Battle
  87.   alias bail_states update_phase1
  88.   def update_phase1
  89. #-------------------------------------------------------------------------------
  90. # STATE FIX
  91. #-------------------------------------------------------------------------------
  92.      #
  93.      # SP RECOVERY, BLESSING AND SP DRAIN
  94.      #
  95.      @sp_recovery_duration  = 0 if @sp_recovery_duration == nil
  96.      @sp_recovery_duration += 1
  97.      @bless_duration = 0 if @bless_duration == nil
  98.      @bless_duration += 1
  99.      if @sp_recovery_duration >= SP_RECOVERY_FREQUENCY
  100.         for battler in $game_party.actors + $game_troop.enemies
  101.            if battler.state?($sp_drain_state_id)
  102.               if battler.sp < battler.maxsp / 90
  103.                  battler.remove_state($sp_drain_state_id)
  104.               else
  105.                     battler.bail_loss_sp
  106.                     battler.damage_pop = true
  107.               end
  108.            else
  109.               if battler.state?($blessing_state_id)
  110.                  if @bless_duration <= rand(350)
  111.                     battler.sp += 1
  112.                  else
  113.                     battler.remove_state($blessing_state_id)
  114.                     @bless_duration = 0
  115.                  end
  116.               else
  117.                  battler.bail_gain_sp if battler.sp < battler.maxsp and $gain_sp_in_normal_state == true
  118.               end
  119.            end
  120.         @sp_recovery_duration = 0
  121.         @status_window_needed_to_refresh = true
  122.         end
  123.      end
  124.     
  125.      #===========================================================================
  126.      #SET LOOPING STATEMENT REQUIRED FOR STATE CHANGE
  127.      for battler in $game_party.actors + $game_troop.enemies
  128.      #===========================================================================  
  129.  
  130. =begin
  131.      REGEN STATE
  132. =end
  133.            if battler.state?($regen_state_id)
  134.               @hp_recover_freq = 10
  135.               @hp_recover_duration  = 0 if @hp_recover_duration == nil
  136.               @hp_recover_duration += 1
  137.                  if @hp_recover_duration >= @hp_recover_freq and @hp_recover_duration <= 1250
  138.                        if battler.hp < battler.maxhp / 90
  139.                             battler.bail_regen
  140.                             battler.damage_pop = true
  141.                        end
  142.                     @hp_recover_duration  = 0
  143.                     @status_window_needed_to_refresh = true
  144.                  else
  145.                       battler.remove_state($regen_state_id)
  146.                  end#end if                      
  147.            end
  148.     
  149. =begin
  150.      POISON STATE
  151. =end
  152.                  if battler.state?($poison_state_id)
  153.                        @hp_lost_poison = 50
  154.                        @hp_lost_duration  = 0 if @hp_lost_duration == nil
  155.                        @hp_lost_duration += 1
  156.                        @damagepopnya = battler.maxhp / 90
  157.                  if @hp_lost_duration >= @hp_lost_poison
  158.                        if battler.hp > @damagepopnya and battler.state?($poison_state_id)
  159.                             battler.bail_poison
  160.                             battler.damage_pop = true    
  161.                        else
  162.                             battler.remove_state($poison_state_id)
  163.                        end
  164.                     @hp_lost_duration = 0
  165.                     @status_window_needed_to_refresh = true
  166.                  end#end if                               
  167.                  end#end if too
  168.  
  169. =begin
  170.      PARALYZE STATE (it'll shaking heuheuuhe)
  171. =end
  172.  
  173.      if battler.state?($paralyze_state_id)
  174.         @paralyze_duration = 0 if @paralyze_duration == nil
  175.         @paralyze_duration  += 1
  176.         if @paralyze_duration < 200
  177.            battler.motion.knock_back_duration = 10
  178.         else
  179.            battler.remove_state($paralyze_state_id)
  180.            @status_window_needed_to_refresh = true
  181.         end
  182.      end
  183.  
  184. =begin
  185.   Entangle it prevent JUMPING and running
  186. =end
  187.      if battler.state?($entangle_state_id)
  188.           battler.now_x_speed = 0
  189.           battler.now_y_speed = 0
  190.           battler.motion.dashing = false
  191.      end 
  192.  
  193. =begin
  194.   Float, makes you fly in air
  195. =end
  196.      if battler.state?($float_state_id)
  197.           @float_duration = 0 if @float_duration == nil
  198.           @float_duration  += 1
  199.           if @float_duration <= 400
  200.               battler.now_y_speed += 1
  201.                  if battler.now_y_speed > 3
  202.                        battler.now_y_speed = 0
  203.                  end
  204.           else
  205.               battler.remove_state($float_state_id)
  206.           end    
  207.      end       
  208.  
  209. =begin
  210.   Sleep, cant act it will wake up in certain duration
  211. =end
  212.      if battler.state?($sleep_state_id)
  213.           @sleep_duration = rand(1000) if @sleep_duration == nil
  214.           @sleep_duration  += 1
  215.           if @sleep_duration <= 1000
  216.               battler.motion.do_down
  217.               battler.motion.blowning = true
  218.               battler.motion.knock_back_duration = 10
  219.           else
  220.               battler.motion.blowning = false
  221.               battler.motion.clear
  222.               battler.motion.do_jump
  223.               battler.remove_state($sleep_state_id)
  224.               @status_window_needed_to_refresh = true
  225.           end
  226.      end
  227.     
  228. =begin
  229.      DEMI STATE
  230. =end
  231.                  if battler.state?($demi_state_id)
  232.                        @hp_lost_duration  = 0 if @hp_lost_duration == nil
  233.                        @hp_lost_duration += 1
  234.                        if @hp_lost_duration  <= rand(350)
  235.                             battler.bail_demi
  236.                             battler.damage_pop = true
  237.                        else
  238.                             battler.remove_state($demi_state_id)
  239.                             @hp_lost_duration  = 0
  240.                        end
  241.                     @status_window_needed_to_refresh = true
  242.                  end#end if
  243.  
  244. =begin
  245.      HEX STATE
  246. =end
  247.                  if battler.state?($hex_state_id)
  248.                             battler.bail_hex
  249.                             battler.damage_pop = true
  250.                             battler.remove_state($hex_state_id)
  251.                     @status_window_needed_to_refresh = true
  252.                  end#end if
  253.                 
  254. =begin
  255.      CURSED STATE
  256. =end
  257.                  if battler.state?($curse_state_id)
  258.                        if rand(100) >= 75 and ( @handle_battler.motion.guarding? or
  259.                           battler.motion.jub_attack_connect_f > 0)
  260.                           battler.bail_poison
  261.                           battler.damage_pop = true
  262.                           battler.motion.knock_back_duration = 2
  263.                           @status_window_needed_to_refresh = true
  264.                        end
  265.                  end#end if                
  266.                 
  267. =begin
  268.      SHIELD STATE
  269. =end
  270.                  if battler.state?($shield_state_id)
  271.                     if battler.motion.guarding? and rand(100) >= 90
  272.                          battler.motion.hit_invincible_duration = 10 #makes battler invincible
  273.                          battler.blink = true
  274.                     end
  275.                  end
  276.                 
  277. =begin
  278.      GHOST STATE
  279. =end
  280.                  if battler.state?($ghost_state_id)
  281.                     if rand(100) >= 85
  282.                          battler.motion.hit_invincible_duration = 10 #makes battler invincible
  283.                          battler.blink = true
  284.                     end
  285.                  end                
  286.        
  287. =begin
  288.      Berserk STATE
  289. =end
  290.                  if @handle_battler.state?($berserk_state_id) and @handle_battler.is_a?(Game_Actor)
  291.                       if rand(1000) == 1
  292.                          battler.remove_state($berserk_state_id)
  293.                       else
  294.                          @handle_battler.ai.update
  295.                       end
  296.                    end
  297.         end #end State Cycling
  298.         bail_states
  299.     end
  300.  
  301.   alias bail_state_handler update_handling
  302.   def update_handling
  303.     
  304. # BERSERK STATE RESTRICTION    
  305.      if @handle_battler.state?($berserk_state_id)
  306.         if Input.trigger?(KEY_MEMBER_CHANGE)
  307.            $game_system.se_play($data_system.buzzer_se)
  308.         end
  309.         if Input.trigger?(Input::DOWN) and @trigger_duration_key_down > 0
  310.            $game_system.se_play($data_system.buzzer_se)
  311.         end
  312.         if Input.trigger?(KEY_ATTACK)
  313.            $game_system.se_play($data_system.buzzer_se)
  314.         end
  315.         if Input.trigger?(KEY_SKILL)
  316.            $game_system.se_play($data_system.buzzer_se)
  317.         end
  318.         if Input.trigger?(KEY_JUMP) or
  319.            (Input.trigger?(Input::UP) and @trigger_duration_key_up > 0)
  320.            $game_system.se_play($data_system.buzzer_se)
  321.         end
  322.         if Input.press?(KEY_GUARD) and !@handle_battler.motion.blowning
  323.            $game_system.se_play($data_system.buzzer_se)
  324.         end
  325.      else
  326.         bail_state_handler
  327.      end
  328. # END BERSERK STATE
  329.   end
  330. end
  331.  
Expand to see the code.


FMBS ITEM FIX
Content Hidden Show
  1.  
  2. =begin
  3. =begin
  4. FMBS ITEM FIX ver 1.0
  5. BY iqbal_0k A.K.A B@!LWORLD
  6.  
  7. Credit & Thanks
  8.            - XRXS for this great battle system
  9.            - Verdeni in RMXP.ORG that find revival item bugs (thanks man)
  10.  
  11. FEATURE 1.0 (JUNE 9 2008) NEW
  12.   - FIX ALL SCOPE for item (ALL ALLIES, ALL ALLIES HP 0, ALL ENEMIES)
  13.      this will immediately make effect for all scope item
  14.   - FIX REVIVAL ITEM bugs
  15.   - FIX HELP WINDOW ITEM BUG after the actor/enemy selection (Help window still shown after using an item)
  16.     
  17.   HOW to use this script
  18.  
  19.   - Put This script above main and under all default FMBS script
  20. =end
  21.  
  22. class Scene_Battle
  23.   #--------------------------------------------------------------------------
  24.   # * Frame Update (actor command phase : item selection)
  25.   #--------------------------------------------------------------------------
  26.   def update_phase3_item_select
  27.      # Make item window visible
  28.      @item_window.visible = true
  29.      # Update item window
  30.      @item_window.update
  31.      # If B button was pressed
  32.      if Input.trigger?(Input::B)
  33.         # Play cancel SE
  34.         $game_system.se_play($data_system.cancel_se)
  35.         # End item selection
  36.         end_item_select
  37.         return
  38.      end
  39.      # If C button was pressed
  40.      if Input.trigger?(Input::C)
  41.         # Get currently selected data on the item window
  42.         @item = @item_window.item
  43.         # If it can't be used
  44.         unless $game_party.item_can_use?(@item.id)
  45.            # Play buzzer SE
  46.            $game_system.se_play($data_system.buzzer_se)
  47.            return
  48.         end
  49.         # Play decision SE
  50.         $game_system.se_play($data_system.decision_se)
  51.         # Set action
  52.         @active_battler.current_action.item_id = @item.id
  53.         # Make item window invisible
  54.         @item_window.visible = false
  55.         # If effect scope is single enemy
  56.         if @item.scope == 1
  57.            # Start enemy selection
  58.            start_enemy_select
  59.            # if effect scope is for all enemies
  60.         elsif @item.scope == 2
  61.            @target_battlers = $game_troop.enemies
  62.            # End item selection
  63.            end_item_select
  64.            #run item effect
  65.            make_item_action_result
  66.            @status_window_needed_to_refresh = true
  67.         # If effect scope is single ally
  68.         elsif @item.scope == 3 or @item.scope == 5
  69.            # Start actor selection
  70.            start_actor_select
  71.         # If effect scope is for all ally's
  72.         elsif @item.scope == 4
  73.            @target_battlers = $game_party.actors
  74.            # End item selection
  75.            end_item_select
  76.            #run item effect
  77.            make_item_action_result
  78.            @status_window_needed_to_refresh = true
  79.         # If effect scope is for all ally's HP 0
  80.         elsif @item.scope == 6
  81.            #cycling all actor to find the dead
  82.            for @battler in $game_party.actors
  83.               if @battler != nil and @battler.hp0?
  84.                  @target_battlers.push(@battler)
  85.               end
  86.            end
  87.            # End item selection
  88.            end_item_select
  89.            #run item effect
  90.            make_item_action_result
  91.            @status_window_needed_to_refresh = true
  92.         # is for self
  93.         else
  94.            # End item selection
  95.            end_item_select
  96.            #run item effect
  97.            make_item_action_result
  98.            #next Phase
  99.            @phase = 4
  100.            @phase4_step = 4
  101.            update_phase4_step6
  102.            # go back to menu       
  103.            @phase = 1
  104.            @status_window_needed_to_refresh = true
  105.            @xcam_z_destination = 185
  106.         end
  107.         return
  108.      end
  109.   end
  110.  
  111.   alias bail_item_handling update_handling
  112.   def update_handling
  113.      bail_item_handling
  114.      @help_window.visible = false if @help_window.visible == true
  115.   end
  116.  
  117.   def Bailworld(scope)
  118.      # Clear Target
  119.      @target_battlers = []
  120.      # If battler performing action is actor
  121.      if @active_battler.is_a?(Game_Actor)
  122.         # Branch by effect scope
  123.         case scope
  124.        
  125.         when 1  # single enemy
  126.            index = @active_battler.current_action.target_index
  127.            @target_battlers.push($game_troop.smooth_target_enemy(index))
  128.           
  129.         when 2  # all enemies
  130.            for enemy in $game_troop.enemies
  131.               if enemy.exist?
  132.                  @target_battlers.push(enemy)
  133.               end
  134.            end
  135.           
  136.         when 3  # single ally
  137.            index = @active_battler.current_action.target_index
  138.            @target_battlers.push($game_party.smooth_target_actor(index))
  139.           
  140.         when 4  # all allies
  141.            for actor in $game_party.actors
  142.               if actor.exist?
  143.                  @target_battlers.push(actor)
  144.               end
  145.            end
  146.           
  147.         when 5  # single ally (HP 0)
  148.            index = @active_battler.current_action.target_index
  149.            actor = $game_party.actors[index]
  150.            if actor != nil and actor.hp0?
  151.               @target_battlers.push(actor)
  152.            end
  153.           
  154.         when 6  # all allies (HP 0)
  155.            for actor in $game_party.actors
  156.               if actor != nil and actor.hp0?
  157.                  @target_battlers.push(actor)
  158.               end
  159.            end
  160.           
  161.         when 7  # user
  162.            @target_battlers.push(@active_battler)
  163.         end
  164.      end
  165.   end 
  166.  
  167.   def make_item_action_result
  168.     
  169.      #Clear Help Window
  170.      @help_window.visible = false
  171.     
  172.      #Get item
  173.      @item = $data_items[@active_battler.current_action.item_id]
  174.      # If unable to use due to items running out
  175.      unless $game_party.item_can_use?(@item.id)
  176.         # Shift to step 1
  177.         @phase4_step = 1
  178.         return
  179.      end
  180.      # If consumable
  181.      if @item.consumable
  182.         # Decrease used item by 1
  183.         $game_party.lose_item(@item.id, 1)
  184.      end
  185.      # Display item name on help window
  186.      # @help_window.set_text(@item.name, 1)
  187.     
  188.      # Set animation ID
  189.      @animation1_id = @item.animation1_id
  190.      @animation2_id = @item.animation2_id
  191.     
  192.      # Set common event ID
  193.      @common_event_id = @item.common_event_id
  194.     
  195.      # Decide on target
  196.      index = @active_battler.current_action.target_index
  197.      target = $game_party.smooth_target_actor(index)
  198.     
  199.      # Set targeted battlers
  200.      Bailworld(@item.scope)
  201.     
  202.      #Make Animation
  203.      target.animation_id = @animation2_id 
  204.      target.animation_hit = true
  205.     
  206.           for target in @target_battlers             
  207.              # Apply item effect
  208.              target.item_effect(@item)
  209.           end
  210.     end
  211. end
  212.  
Expand to see the code.

ADDONS

DYNAMIC STATUS ICONS
Content Hidden Show
  1.  
  2. =begin
  3. Dynamic Icon States ver BETA                                     BY Iqbal_0k A.K.A B@!LWORLD
  4.                                                                       ;;;;;;         TESTED & EDIT march 18 2008
  5.  FAQ
  6.  
  7.  history
  8.     Ver Beta compiled and tested in march 18 2009
  9. Feature (Ver Beta) :   - Change text based states to icon based states
  10.                                 - Dynamicly set displayed states icon inside the game with syntax "$max_icons = n" n = número that you want the most
  11.                                 - Automaticly removed next (infected) states
  12.                                 - Designed for FMBS Battle System by XRXS
  13.                                 - if state rating is higher than previous state then i change their position
  14.  
  15.      Credit & thanks
  16.            - XRXS for his great Battle system (FMBS)
  17.            - ... and you for using my script
  18.     
  19. FAQ          
  20.  Q : instruction?
  21.  A : Place this script above main and add this syntax "$max_icons = nil" in Scene_title below line 30
  22.           
  23.  Q : How To add new icons ?
  24.  A : Simply just create in folder graphics\icons\your_states_icons_name_based_on_database.png
  25.  
  26.  Q : How To add or substract maximum states that will displayed and take effect?
  27.  A : Go to line 42 or search $max_icons or you can call it via event script
  28.        ex : $max_icons = 4 (it means you changed maximum number of showing icon to 4)
  29.  
  30.  Q : can i used your states icon script?
  31.  A : yeah my script is free for both commercial and free games (credit me please)
  32.  
  33.  Q : What is Compatibility ?
  34.  A : - 41% works with sdk (i'm not sure, if you use the sdk, the game speed may decrease rapidly)
  35.        - 99% works with FMBS battle System, default battle system
  36.        - 90% works with cms
  37.        - 70% work with exotic cbs-es, rtab (a little modify in their states window if they use command "draw_actor_state")
  38.        - 70% work with abs, tbs (a little modify in their hud if they dont use command "draw_actor_state")
  39.                        SORRY for my bad english usually i write spanish and indonesian language
  40. =end
  41. #============================================================================================
  42. #INITIALIZE WINDOW_BASE
  43. #============================================================================================
  44. class Window_Base < Window
  45.   def mode_states_icon(battler, width, need_normal) #based from window_base
  46.      states = [] #initialize the states arrays
  47.      #here is the maximum number of icon, if you change it to > 6 then you'll need a little modify the hud/window itself (if in FMBS)
  48.      $max_icons = 6 if $max_icons == nil #(for default rpg maker system use max_icon <= 4)
  49.     
  50. #DON'T TOUCH OR EDIT BELOW THIS LINE
  51. #============================================================================================
  52.  
  53.      for i in battler.states
  54.         if battler.hp != 0 then
  55.            states.push($data_states[i]) #insert the states in array's
  56.            if states[$max_icons] != nil#condition if states[$max_icons] not empty
  57.               for j in battler.states
  58.                  if states[i] != states[$max_icons] and states[$max_icons] != states[j]
  59.                     battler.remove_state(i) #Kick the states out of battler body
  60.                  end
  61.               end          
  62.            end
  63.         else
  64.            for k in battler.states
  65.               battler.remove_state(i)
  66.               break
  67.            end
  68.            battler.add_state(1)
  69.            states.push($data_states[1])
  70.         end
  71.      end
  72.      return states # give value to caller script
  73.   end
  74.  
  75.   def draw_actor_state(actor, x, y, width = 90) #based from window_base
  76.      icon_state = mode_states_icon(actor, width, false) #take states from def
  77.      iqbal = [] #initialize buffer array that used to convert inttostr
  78.      for i in 0...icon_state.size  #Do loops
  79.         iqbal.push(icon_state[i].name)
  80.         bitmap = RPG::Cache.icon(iqbal[i])
  81.         self.contents.blt(x + (24 * i), y + 4, bitmap, Rect.new(0, 0, 24, 24))
  82.      end #end for
  83.   end #end def
  84. end #end class
Expand to see the code.


ENHANCEMENT 1.7

Quote:
TXT format (there not enough room for me to use spoiler  :crazy:)

CBE 1.7 B Script

Current CBE Feature Show
  1.  
  2. NEW 1.7
  3. - Tales of Abbys Style SKILL WINDOWS
  4. - FORCE SKILL MODE
  5. - FIX AI BUGS
  6. - Make more option for customization
  7. - FIX ENHANCED ESCAPE SYSTEM
  8. - FIX Default Skill item on skill window class
  9. - FIX Default Skill and Equip menu in battle
  10. - Different ATTACK / SKILL MODE (SEMI, AUTO AND MANUAL)
  11.  
  12. OLD Version (DESCENDING)
  13. - FIX Animated faces system problems
  14. - ENHANCED ESCAPE SYSTEM
  15. - More window control
  16. - New Skill Name Window
  17. - Improved AI in battle
  18. - Fix enemy combo windows lag problems
  19. - Fix Best performance bugs
  20. - Added enemy combo windows
  21. - Added enemy name windows
  22. - Modify Default RMXP Damage so it'll looks like tales of abbys damage
  23. - Modify Combo hit display so it will be lagless and easy to customize
  24. - Adding animation when level up, gain new skill (set this to 0 to disable this feature)
  25. - Adding Outro Controls (Level up, Gain skill and enable battle status)
  26. - Adding face's system like in tales of abys
  27. - Fix Battle status position
  28. - Fix Camera move when hero is in berserk state
  29. - Fix Showing enemy name bug's ("Fix Name Position")
  30. - Fix victory bug when you used 4 battlers
  31. - ALL actor now use victory pose when winning the battlers
  32. - Many people requesting camera shift automaticly not with a key pressed
  33. - Custom Battle HUD (You can choose up to 12 different style's)
  34. - Fixed Self.Bitmap bugs
  35. - Paused Battler before battle begin
  36. - Improved custom escape
  37. - Change distance position of enemy and hero
  38. - Show enemy location when battle is starting
  39. - Replace Escape timer with escape probability
  40. - Show enemy name pop up when battle is starting
  41. - delete escape command in battle menu
  42. - Change meteor boulder to escape
  43.  
Expand to see the code.


DEMO
Content Hidden Show
Updated Item Fix 1.0, State Fix 1.1, Action Message 1.2
http://www.mediafire.com/?n20mcy9jl9q

A Demo with current CBE 1.7 b
http://www.mediafire.com/?c4ye1mktgxt

OlD DeMo
http://www.mediafire.com/?oy01js1xssj (UPDATED APRIL 9 2008)


SCREENSHOT

here's Screenies
Content Hidden Show
Image


Author Notes
if you find another bug post it here with screenshot if possible.
completly awesome. At this rate, we will finally be able to use this script
fully and bugless!

Ziddu is somehow lame and it dun let me download the demo :( please reupload on mediafire and company :)
can we get some screens pls
When I tried to enter to the Skills menu, it gave me an error because some "Loki_11910_2" icon was missing. You should fix that. But, it's great that someone finnally has fixed some problems with the script and has even added some extra features, well done ^^.
I also got "Loki_11910_2" missing while trying to access the skill menu, but apart from that it's awesome
sorry, i was forgot to rename that icon :P

Screnies ? Look on spoiler

Fixed, please proceed to http://www.mediafire.com/?2onvg5fvz3z
I got an Unable to found Sword2 or something, when trying to switch chars.
EDIT: Happened when some guy was about to use a skill.
those bug again, well when i had a time i'll upload my unique rtp package and my newer state fix version, seriously i'm still working for battle message in fmbs. just for now rename other animation in graphics\animation folder to sword2 (i'm sorry about this)
Note : if you had VX RTP copy Sword2 from InstallationDirectory\RGSS2\Graphics\Animation
         To your InstallationDirectory\RGSS\Graphics\Animation
(BUG FIXED DEMO MODIFIED)
Bump Item Fixed, let me know if you find bug again i'll try to fixing it
I think you'll have to fix... the download link ^^u. I don't know if anyone else can download the latest version, but i can't download anything from that website. Could you upload the demo to another one?
link updated
hey, can FMBS:

- show the skill name when used the skill?
- different voices when used skill
- show animation?
- battle result just like tales of eternia?
thx
(if you do not know Spanish, this translates)
Gracias iqbal_0k  por mejorar el sistema FMBS_ITEM_FIX... por lo que veo el demo y tutorial que presente (uff hace un tiempo ya) a pasado por varios foros... jejeje... espero que las ultimas mejoras que realices sean espectaculares, por mi parte estoy desarrollando un tutorial mas avanzado y un demo con las ultimas mejoras que has realizado y algunos detalles que e encontrado ultimamente...

revee... Se pueden mostrar los nombres de los skill, pero como el sistema trabaja en base a skills (el sistema no reconoce ataques basicos o especial), te mostraria demasiados nombres y esto produciria lag, ademas de no ser muy atractivo a la vista. Tambien se pueden crear diferentes voces para cada ataque... solo debes revizar el script... y con respecto al battle result tipo tales of eternia o director cut, estoy trabajando en eso...

Seria un agrado que alguien mas se sumara en mejorar este sistema de batalla, pero por ahora estoy muy feliz de que alguien mas, aparte de mi, se apasionara tanto por este battle system... es un gran sistema que pocos usan por su grado de complejidad y la falta de informacion...

Bueno otra vez decir a iqbal_0k... gracias, sige con esa pasion... suerte...

Xaoooo pescao

                            -Hiliart ( Miembro del GD Spiral Dreams)-
Hiliart,
apesadumbrado, pero i doesn' t sabe cualquier cosa sobre la escritura,  ¿Así pues, puede usted por favor demostrarme la escritura que necesario para cambiar las voces? y, y usted puede transferir cuentos de la fe, el extremo de la batalla parece apenas como juegos de los cuentosâ ‚¬ ¦ esperaré su nueva versión parcial de programa avanzadaâ ‚¬ ¦ véale pronto(
(i translate this with babel fish ^^)
NEW ACTION MESSAGE FOR FMBS

ACTION BATTLE MESSAGE FOR FMBS

Instruction :
Put this below original fmbs script or above main
Content Hidden Show
#-------------------------------------------------------------------------------
=begin
ACTION MESSAGE DATABASE VER 1.2 (Tested and edit on June 8th 2008)

                                                    BY iqbal_0k A.K.A B@!LWORLD
                                                   
Instruction : - Place above main and below other fmbs and my Addons Script
             - Set Your action message in part one

Credit & Thanks - XRXS for this great battle system

Feature :(april 7th 2008)
         - Add Action Message in battle (Not in Help windows)
         - Random message shown in battle
         - Easy Modification (for beginner scripter ... like me)
         - Custom Windowskin (you can change the windowskin on line 100)
         
STATIC VER 1.1 Feature : (april 10th 2008 : FINAL)
         - Fixed win message glitch
         - Added New Line (now maximum line is 3) may be increasing if you want it
         - Fixed skill Message Glitch
         - Added Global deactivated/ activated, use call script command on event ptocessing and write this
           without quotes "FMBS_BM = true/false" False will be deactivated the windows
         - added HASH SKILL (so different message on each skill will be shown, aren't that neat)
         - NOW Your Party and enemy can talk when they attack, win, escape or using skill (Just set the $btalk to false if you want only
           handle battler message that shown)
         - completely use Faces in graphics/faces2 directory
           If a battler is a enemy or other than 4 heroes then you must make picture of an enemy in your
           faces2\enemy Name.png (NOT CHAR NAME)
         - you can switched off the faces by using $i_like_cat = false

STATIC VER 1.2 Feature : (June 8th 2008)
         - Compacting script and make compatibility to other fmbs script
         - Correcting some minor bug
         - Not need custom FMBS part 2 anymore
         
BETA Tester : - Hendy_Bejo(Gamedevid) : thanks for Skill message Glitch info man          
=end      
#-------------------------------------------------------------------------------
#===============================================================================
# Â ¦ CONFIGURATION
#===============================================================================
# TOP : the window on top Center on screen (DEFAULT)
# CENTER : The window on center on screen
# BOTTOM : the window on botom Center on the screen

    #Battle message Position
    $battle_message_style = "CENTER"
   
    #active/deactive WINDOWS MESSAGE FEATURE
    $fmbs_bm = true
   
    #ENABLE BATTLER TALK (OTHER THAN HERO YOU CONTROLED (ENEMY and OTHER ALLY's))
    $btalk = true
   
    #ENABLE/DISABLE FACE Pics
    $i_like_cat = true
   
# EMD CONFIGURATION

#===============================================================================
# Â ¦ VOCABULARY
#===============================================================================
module FMBS_BM
 #FILL THIS FOR LINE 1
    MSG_JUMP = ["Haeyah", "Ha"]    
    #HERE SKILL MESSAGE (ID REFER FROM SKILL ID ON DATABASE)
    #syntax :
    # id => ["your message here", "your n Message"]
    # if you add more skill then use this syntax
    # id => ["your message here", "your n Message"],
    #DONT FORGET TO FILL THE NEXT LINE ARRAY
    #0 => is the default message that shown if you're not initializing them
    #if you fill "" on first line {i.e (0=> [""],[""]) then the message boxes is only show your skill name}
   
   
    MSG_SKILL = {
    0 => ["", ""],
    1 => ["Hey, Are you okay ?", "Don't worry i'll heal you", "You're badly injured"],
    2 => ["Hey, Are you okay ?", "Don't worry i'll heal you", "You're badly injured"],
    3 => ["There\'s no way you can defeat us", "ONEGA HEALING"],
    4 => ["DEVINE HEALING !!!", "Do you really think that can hurt me?", "Is that you can do ?"],
    5 => ["This Damn Cursed, BEGONE !!!", "Cure", "You can\'t poison me"],
    83 => ["You\'ll never get away with this", "You\'re good for nothing", "Jump Attacl"],
    85 => ["Purrr...", "Brrrr...", "", ""],
    86 => ["Bzzzzz..", "zzzzzz...", "", ""],
    87 => ["Bzzzzz...", "Growl...", "", ""],
    88 => ["Growl", "Zonk", "", ""],
    89 => ["(Is Looking to Target Silently)", "....", ""],
    90 => ["Gahhh", "Wahhhh"],
    91 => ["Gahhh", "Wahhhh"],
    123 => ["Take This !", "Take That !", "Shooorya", "Heaeyah"]
    }
    MSG_SKILL_CHARGE = ["W00t"] #presshold
    MSG_ESCAPE = ["Not this time, PUNK'S", "FALL BACK, TEAM !!!"]
    MSG_WIN = ["HUURRAY, WE WON !", "That was soo cloose !. hmph"]
    MSG_ITEM = ["Let see what i have in my bag", "Hey, There it is", "Better to use it, now"]
    MSG_STAND_UP = ["Hup", "Haa!", "Hup!"]
    MSG_GUARD_BACK_STEP = ["Not a Chance!", "Missed!", "Where you attacking at?", "Are you Blind?"]
    MSG_GUARD = ["Worthless", "This Script Sucks!"]
   
 #FILL THIS FOR LINE 2
    MSG_JUMP2 = ["", ""]
 
    #HERE SKILL MESSAGE (ID REFER FROM SKILL ID ON DATABASE)
    #syntax :
    # id => ["your message here", "your n Message"]
    # if you add more skill then use this syntax
    # id => ["your message here", "your n Message"],
    #DONT FORGET TO FILL THE ARRAY SAME AS PREV LINE
    #0 => is the default message that shown if you're not initializing them
   
    MSG_SKILL2 = {
    0 => ["", ""],
    1 => ["", "", "Come to me now !"],
    2 => ["", "", "Come to me now !"],
    3 => ["", ""],
    4 => ["", "", "You're Pathetic"],
    5 => ["", "", "with this now"],
    83 => ["", "", ""],
    85 => ["", "", "", ""],
    86 => ["", "", "", ""],
    87 => ["", "", "", ""],
    88 => ["", "", "", ""],
    89 => ["", "", ""],
    90 => ["", ""],
    91 => ["", ""],
    92 => ["", ""],
    123 => ["", "", "", ""]
    }
    MSG_SKILL_CHARGE2 = [""] #presshold
    MSG_ESCAPE2 = ["", "He is damn tough !"]
    MSG_WIN2 = ["At last", ""]
    MSG_ITEM2 = ["", "", ""]
    MSG_STAND_UP2 = ["", "", ""]
    MSG_GUARD_BACK_STEP2 = ["", "", "", ""]
    MSG_GUARD2 = ["", ""]
   
 #FILL THIS FOR LINE 3
    MSG_JUMP3 = ["", ""]
   
    #HERE SKILL MESSAGE (ID REFER FROM SKILL ID ON DATABASE)
    #syntax :
    # id => ["your message here", "your n Message"]
    # if you add more skill then use this syntax
    # id => ["your message here", "your n Message"],
    #DONT FORGET TO FILL THE ARRAY SAME AS PREV LINE
   
    MSG_SKILL3 = {
    0 => ["", ""],
    1 => ["", "", "I\'ll Heal you right away"],
    2 => ["", "", "I\'ll Heal you right away"],
    3 => ["", ""],
    4 => ["", "", "Your damage was healed"],
    5 => ["", "", ""],
    83 => ["", "", ""],
    85 => ["", "", "", ""],
    86 => ["", "", "", ""],
    87 => ["", "", "", ""],
    88 => ["", "", "", ""],
    89 => ["", "", ""],
    90 => ["", ""],
    91 => ["", ""],
    92 => ["", ""],
    123 => ["", "", "", ""]
    }
    MSG_SKILL_CHARGE3 = [""] #presshold
    MSG_ESCAPE3 = ["", ""]
    MSG_WIN3 = ["", ""]
    MSG_ITEM3 = ["", "", ""]
    MSG_STAND_UP3 = ["", "", ""]
    MSG_GUARD_BACK_STEP3 = ["", "", "", ""]
    MSG_GUARD3 = ["", ""]  
 
 #NOTE SIZE FOR ALL MESSAGE MUST BE SAME
 #if you dont to write text simply write "" on the arrays
 #(P.S "Im too lazy to write em regullary, so we can call like FMBS_BM::btalk == true")
end

#MAIN WINDOWS
#
#==============================================================================
# ? Window_Battle_Message
#==============================================================================
class Battle_Message < Window_Base  
 def initialize
   super( 0, 0, 410, 100) #x, y, width, height
   self.contents = Bitmap.new(width - 32, height - 32)
   self.opacity = 255
   @skin_name = "FFXII" #YOUR WINDOWSSKIN NAME
   self.windowskin = RPG::Cache.windowskin(@skin_name)
   self.contents.font.size = 24
   self.visible = false
   self.contents.clear
   refresh
 end
 
 def draw_actor_face2(actor, x, y)
   face = RPG::Cache.character("Faces2/" + actor.character_name, actor.character_hue)
   fw = face.width
   fh = face.height
   src_rect = Rect.new(0, 0, fw, fh)
   self.contents.blt(x - fw / 23, y - fh, face, src_rect)
 end
 
 def draw_enemy_face(x, y)
   face = RPG::Cache.character("Faces2/" + $cute_cat, 0)
   fw = face.width
   fh = face.height
   src_rect = Rect.new(0, 0, fw, fh)
   self.contents.blt(x - fw / 23, y - fh, face, src_rect)
 end
 
 def refresh
   self.contents.clear
   self.contents.font.color = system_color
   self.contents.font.size = 20
   $bat = 0 if $bat == nil
   if $bat == 0
     actor = $game_party.actors[0]
   elsif $bat == 1
     actor = $game_party.actors[1]
   elsif $bat == 2
     actor = $game_party.actors[2]
   elsif $bat == 3
     actor = $game_party.actors[3]
   end
   
   if $fmbs_bm == true
     draw_actor_face2 (actor,0 ,65) if $bat != 4 and $i_like_cat == true
     draw_enemy_face (0 ,65) if $bat == 4 and $i_like_cat == true
     self.contents.draw_text(100, 0, 310, 28, $text_message, 0)if $text_message != nil #x, y, width, height, text, align
     self.contents.draw_text(100, 20, 310, 28, $text_message2, 0)if $text_message2 != nil #x, y, width, height, text, align
     self.contents.draw_text(100, 40, 310, 28, $text_message3, 0)if $text_message3 != nil #x, y, width, height, text, align
   end
 end  
end
Expand to see the code.


part 2
Content Hidden Show
#-------------------------------------------------------------------------------
=begin
Action MESSAGE Battle Processing VER 1.2 (Tested and edit on June 8th 2008)

                                                    BY iqbal_0k A.K.A B@!LWORLD
Requirements:
             - FMBS SYSTEM BY XRXS
             - FMBS MESSAGE Part 2
             
Instruction : - Place above main and below other fmbs and my Addons Script
             - Set Your action message in part one

Credit & Thanks - XRXS for this great battle system

Feature :(april 7th 2008)
         - Add Action Message in battle (Not in Help windows)
         - Random message shown in battle
         - Easy Modification (for beginner scripter ... like me)
         - Custom Windowskin (you can change the windowskin on line 100)
         
STATIC VER 1.1 Feature : (april 10th 2008 : FINAL)
         - Fixed win message glitch
         - Added New Line (now maximum line is 3) may be increasing if you want it
         - Fixed skill Message Glitch
         - Added Global deactivated/ activated, use call script command on event ptocessing and write this
           without quotes "FMBS_BM = true/false" False will be deactivated the windows
         - added HASH SKILL (so different message on each skill will be shown, aren't that neat)
         - NOW Your Party and enemy can talk when they attack, win, escape or using skill (Just set the $btalk to false if you want only
           handle battler message that shown)
         - completely use Faces in graphics/faces2 directory
           If a battler is a enemy or other than 4 heroes then you must make picture of an enemy in your
           faces2\enemy Name.png (NOT CHAR NAME)
         - you can switched off the faces by using $i_like_cat = false

STATIC VER 1.2 Feature : (June 8th 2008)
         - Compacting script and make compatibility to other fmbs script
         - Correcting some minor bug
         - Not need custom FMBS part 2 anymore          
         
BETA Tester : - Hendy_Bejo(Gamedevid) : thanks for Skill message Glitch info man

=end    
#-------------------------------------------------------------------------------
#==============================================================================
# Â ¦ Scene_Battle
#==============================================================================
class Scene_Battle
 alias fmbs_bm_main main
 def main
   fmbs_bm_main
   @windows.dispose
 end
 
 alias bail_fmbs_bm_phs1 start_phase1
 def start_phase1
   bail_fmbs_bm_phs1
   @windows=Battle_Message.new
   if $text_message == nil or $text_message == ""
     @windows.visible = false
   else
     @windows.visible = true
   end    

   $battle_message_style = "TOP" if $battle_message_style == nil
   
   if $battle_message_style == "TOP"
      @windows.x = 120
      @windows.y = 0
   elsif $battle_message_style == "CENTER"
      @windows.x = 120
      @windows.y = 140
   elsif $battle_message_style == "BOTTOM"
      @windows.x = 120
      @windows.y = 380
   end
 end
 
 alias fmbs_bm_item_sel update_phase3_actor_select
 def update_phase3_actor_select
   fmbs_bm_item_sel
   if Input.trigger?(Input::C)
     if @item_window != nil
           if $fmbs_bm == true
             @proc = rand(FMBS_BM::MSG_ITEM.size)
             if @active_battler == $game_party.actors[0]
                 $bat = 0
               elsif @active_battler == $game_party.actors[1]
                 $bat = 1  
               elsif @active_battler == $game_party.actors[2]
                 $bat = 2
               elsif @active_battler == $game_party.actors[3]
                 $bat = 3
               else
                 $bat = 4
             end
             @windows.visible = true
             $text_message = FMBS_BM::MSG_ITEM[@proc].clone
             $text_message2 = FMBS_BM::MSG_ITEM2[@proc].clone
             $text_message3 = FMBS_BM::MSG_ITEM3[@proc].clone
             @duration = 10
             @windows.refresh
           end
     end
   end
 end  
   
 alias fmbs_bm_start_phase5 start_phase5
 def start_phase5
   fmbs_bm_start_phase5
   @windows.visible = false
 end
 
 alias fmbs_bm_update_phase5 update_phase5
 def update_phase5
   if @phase5_whiteout_duration >= 0
     @mulan = false if @mulan == nil
           if @mulan == false
            if $fmbs_bm == true
             @proc = rand(FMBS_BM::MSG_WIN.size)
             if @active_battler == $game_party.actors[0]
                 $bat = 0
               elsif @active_battler == $game_party.actors[1]
                 $bat = 1  
               elsif @active_battler == $game_party.actors[2]
                 $bat = 2
               elsif @active_battler == $game_party.actors[3]
                 $bat = 3
               else
                 $bat = 4
             end
             @windows.visible = true
             $text_message = FMBS_BM::MSG_WIN[@proc].clone
             $text_message2 = FMBS_BM::MSG_WIN2[@proc].clone
             $text_message3 = FMBS_BM::MSG_WIN3[@proc].clone
             @duration = 20
            end
           end
     
     @phase5_whiteout_duration -= 1
     if @phase5_whiteout_duration == 0
       @windows.refresh        
     elsif @phase5_whiteout_duration == -1
     end
     return
   end
   unless @phase5_voice_done
     @final_battler.motion.do_won_cry
     @phase5_voice_done = true
     @windows.visible = false
     $text_message = nil
     $text_message2 = nil
     $text_message3 = nil
     @mulan = true
   end
   xrxs_bs1_update_phase5
 end
 
 alias fmbs_bm_dynamic_handling update_handling
 def update_handling
   fmbs_bm_dynamic_handling
   if $fmbs_bm == true
     @whatever = 0  if @whatever == nil
     @duration = -1 if @duration == nil
     @duration -= 1 if @duration != nil and @duration > 0 and @windows.visible == true
     @windows.visible = false if @windows.visible == true and @duration == 0
     if @duration == 0
       $text_message = nil
       $text_message2 = nil
       $text_message3 = nil
     end
   end

  #fix item help window glitch
   @help_window.visible = false if @help_window.visible == true
   
   if Input.press?(KEY_GUARD)
   else
     @whatever = 0  if @whatever != 0
   end
   
   if @escaping
     if @escape_time_now >= @escape_time_max
           if $fmbs_bm == true
             if @active_battler == $game_party.actors[0]
                 $bat = 0
               elsif @active_battler == $game_party.actors[1]
                 $bat = 1
               elsif @active_battler == $game_party.actors[2]
                 $bat = 2
               elsif @active_battler == $game_party.actors[3]
                 $bat = 3
               else
                 $bat = 4
                 $cute_cat = @active_battler.name
             end
             @proc = rand(FMBS_BM::MSG_ESCAPE.size)
             @windows.visible = true
             $text_message = FMBS_BM::MSG_ESCAPE[@proc].clone
             $text_message2 = FMBS_BM::MSG_ESCAPE[@proc].clone
             $text_message3 = FMBS_BM::MSG_ESCAPE[@proc].clone
             @duration = 20
             @windows.refresh
           end
         end
       return
     end
   
   if Input.trigger?(KEY_MEMBER_CHANGE)
     @windows.visible = false
     @windows.refresh
     @status_window.refresh
   end
   
   if @handle_battler.dead?
     @windows.visible = false
     @windows.refresh
     return
   end

   frict_break = true
   air_resist  = true

   loop do
     #
     if Input.trigger?(KEY_ATTACK)
               
       if @handle_battler.motion.now_jumps == 0
         if @handle_battler.motion.jub_attack_connect_f > 0
           if @handle_battler.motion.can_jub_attack3?
           else
           end
         elsif @handle_battler.motion.dashing
         elsif (@handle_battler.direction == 1 and Input.press?(Input::RIGHT)) or
            (@handle_battler.direction ==-1 and Input.press?(Input::LEFT))
         elsif Input.press?(Input::UP)
         elsif Input.press?(Input::DOWN)
         else
         end
       else
       #
         if (@handle_battler.direction == 1 and Input.press?(Input::RIGHT)) or
            (@handle_battler.direction ==-1 and Input.press?(Input::LEFT))
         elsif Input.press?(Input::UP)
         elsif Input.press?(Input::DOWN)
         elsif (@handle_battler.direction ==-1 and Input.press?(Input::RIGHT)) or
               (@handle_battler.direction == 1 and Input.press?(Input::LEFT))
         else
         end
       end
     end

       
     #
     if Input.trigger?(KEY_JUMP) or
       (Input.trigger?(Input::UP) and @trigger_duration_key_up > 0)
       if @handle_battler.motion.now_jumps < @handle_battler.max_jumps
         if @handle_battler.motion.dashing            
           if $fmbs_bm == true
             $bat = 0
             @proc = rand(FMBS_BM::MSG_JUMP.size)
             @windows.visible = true
             $text_message = FMBS_BM::MSG_JUMP[@proc].clone
             $text_message2 = FMBS_BM::MSG_JUMP2[@proc].clone
             $text_message3 = FMBS_BM::MSG_JUMP3[@proc].clone
             @duration = 20
             @windows.refresh
           end
         else
           
           if $fmbs_bm == true
             $bat = 0
             @proc = rand(FMBS_BM::MSG_JUMP.size)
             @windows.visible = true
             $text_message = FMBS_BM::MSG_JUMP[@proc].clone
             $text_message2 = FMBS_BM::MSG_JUMP2[@proc].clone
             $text_message3 = FMBS_BM::MSG_JUMP3[@proc].clone
             @duration = 20
             @windows.refresh
           end
         end
       end
     end
   if @handle_battler.motion.guardable?
     #
     if Input.press?(KEY_GUARD) and !@handle_battler.motion.blowning
       if @handle_battler.motion.guarding? and
          ((Input.trigger?(Input::LEFT) and @handle_battler.direction == 1) or
           (Input.trigger?(Input::RIGHT)and @handle_battler.direction ==-1))            
           
           if $fmbs_bm == true
             $bat = 0
             @proc = rand(FMBS_BM::MSG_GUARD_BACK_STEP.size)
             @windows.visible = true
             $text_message = FMBS_BM::MSG_GUARD_BACK_STEP[@proc].clone
             $text_message2 = FMBS_BM::MSG_GUARD_BACK_STEP2[@proc].clone
             $text_message3 = FMBS_BM::MSG_GUARD_BACK_STEP3[@proc].clone
             @duration = 20
             @windows.refresh
           end  
       else
           if $fmbs_bm == true
             $bat = 0
             @proc = rand(FMBS_BM::MSG_GUARD.size)
             @whatever += 1
             @windows.visible = true              
             $text_message = FMBS_BM::MSG_GUARD[@proc].clone
             $text_message2 = FMBS_BM::MSG_GUARD2[@proc].clone
             $text_message3 = FMBS_BM::MSG_GUARD3[@proc].clone
             @windows.refresh if @whatever == 1
           end
       end
     end
   end
   if @handle_battler.motion.handling_priority == 0
     if @handle_battler.motion.blowning and
       ((Input.trigger?(Input::LEFT)  and @trigger_duration_key_right >= 0) or
        (Input.trigger?(Input::RIGHT) and @trigger_duration_key_left  >= 0))
     end
     if @handle_battler.motion.downing
       if Input.trigger?(Input::UP) or
          Input.trigger?(Input::DOWN) or
          Input.trigger?(Input::RIGHT) or
          Input.trigger?(Input::LEFT)
         
           if $fmbs_bm == true
             $bat = 0
             @proc = rand(FMBS_BM::MSG_STAND_UP.size)
             @windows.visible = true
             $text_message = FMBS_BM::MSG_STAND_UP[@proc].clone
             $text_message2 = FMBS_BM::MSG_STAND_UP2[@proc].clone
             $text_message3 = FMBS_BM::MSG_STAND_UP3[@proc].clone
             @duration = 20
             @windows.refresh
           end
       end
       break
     end

     if Input.trigger?(KEY_MENU)
       @windows.visible = false
       @windows.refresh
       return
     end

     if @handle_battler.motion.now_jumps == 0
       if Input.trigger?(Input::RIGHT) and @trigger_duration_key_right > 1
       elsif Input.trigger?(Input::LEFT) and @trigger_duration_key_left > 1
       end
       
       if Input.press?(Input::RIGHT)
       elsif Input.press?(Input::LEFT)
       elsif Input.press?(Input::DOWN)
       else
         if @handle_battler.motion.dashing
         else
         end
       end
     end
   end
   break
   end

   key = @handle_battler.motion.presshold_key
   if !key.nil? and Input.press?(key)
             
           if $fmbs_bm == true
             $bat = 0
             @proc = rand(FMBS_BM::MSG_SKILL_CHARGE.size)
             @windows.visible = true
             $text_message = FMBS_BM::MSG_SKILL_CHARGE[@proc].clone
             $text_message2 = FMBS_BM::MSG_SKILL_CHARGE2[@proc].clone
             $text_message3 = FMBS_BM::MSG_SKILL_CHARGE3[@proc].clone
             @duration = 20
             @windows.refresh
           end
   end

   if Input.trigger?(Input::UP)
   end
     if Input.trigger?(Input::DOWN)
   end
   if Input.trigger?(Input::RIGHT)
   end
   if Input.trigger?(Input::LEFT)
   end
 end
 
 def make_skill_action_result
   # get skill id
   @skill = $data_skills[@active_battler.current_action.skill_id]
   # substract actor mp with skill cost
   @active_battler.sp += @skill.sp_cost
   # here it goes fmbs battle message for skill
   
           if $fmbs_bm == true
            if @active_battler == @handle_battler
             if FMBS_BM::MSG_SKILL[@skill.id] == nil
               @proc = FMBS_BM::MSG_SKILL[0]
               @proc2 = FMBS_BM::MSG_SKILL2[0]
               @proc3 = FMBS_BM::MSG_SKILL3[0]
               @swt = rand(@proc.size)
               @temps = @proc[@swt]
               @temps2 = @proc2[@swt]
               @temps3 = @proc3[@swt]
               $bat = 0
               @windows.visible = true
               $text_message = @temps.clone + @skill.name.clone
               $text_message2 = @temps2.clone
               $text_message3 = @temps3.clone
               @duration = 20
               @windows.refresh
             else
               @proc = FMBS_BM::MSG_SKILL[@skill.id]
               @proc2 = FMBS_BM::MSG_SKILL2[@skill.id]
               @proc3 = FMBS_BM::MSG_SKILL3[@skill.id]
               @swt = rand(@proc.size)
               @temps = @proc[@swt]
               @temps2 = @proc2[@swt]
               @temps3 = @proc3[@swt]
               $bat = 0
               @windows.visible = true
               $text_message = @temps.clone
               $text_message2 = @temps2.clone
               $text_message3 = @temps3.clone
               @duration = 20
               @windows.refresh
             end
           elsif $btalk == true
               if @active_battler == $game_party.actors[1]
                 $bat = 1
               elsif @active_battler == $game_party.actors[2]
                 $bat = 2
               elsif @active_battler == $game_party.actors[3]
                 $bat = 3
               else
                 $bat = 4
                 $cute_cat = @active_battler.name
               end
               
             if FMBS_BM::MSG_SKILL[@skill.id] == nil
               @proc = FMBS_BM::MSG_SKILL[0]
               @proc2 = FMBS_BM::MSG_SKILL2[0]
               @proc3 = FMBS_BM::MSG_SKILL3[0]
               @swt = rand(@proc.size)
               @temps = @proc[@swt]
               @temps2 = @proc2[@swt]
               @temps3 = @proc3[@swt]
             else
               @proc = FMBS_BM::MSG_SKILL[@skill.id]
               @proc2 = FMBS_BM::MSG_SKILL2[@skill.id]
               @proc3 = FMBS_BM::MSG_SKILL3[@skill.id]
               @swt = rand(@proc.size)
               @temps = @proc[@swt]
               @temps2 = @proc2[@swt]
               @temps3 = @proc3[@swt]
             end
             
               if @temps == ""
                 @windows.visible = true
                 $text_message = @temps.clone + @skill.name.clone
                 $text_message2 = nil
                 $text_message3 = nil
                 @duration = 20
                 @windows.refresh
               else
                 @windows.visible = true
                 $text_message = @temps.clone
                 $text_message2 = @temps2.clone
                 $text_message3 = @temps3.clone
                 @duration = 20
                 @windows.refresh
               end
               
            else
               @windows.visible = false
               @windows.refresh if @windows.visible == true
            end
           end
   
   xrxs_bs1_make_skill_action_result
   # make help window not visible
   @help_window.visible = false
 end
end
Expand to see the code.


please move this thread to line 2 for reserved add ons
Iqbal, do you know tales of faith?
can you make the victory scenes become like one?
and how to make different voices when used different skill?
(show it)
and the picture<<< i made it for FMBS... what do you think?
and help would be appriciated
No i havent playing that game, if you post some screen or a video i might work on it.
to make different voices you'll need to make a animation from rmxp database just blank animation with some se/me on it then go to FMBS part skill below configuration on my demo. i commented some comment how to hit an animation
the victory scenes just like tales of eternia
you can see one here:
http://www.youtube.com/watch?v=obsNU4y9xuw

and iqbal, the picture showed in the left i made for my fmbs game
what do you think?
revee wrote:
the picture showed in the left i made for my fmbs game
what do you think?

thats good, i think. i'll post some of my battler other time
Bumped Another update for Item FIX
This one fixed
     - SCOPE for all enemies, all actor, all actor hp 0 bugs
     - Help window still showing after using an item
Expand to see the code.

this is the script
Content Hidden Show
=begin
FMBS ITEM FIX ver 1.0
BY iqbal_0k A.K.A B@!LWORLD

Credit & Thanks
        - XRXS for this great battle system
        - Verdeni in RMXP.ORG that find revival item bugs (thanks man)

FEATURE 1.0 (JUNE 9 2008) NEW
  - FIX ALL SCOPE for item (ALL ALLIES, ALL ALLIES HP 0, ALL ENEMIES)
    this will immediately make effect for all scope item
  - FIX REVIVAL ITEM bugs
  - FIX HELP WINDOW ITEM BUG after the actor/enemy selection (Help window still shown after using an item)
   
  HOW to use this script
 
  - Put This script above main and under all default FMBS script
=end

class Scene_Battle
  #--------------------------------------------------------------------------
  # * Frame Update (actor command phase : item selection)
  #--------------------------------------------------------------------------
  def update_phase3_item_select
    # Make item window visible
    @item_window.visible = true
    # Update item window
    @item_window.update
    # If B button was pressed
    if Input.trigger?(Input::B)
      # Play cancel SE
      $game_system.se_play($data_system.cancel_se)
      # End item selection
      end_item_select
      return
    end
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Get currently selected data on the item window
      @item = @item_window.item
      # If it can't be used
      unless $game_party.item_can_use?(@item.id)
        # Play buzzer SE
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      # Play decision SE
      $game_system.se_play($data_system.decision_se)
      # Set action
      @active_battler.current_action.item_id = @item.id
      # Make item window invisible
      @item_window.visible = false
      # If effect scope is single enemy
      if @item.scope == 1
        # Start enemy selection
        start_enemy_select
        # if effect scope is for all enemies
      elsif @item.scope == 2
        @target_battlers = $game_troop.enemies
        # End item selection
        end_item_select
        #run item effect
        make_item_action_result
        @status_window_needed_to_refresh = true
      # If effect scope is single ally
      elsif @item.scope == 3 or @item.scope == 5
        # Start actor selection
        start_actor_select
      # If effect scope is for all ally's
      elsif @item.scope == 4
        @target_battlers = $game_party.actors
        # End item selection
        end_item_select
        #run item effect
        make_item_action_result
        @status_window_needed_to_refresh = true
      # If effect scope is for all ally's HP 0
      elsif @item.scope == 6
        #cycling all actor to find the dead
        for @battler in $game_party.actors
          if @battler != nil and @battler.hp0?
            @target_battlers.push(@battler)
          end
        end
        # End item selection
        end_item_select
        #run item effect
        make_item_action_result
        @status_window_needed_to_refresh = true
      # is for self
      else
        # End item selection
        end_item_select
        #run item effect
        make_item_action_result
        #next Phase
        @phase = 4
        @phase4_step = 4
        update_phase4_step6
        # go back to menu     
        @phase = 1
        @status_window_needed_to_refresh = true
        @xcam_z_destination = 185
      end
      return
    end
  end
 
  alias bail_item_handling update_handling
  def update_handling
    bail_item_handling
    @help_window.visible = false if @help_window.visible == true
  end
 
  def Bailworld(scope)
    # Clear Target
    @target_battlers = []
    # If battler performing action is actor
    if @active_battler.is_a?(Game_Actor)
      # Branch by effect scope
      case scope
     
      when 1  # single enemy
        index = @active_battler.current_action.target_index
        @target_battlers.push($game_troop.smooth_target_enemy(index))
       
      when 2  # all enemies
        for enemy in $game_troop.enemies
          if enemy.exist?
            @target_battlers.push(enemy)
          end
        end
       
      when 3  # single ally
        index = @active_battler.current_action.target_index
        @target_battlers.push($game_party.smooth_target_actor(index))
       
      when 4  # all allies
        for actor in $game_party.actors
          if actor.exist?
            @target_battlers.push(actor)
          end
        end
       
      when 5  # single ally (HP 0)
        index = @active_battler.current_action.target_index
        actor = $game_party.actors[index]
        if actor != nil and actor.hp0?
          @target_battlers.push(actor)
        end
       
      when 6  # all allies (HP 0)
        for actor in $game_party.actors
          if actor != nil and actor.hp0?
            @target_battlers.push(actor)
          end
        end
       
      when 7  # user
        @target_battlers.push(@active_battler)
      end
    end
  end 
 
  def make_item_action_result
   
    #Clear Help Window
    @help_window.visible = false
   
    #Get item
    @item = $data_items[@active_battler.current_action.item_id]
    # If unable to use due to items running out
    unless $game_party.item_can_use?(@item.id)
      # Shift to step 1
      @phase4_step = 1
      return
    end
    # If consumable
    if @item.consumable
      # Decrease used item by 1
      $game_party.lose_item(@item.id, 1)
    end
    # Display item name on help window
    # @help_window.set_text(@item.name, 1)
   
    # Set animation ID
    @animation1_id = @item.animation1_id
    @animation2_id = @item.animation2_id
   
    # Set common event ID
    @common_event_id = @item.common_event_id
   
    # Decide on target
    index = @active_battler.current_action.target_index
    target = $game_party.smooth_target_actor(index)
   
    # Set targeted battlers
    Bailworld(@item.scope)
   
    #Make Animation
    target.animation_id = @animation2_id 
    target.animation_hit = true
   
       for target in @target_battlers        
         # Apply item effect
         target.item_effect(@item)
       end
   end
end
Expand to see the code.
i found bugs,
when there's more than one actor in battle, only one person animate the winning pose..
and =
when used magic, can it wait for certain period(casting), and then unleash the magic to the nearest enemy?
revee wrote:
i found bugs,
when there's more than one actor in battle, only one person animate the winning pose..

nope i guess they're not a bug, it'll animated because that actor is the last person who caused damage to enemy. i'll make it all animated if you want

Quote:
when used magic, can it wait for certain period(casting), and then unleash the magic to the nearest enemy?


yes, it can just check my commented in part 6 SKILL for more details
mm THATS GREAT
and would be more if:
you change the meteor animation with escaping...
show the name of the enemy
when using item, there's a number of healed HP/TP
when battle starts, show enemy places (like crushD one)
and 3D battle back (like crushD too)
winning window like tales of eternia^_^
and i think hiliart wanted to make new advanced demo
(he/she says in that spanish language)
thanks a LOT!!!
revee wrote:
mm THATS GREAT
and would be more if:
you change the meteor animation with escaping...
show the name of the enemy
when using item, there's a number of healed HP/TP
when battle starts, show enemy places (like crushD one)
and 3D battle back (like crushD too)
winning window like tales of eternia^_^
and i think hiliart wanted to make new advanced demo
(he/she says in that spanish language)
thanks a LOT!!!

could you send me crushD script ? just for reference
better if i upload the demo...
it's just like FMBS,
but this is Aggresive Linear Motion Battle System
i uploaded it!
http://www.mediafire.com/?nfhzce0ywjs
revee wrote:

wow thanks i'll check this after my school ended
Hey iqbal, i translate what hiliart (the spanish language above to you)

Thanks iqbal_0k to improve system FMBS_ITEM_FIXâ ‚¬ ¦ reason why I see demo and tutorial that presents/displays ( for a time already) to passed through several forumsâ ‚¬ ¦ heheheâ ‚¬ ¦ I hope that you complete improvements that you realise are spectacular, as for me I am developing a tutorial but advanced and demo with you complete improvements that you have realised and some details that and found latelyâ ‚¬ ¦ reveeâ ‚¬ ¦ The names of skill can be shown, but as the system works on the basis of skills (the system does not recognize basic attacks or special), mostraria you too many names and this produciria lag, besides not being very attractive at sight. Also different voices for each attack can be createdâ ‚¬ ¦ you only must revizar scriptâ ‚¬ ¦ and with respect to battle result type such of eternia or director cut, I am working in thatâ ‚¬ ¦ Serious an affability that somebody but was added in improving this system of battle, but so far I am very happy that somebody but, aside from my, as much was excited by this battle systemâ ‚¬ ¦ is a great system that few use by their degree of complexity and the lack of informationâ ‚¬ ¦ Good for saying to iqbal_0kâ ‚¬ ¦ thanks, sige with that passion againâ ‚¬ ¦ luckâ ‚¬ ¦ Xaoooo pescao - Hiliart (Member of the GD Spiral Dreams) -
Revee here's some of your request
Content Hidden Show
=begin
  FMBS CUSTOM Battle Enhancement ver BETA                     By B@!LWORLD A.K.A Iqbal_0k
  Requested by revee in rmxp.org
 
  credit and thanks : XRXS for this great battle system
 
  FEATURE (June 10 2008) : - Change meteor boulder to escape ... completed
                             You can escape by running to left side
                           - delete escape command in battle menu ... completed
                           - Show enemy location when battle is starting
                             (make camera move to enemy after that go to
                              hero you controlled) ... in progress need to initialize xrxs camera from begining
                           - Show enemy name pop up when battle is starting
                             then vanish (no i didn't make a window it will
                             reduce your fps trust me) ... completed
                           - Replace Escape timer with escape probability ... completed
                             (i think it's too easy when you face higher level of enemy
                              then you decide to escape so easyly)
                           - Customizeable in script event or in this script
                            
                             that's it for now time to finish my homework and go to bed

  HOW TO USE : Put this script above fix script and below default fmbs script
 
  AUTHOR NOTES :
     - i'll post another feature later (no demo at this time)
     - for best result dont use extra enhancement like my fmbs action message
       or set $fmbs_bm to false from its configuration (so it will not reducing your fps too much)
       maybe i can update my action message later with some dynamic feature
=end

=begin
                            CONFIGURATION
=end
  $use_custom_escape = true # if you not use this, it can still remove meteor like boulder's
  $show_name_pop_up = true

# END CONFIGURATION
#==============================================================================
# Â ¦ Game_Enemy
#==============================================================================
class Game_Enemy < Game_Battler
  alias enhancement_initialize initialize
  def initialize(troop_id, member_index)
    @actor_in_battlefield = false
    @x_pos          =   $data_troops[troop_id].members[member_index].x - 320
    @y_pos          = -($data_troops[troop_id].members[member_index].y - 304)
    @z_pos          =    0
    @field_x_offset = -192
    @field_y_offset = -144
    @zoom           = 1.00
    enhancement_initialize(troop_id, member_index)
  end
end
#==============================================================================
# ? Window_ActiveMenu
#==============================================================================
class Window_ActiveMenu < Window_Selectable
  alias delete_escape_index initialize
  def initialize   
    delete_escape_index
    #MAXIMUM OF MENU COMMAND
    if $use_custom_escape == true
      @item_max = 3
      @column_max = 3
    end
  end
 
  #Remove escape icons
  alias escape_refresh_enhance refresh
  def refresh
    if $use_custom_escape == true
      @window_screenback.visible = true
      self.contents.clear
      # this one for item icons
      bitmap = RPG::Cache.icon("021-Potion01")
      self.contents.blt(  0, 4, bitmap, Rect.new(0, 0, 24, 24))
      # for skill icons
      bitmap = RPG::Cache.icon("044-Skill01")
      self.contents.blt( 32, 4, bitmap, Rect.new(0, 0, 24, 24))
      #for equip icons
      bitmap = RPG::Cache.icon("001-Weapon01")
      self.contents.blt( 64, 4, bitmap, Rect.new(0, 0, 24, 24))
    else
      escape_refresh_enhance     
    end
  end
end

class Scene_Battle
  alias iqbal_custom_start_phase1 start_phase1 
  def start_phase1
    iqbal_custom_start_phase1
    if $show_name_pop_up == true
      @duration = 0
      if @duration < 300
        @spriteset.stop_update_animation
        for battler in $game_troop.enemies       
          battler.damage = battler.name
          battler.damage_pop = true
          @duration + 10
        end
      else
        @spriteset.start_update_animation
      end
    end
  end
 
  alias remove_select_escape_enhance update_phase3_activemenu
  def update_phase3_activemenu
    if $use_custom_escape == true
      @window_activemenu.visible = true
      @window_activemenu.update
      if Input.trigger?(Input::B)
        # play cancel se
        $game_system.se_play($data_system.cancel_se)
        @xcam_z_destination = 185
        @window_activemenu.active = false
        @window_activemenu.visible = false
        @phase = 1
      end
      if Input.trigger?(Input::C)
        case @window_activemenu.index
          when 0 # ITEM WINDOWS
            # Play OK SE
            $game_system.se_play($data_system.decision_se)
            @window_activemenu.visible = false
            @window_activemenu.active  = false
            @active_battler = @handle_battler
            @actor_index = 0
            start_item_select
            @item_window.z = 303
          when 1 # SKILL WINDOWS
            # PLAY OK SE
            $game_system.se_play($data_system.decision_se)
            @window_activemenu.visible = false
            call_menu_skill(0)
          when 2  # EQUIP WINDOWS
            # PLAY OK SE
            $game_system.se_play($data_system.decision_se)
            @window_activemenu.visible = false
            call_menu_equip(0)       
          end
      end
    else
      remove_select_escape_enhance
    end
  end
 
  def update_coordinates
    battlers_x_min =  512
    battlers_x_max = -512
    battlers_y_min =  1024 #1024
    battlers_y_max = -512
    for battler in $game_party.actors + $game_troop.enemies + @battle_bullets
      next if battler.nil?
      next if battler.motion.downing
      # ??
      if battler.dead? or
        (battler.is_a?(Game_BattleBullet) and !battler.is_a?(Game_ShootingTarget))
      else
        battlers_x_min = [battler.x_pos - battler.body_rect.x, battlers_x_min].min
        battlers_x_max = [battler.x_pos - battler.body_rect.x + battler.body_rect.width, battlers_x_max].max
        battlers_y_min = [battler.y_pos, battlers_y_min].min
        battlers_y_max = [battler.y_pos - battler.body_rect.y, battlers_y_max].max
      end
      next if battler.motion.hit_stop_duration > 0
           
      if battler.is_a?(Game_BattleBullet)
        battler_rect    = Rect.new(0,0,1,1)
      else
        battler_rect    = battler.body_rect.dup
        battler_rect.x += battler.x_pos
        battler_rect.y -= battler.y_pos
      end
     
      if battler.motion.now_jumps == 0
        if battler.now_x_speed > 0
          battler.now_x_speed = [battler.now_x_speed - battler.frict_x_break, 0].max
        elsif battler.now_x_speed < 0
          battler.now_x_speed = [battler.now_x_speed + battler.frict_x_break, 0].min
        end
      elsif battler.motion.now_jumps > 0 and battler.motion.controllable?
        if battler.now_x_speed > 0
          battler.now_x_speed = [battler.now_x_speed - battler.air_x_resistance, 0].max
        elsif battler.now_x_speed < 0
          battler.now_x_speed = [battler.now_x_speed + battler.air_x_resistance, 0].min
        end
      end
      variation = battler.relative_x_destination + battler.now_x_speed.floor

      side = XRXS_BS1::BF_SIDE + (BURST_SMASH_ENABLE ? 256 : 0)
      max = side
      min = @phase == 6 ? -640 : -1 * side
      for block in @field_blocks
        if rects_over_y?(battler_rect, block)
          x = block.x + block.width + battler_rect.width/2
          if x <= battler.x_pos+1 and x > min
            min = x
          end
          x = block.x - battler_rect.width/2
          if battler.x_pos-1 <= x and x < max
            max = x
          end
        end
      end
     
      battler.x_pos += variation
      if battler.x_pos < min
        battler.x_pos = min
        if battler.motion.blowning
          battler.now_x_speed *= -1/2
          do_crashing_shake
        end
      elsif battler.x_pos > max
        battler.x_pos = max
        if battler.motion.blowning
          battler.now_x_speed *= -1/2
          do_crashing_shake
        end
      end
      max = XRXS_BS1::BF_TOP + (METEOR_SMASH_ENABLE ? 256 : 0)
      min = XRXS_BS1::BF_BOTTOM
      for block in @field_blocks
        if rects_over_x?(battler_rect, block)
          if battler.y_pos >= -block.y and -block.y > min
            min = -block.y
          end
          y = -(block.y + block.height)
          if battler.y_pos < y and y < max
            max = y
          end
        end
      end
      if battler.motion.boardthrough_duration <= 0
        for board in @field_boards
          if rects_over_x?(battler_rect, board)
            if battler.previous_y_pos >= -board.y and -board.y > min
              min = -board.y
            end
          end
        end
      end
      max -= battler_rect.height
      if battler.y_pos != min
        if battler.motion.now_jumps == 0
          battler.motion.now_jumps = 1
        end
        if battler.now_y_speed >= -battler.air_y_maximum
          battler.now_y_speed = [battler.now_y_speed - battler.air_y_velocity, -battler.air_y_maximum].max
          if battler.now_y_speed <= 0 and
             battler.motion.handling_priority == 0 and
             !battler.dead? and !battler.motion.blowning and
             battler.now_form_id/10 != 5
            battler.motion.do_jumping_fall
          end
        end
      end
      variation = battler.relative_y_destination + battler.now_y_speed.floor
      battler.y_pos = [[battler.y_pos + variation, min].max, max].min
      battler.y_min = min
      if battler.y_pos == min
        battler.now_y_speed = 0
      end     
      next if battler.is_a?(Game_BattleBullet)
     
      if battler.y_pos == min and battler.motion.now_jumps > 0
        if battler.motion.downing
          battler.now_x_speed = 0
          battler.now_y_speed = 9
          battler.motion.now_jumps   = 0
          battler.motion.downing  = true
          battler.motion.blowning = false
          elsif battler.motion.blowning
          battler.now_y_speed = 9
          battler.motion.do_down
        else
          battler.now_x_speed = 0
          battler.now_y_speed = 0
          battler.motion.now_jumps = 0
          battler.motion.do_landing_step if !battler.dead?
        end
      elsif battler.y_pos == max and
            battler.now_y_speed > battler.now_x_speed.abs
        if battler.motion.blowning
          battler.now_y_speed *= -1/2
          do_crashing_shake
        else
          battler.now_y_speed = 0
        end
      end

      battler.previous_x_pos = battler.x_pos
      battler.previous_y_pos = battler.y_pos
     
      next if @phase == 5 or @phase == 6
      
       if  BURST_SMASH_ENABLE and battler.x_pos <= XRXS_BS1::BF_SIDE * -1
         if $use_custom_escape == true
            # MAKE ESCAPE
          @Probability = rand(100)
          if @Probability >= 69
            if $game_temp.battle_can_escape == true
                   @spriteset.stop_update_animation
                   @phase = 6
                   @xcam_x_destination = $xcam_x
                   @xcam_y_destination = $xcam_y
                   @xcam_z_destination = $xcam_z
                   @xcam_watch_battler = nil
                  for battler in $game_party.actors + $game_troop.enemies
                      battler.motion.do_straighten if battler.motion.directable?
                  end
                   @handle_battler.motion.do_escape
                   # Play escape SE
                  $game_system.se_play($data_system.escape_se)
                  @windows.visible = false if $fmbs_bm == true
                  @phase6_wait_count = 80
                  return
            elsif $game_temp.battle_can_escape == false
                  battler.motion.do_straighten if battler.motion.directable?
                  battler.motion.do_backstep
            end
          else
            battler.motion.do_straighten if battler.motion.directable?
            battler.motion.do_backstep
          end
        else
            battler.motion.do_straighten if battler.motion.directable?
            battler.motion.do_backstep
        end
      end
     
       if  BURST_SMASH_ENABLE and battler.x_pos >= XRXS_BS1::BF_SIDE  
           battler.motion.do_straighten if battler.motion.directable?
           battler.motion.do_backstep
       end
        
       if METEOR_SMASH_ENABLE and battler.y_pos >= XRXS_BS1::BF_TOP
          battler.motion.do_straighten if battler.motion.directable?
          battler.motion.do_crouch_to_jump
       end
      
       if METEOR_SMASH_ENABLE and battler.y_pos <= XRXS_BS1::BF_BOTTOM
         #MAKE METEOR SMASH and hurt battler
          battler.hp -= battler.maxhp * METEOR_SMASH_DAMAGE / 100
          battler.motion.do_meteor
          battler.dp = 0
       end
       
      if battler.is_a?(Game_Actor)
        allies = $game_party.actors
      else
        allies = $game_troop.enemies
      end
     
      for target in allies
        break if battler.motion.now_jumps > 0
        next  if target.motion.now_jumps > 0
        next if target == battler
        if battler.motion.handling_priority == 0 and
           target.motion.handling_priority == 0 and
           !battler.motion.dashing and
           !target.motion.dashing
          next
        end
        target_rect     = target.body_rect.dup
        target_rect.x  += target.x_pos
        target_rect.y  -= target.y_pos
        if rects_over?(battler_rect.dup, target_rect.dup)
        if battler.z_pos <= target.z_pos
              battler.z_pos = [battler.z_pos - 4,-8].max
            target.z_pos  = [target.z_pos + 4,  8].min
          else
            battler.z_pos = [battler.z_pos + 4, 8].min
            target.z_pos  = [target.z_pos - 4, -8].max #4
          end
        end
      end
      if battler.z_pos != 0
        battler.z_pos /= 10
      end
      next if battler.dead?
      battler_rect    = battler.body_rect.dup
      battler_rect.x += battler.x_pos
      battler_rect.y -= battler.y_pos
     
      for target in $game_party.actors + $game_troop.enemies
        break if battler.motion.now_jumps > 0
        next if target.motion.now_jumps > 0
        next if target == battler
        next if target.dead?
        next if (battler.z_pos - target.z_pos).abs >= 8
        next if target.motion.handling_priority > 0 or target.motion.unfrictbreak_duration > 0
        target_rect     = target.body_rect.dup
        target_rect.x  += target.x_pos
        target_rect.y  -= target.y_pos
        if rects_over?(battler_rect.dup, target_rect.dup)
          if battler.x_pos < target.x_pos
            battler.x_pos -= 2
            target.x_pos  += 2
          else
            battler.x_pos += 2
            target.x_pos  -= 2
          end
        end
     end       
      side = XRXS_BS1::BF_SIDE + (BURST_SMASH_ENABLE ? 256 : 0)
      x_min = -1 * side - battler.body_rect.x
      x_max =      side - battler.body_rect.x - battler.body_rect.width
      battler.x_pos = [[battler.x_pos, x_min].max, x_max].min
    end
    return if @phase == 5 or @phase == 6
    @xcam_x_destination = (battlers_x_max + battlers_x_min)/2
    @xcam_y_destination = (battlers_y_max/2 + battlers_y_min)/2
    max_distance = [(battlers_x_min - battlers_x_max).abs,(battlers_y_min - battlers_y_max).abs].max
    @xcam_z_destination = [[(max_distance * 185.0 / 480).floor, XCAM_DISTANCE_MIN].max, XCAM_DISTANCE_MAX].min
  end
end
Expand to see the code.


it'll remove meteor like effect and pop up enemy name when battle is starting
wow 0_0
i didn't think you make this script sooooo FAST
1 day only.....
cool >.<
can you make the face animated?
when hurt, attack, win , use item,and etc?
make a leader HUD same as the party member?
you can make your own face in=
http://fc07.deviantart.com/fs22/f/2008/ ... dgehog.swf
that was cool >.<

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