Another battle system request. o_o;
#6
I got some results with this compatibility script :

Code:
#====================================================================
# FPLE CTB
# Author : MGC
# This compatibility script enables the use of zoom with the Count Turn Battle (CTB)
# To use this add-on, required scripts must be in this order :
# - CTB (Ver 1.13)
# - FPLE scripts (Ver 1.3)
# - Addon FPLE map as battleback
# - This script
# - Main
# While it is below main, it doesn't have any effect.
#====================================================================
#==============================================================================
# ** Spriteset_Battle
#==============================================================================
class Spriteset_Battle
  alias make_battleback_fple_ctb_spriteset_battle make_battleback
  #--------------------------------------------------------------------------
  # * Setting of battle background
  #--------------------------------------------------------------------------
  def make_battleback
    if $game_system.fple
      if @battleback_sprite.bitmap != nil
        @battleback_sprite.bitmap.dispose
      end
      @battleback_name = $game_temp.battleback_name
      if !@make_battleback_init
        # That part of code is dedicated to avoid transition for the map as battleback
        @make_battleback_init = true
        $game_temp.battleback_name = "fple"
        @battleback_sprite.bitmap = Bitmap.new(640, 480)
        @original_zoom = 1
        slide = false
      else
        # load the FPLE rendering as battleback_sprite
        fple_spriteset = $scene.instance_variable_get(:@spriteset_map)
        @battleback_sprite.bitmap = fple_spriteset.fple_render.sprite_screen.bitmap
        @original_zoom = fple_spriteset.fple_render.sprite_screen.zoom_x
        fple_spriteset.fple_render.sprite_screen.dispose
        slide = true
      end
      @battleback_sprite.src_rect.set(0, 0, 640, 480)
      @battleback_sprite.zoom_x = @original_zoom
      @battleback_sprite.zoom_y = @battleback_sprite.zoom_x
      @base_zoom = 1.5 * @original_zoom
      @battleback_sprite.x = 320
      @battleback_sprite.y = 120
      @battleback_sprite.ox = @battleback_sprite.bitmap.width / 2
      @battleback_sprite.oy = @battleback_sprite.bitmap.height / 4
      if slide
        slide_to_zoom
      else
        @battleback_sprite.zoom_x = @base_zoom
        @battleback_sprite.zoom_y = @battleback_sprite.zoom_x
      end
    else
      make_battleback_fple_ctb_spriteset_battle
    end
  end
  #--------------------------------------------------------------------------
  # * Slide to the desired zoom and position when entering battle
  #--------------------------------------------------------------------------
  def slide_to_zoom
    slide_speed = 0.10
    count = ((@base_zoom - @battleback_sprite.zoom_x) / slide_speed).to_i + 1
    offset_y = @battleback_sprite.y.to_f / count
    battleback_sprite_y_float = @battleback_sprite.y.to_f
    i = 0
    while i < count
      @battleback_sprite.zoom_x  = [(@battleback_sprite.zoom_x + slide_speed), @base_zoom].min
      @battleback_sprite.zoom_y = @battleback_sprite.zoom_x
      battleback_sprite_y_float = battleback_sprite_y_float - offset_y
      @battleback_sprite.y = [battleback_sprite_y_float.to_i, 0].max
      Graphics.update
      i += 1
    end
  end
  #--------------------------------------------------------------------------
  # * Unslide when ending battle
  #--------------------------------------------------------------------------
  def unslide
    slide_speed = 0.10
    count = ((@battleback_sprite.zoom_x - @original_zoom) / slide_speed).to_i + 1
    offset_y = (120 - @battleback_sprite.y).to_f / count
    battleback_sprite_y_float = @battleback_sprite.y.to_f
    i = 0
    while i < count
      @battleback_sprite.zoom_x  = [(@battleback_sprite.zoom_x - slide_speed), @original_zoom].max
      @battleback_sprite.zoom_y = @battleback_sprite.zoom_x
      battleback_sprite_y_float = battleback_sprite_y_float + offset_y
      @battleback_sprite.y = [battleback_sprite_y_float.to_i, 120].min
      Graphics.update
      i += 1
    end
  end
end

#==============================================================================
# ** Scene_Battle
#==============================================================================
class Scene_Battle
  alias battle_end_fple_ctb_scene_battle battle_end
  #--------------------------------------------------------------------------
  # * Battle Ends
  #     result : results (0:win 1:lose 2:escape)
  #--------------------------------------------------------------------------
  def battle_end(result)
    if $game_system.fple
      @spriteset.unslide
    end
    battle_end_fple_ctb_scene_battle(result)
  end
end

Basically the map as battleback is zoomed so it becomes larger than the screen.
The drawback is that the enemies seem small. Just try it to see what I mean.

The config :
- CTB v1.13 (default configuration)
- FPLE scripts v1.3
- Addon FPLE map as battleback
- Addon FPLE turn before battle <- not necessary I think
- This script
- Main
Some scripts :
Working on :
Reply }


Messages In This Thread
Another battle system request. o_o; - by Boot - 04-18-2010, 12:19 PM
[Resolved] Another battle system request. o_o; - by MGC - 04-26-2010, 10:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   GW Animated Battle backs Patch for Atoa ACBS Solitaire 21 1,708 10-17-2024, 06:37 AM
Last Post: Solitaire
   ACBS - Atoa Custom Battle System and TP System zlsl 2 4,572 10-20-2021, 05:09 AM
Last Post: zlsl
   [RMXP] Showing skill gained by leveling up on battle result FrQise 12 12,665 05-07-2021, 02:05 PM
Last Post: FrQise
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 15,864 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   I want to add an Atoa Custom Battle System command cut-in. zlsl 11 13,911 11-11-2019, 08:55 PM
Last Post: DerVVulfman
   Question about ACBS (Atoa Custom Battle System) aeliath 10 12,785 08-08-2019, 02:50 PM
Last Post: aeliath
   YAMI Battle symphony + Holder add on (Loop casting anim) Starmage 0 4,259 03-01-2018, 09:03 AM
Last Post: Starmage
   (RMVXace) Battle error with Tankentai's battle system, help. x( Starmage 0 3,912 02-14-2018, 04:25 PM
Last Post: Starmage
   Atoa Individual Battle Commands Geminil 3 6,987 08-02-2017, 03:17 AM
Last Post: DerVVulfman
   Problems with counteraatack addon of Atoa Custom Battle System Djigit 22 35,509 01-05-2017, 08:05 PM
Last Post: Noctis



Users browsing this thread: 2 Guest(s)