#==============================================================================
# Game_System
#==============================================================================
class Game_System
attr_accessor :DEATH_IMAGE
attr_accessor :CENTER_BATTLER
attr_accessor :FPS_MODULATOR
attr_accessor :SPEED_MODULATOR
alias init_tons_of_addons1_later initialize
def initialize
init_tons_of_addons1_later
#---------------------------------------------------------------------------
@DEATH_IMAGE = true
@CENTER_BATTLER = false
@FPS_MODULATOR = true
@SPEED_MODULATOR = true
#---------------------------------------------------------------------------
end
end
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
DEATH_IMAGE = '' # the battler file name of your death image
CENTER_BATTLER = false
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#==============================================================================
# Sprite_DummyBattler
#==============================================================================
class Sprite_DummyBattler < RPG::Sprite
attr_accessor :battler
def update
return if @battler == nil
super
if self.bitmap == nil
self.bitmap = RPG::Cache.battler(DEATH_IMAGE, 0)
@width, @height = bitmap.width, bitmap.height
self.ox, self.oy = @width / 2, @height
self.opacity = 0 if @battler.dead? || @battler.hidden
end
if @battler_visible
if !@battler.hidden && !@battler.dead? &&
(@battler.damage == nil || @battler.damage_pop)
escape
@battler_visible = false
elsif $game_temp.battle_main_phase
self.opacity += 3 if self.opacity < 255
elsif self.opacity > 207
self.opacity -= 3
end
elsif @battler.damage == nil && @battler.dead?
appear
@battler_visible = true
end
if @battler != nil
if $game_system.CENTER_BATTLER && @battler.is_a?(Game_Actor)
self.x = case $game_party.actors.size
when 1 then @battler.screen_x + 240
when 2 then @battler.screen_x + 80 + @battler.index * 160
when 3 then @battler.screen_x + 80
when 4 then @battler.screen_x
end
else
self.x = @battler.screen_x
end
self.y, self.z = @battler.screen_y, @battler.screen_z
end
end
end
#==============================================================================
# Spriteset_Battle
#==============================================================================
class Spriteset_Battle
alias init_death_image_later initialize
def initialize
@death_sprites = []
init_death_image_later
if $game_system.DEATH_IMAGE
@actor_sprites.size.times {
sprite = Sprite_DummyBattler.new(@viewport2)
sprite.opacity = 0
@death_sprites.push(sprite)}
end
end
alias upd_death_image_later update
def update
upd_death_image_later
return unless $game_system.DEATH_IMAGE
@death_sprites.each_index {|i|
@death_sprites[i].battler = @actor_sprites[i].battler
@death_sprites[i].update}
end
alias disp_death_image_later dispose
def dispose
@death_sprites.each {|sprite| sprite.dispose}
disp_death_image_later
end
end
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# FPS Modulator by Blizzard
# Version: 1.0b
# Type: Debug Utility
# Date: 12.2.2006
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Holding SHIFT and pressing Q/W will allow you to speed up the game like in
# an emulator up to 3 times (sorry, RMXP doesn't allow more). Remove the
# triple commented lines (###) to allow this feature even in the normal game,
# not only the Debug mode.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#==============================================================================
# Scene_Map
#==============================================================================
class Scene_Map
alias update_fps_later update
def update
if $game_system.FPS_MODULATOR
if $DEBUG ###
if Input.press?(Input::A) && Input.press?(Input::R)
Graphics.frame_rate += 40
elsif Input.press?(Input::A) && Input.trigger?(Input::L)
Graphics.frame_rate -= 40 unless Graphics.frame_rate == 40
end
end ###
end
update_fps_later
end
end
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Speed Modulator by Blizzard
# Version: 1.01b
# Type: Debug Utility
# Date: 12.2.2006
# Date v1.01: 12.1.2007
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Pressing Q/W will allow you to speed up the main character. Pressing SHIFT
# will reset his speed immediately. Remove the triple commented lines (###)
# to allow this feature even in the normal game, not only the Debug mode.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#==============================================================================
# Game_Player
#==============================================================================
class Game_Player
alias upd_speed_later update
def update
if $game_system.SPEED_MODULATOR
if $DEBUG ###
if Input.trigger?(Input::A)
@move_speed = 4
elsif !Input.press?(Input::A) && !Input.press?(Input::X) &&
Input.trigger?(Input::R)
@move_speed += 1 unless @move_speed == 6
elsif !Input.press?(Input::A) && !Input.press?(Input::X) &&
Input.trigger?(Input::L)
@move_speed -= 1 unless @move_speed == 1
end
end ###
end
upd_speed_later
end
end