Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  2. #
  3. #Animation skip (battle)
  4. #
  5. #While pressing the set button,
  6. #Animation aren't shown.
  7. #
  8. #★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  9.  
  10. module MARU_SKIP_ANIME
  11. #---------------------------------------------------------------------------
  12. #Setting
  13.   BOTTAN = :A #Button for use for skipping animation
  14. #End of setting
  15. #---------------------------------------------------------------------------
  16. end
  17.  
  18.  
  19.  
  20.  
  21. #==============================================================================
  22. # ■ Scene_Battle
  23. #------------------------------------------------------------------------------
  24. #  Class performs battle screen processing.
  25. #==============================================================================
  26. class Scene_Battle < Scene_Base
  27.   #--------------------------------------------------------------------------
  28.   # ● Animation display
  29.   #     targets      : Target array
  30.   #     animation_id : Animation ID (-1: Same as normal attack)
  31.   #--------------------------------------------------------------------------  
  32.    alias maru_show_animation show_animation
  33.    def show_animation(targets, animation_id)
  34.     if Input.press?(MARU_SKIP_ANIME::BOTTAN)
  35.      return
  36.     end
  37.     maru_show_animation(targets, animation_id)
  38.   end
  39.   #--------------------------------------------------------------------------
  40.   # ● Fast forward
  41.   #--------------------------------------------------------------------------
  42.   alias maru_show_fast? show_fast?
  43.   def show_fast?
  44.     Input.press?(:A) || Input.press?(:C) || Input.press?(MARU_SKIP_ANIME::BOTTAN)
  45.   end
  46. end