Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #encoding:utf-8
- =begin
- *******************************************************************************************
- * Picture Transition *
- for RGSS3
- Ver 1.2 2016.08.29
- Authot:魂(Lctseng),Bahamut forum ID:play123
- For redistribution, please keep this label
- Website:http://home.gamer.com.tw/homeindex.php?owner=play123
- Required Base-Script: Lctseng - Enhanced Image Sprites
- Please put this script below that script
- Main function:
- Left and right picture are displayed,
- are separated from the dialog box (if not related)
- Update log:
- Ver 1.00 :
- Date:2014.09.24
- Summary:■、Initial release
- Ver 1.10 :
- Date:2014.10.30
- Summary:■、added a way to adjust transparency
- Ver 1.11 :
- Date:2014.11.05
- Summary:■、Fixed an error without adjusting transparency
- Ver 1.2 :
- Date:2016.08.29
- Summary:■、Remove the part of the dialog box with one more line
- This script modifies or redefines the following categories:
- ■ Game_Interpreter
- ■ Game_System
- ■ Scene_Base
- ■ Scene_Map
- This script defines the following categories and modules:
- ■ Lctseng::Game_StandController
- ■ Lctseng::Game_Stand
- ■ Lctseng::Game_LeftStand
- ■ Lctseng::Game_RightStand
- ■ Lctseng::Spriteset_Stand
- ■ Lctseng::Sprite_Stand
- ■ Lctseng::Sprite_LeftStand
- ■ Lctseng::Sprite_RightStand
- *******************************************************************************************
- =end
- #*******************************************************************************************
- #
- # DO NOT MODIFY UNLESS YOU KNOW WHAT TO DO !
- #
- #*******************************************************************************************
- #--------------------------------------------------------------------------
- # ★ Log script information
- #--------------------------------------------------------------------------
- if !$lctseng_scripts
- $lctseng_scripts = {}
- end
- ## Check for BaseScript
- if !$lctseng_scripts[:sprite_ex]
- msgbox("No BaseScript found:Lctseng - Enhanced Image Sprites\nOr the script location is wrong!\nThe program is about to close")
- exit
- end
- $lctseng_scripts[:stand_picture] = "1.11"
- puts "Load Script:Lctseng - Picture Transition, Version:#{$lctseng_scripts[:stand_picture]}"
- #encoding:utf-8
- #==============================================================================
- # ■ Game_Interpreter
- #------------------------------------------------------------------------------
- # Interpreter of eventing.
- # Class used inside Game_Map, Game_Troop, Game_Event.
- #==============================================================================
- class Game_Interpreter
- #--------------------------------------------------------------------------
- # ● Left slide in
- #--------------------------------------------------------------------------
- def left_slide_in(*args)
- $game_system.stand.left_slide_in(*args)
- end
- #--------------------------------------------------------------------------
- # ● Left slide out
- #--------------------------------------------------------------------------
- def left_slide_out(*args)
- $game_system.stand.left_slide_out(*args)
- end
- #--------------------------------------------------------------------------
- # ● Left change
- #--------------------------------------------------------------------------
- def left_change(*args)
- $game_system.stand.left_change(*args)
- end
- #--------------------------------------------------------------------------
- # ● Right slide in
- #--------------------------------------------------------------------------
- def right_slide_in(*args)
- $game_system.stand.right_slide_in(*args)
- end
- #--------------------------------------------------------------------------
- # ● Right slide in
- #--------------------------------------------------------------------------
- def right_slide_out(*args)
- $game_system.stand.right_slide_out(*args)
- end
- #--------------------------------------------------------------------------
- # ● Right change
- #--------------------------------------------------------------------------
- def right_change(*args)
- $game_system.stand.right_change(*args)
- end
- #--------------------------------------------------------------------------
- # ● Left picture Z coordinate change
- #--------------------------------------------------------------------------
- def left_z(val)
- $game_system.stand.left.z = val
- end
- #--------------------------------------------------------------------------
- # ● Right picture Z coordinate change
- #--------------------------------------------------------------------------
- def right_z(val)
- $game_system.stand.right.z = val
- end
- #--------------------------------------------------------------------------
- # ● Left picture in front of message window
- #--------------------------------------------------------------------------
- def left_front
- left_z(500)
- end
- #--------------------------------------------------------------------------
- # ● Left picture behind the message window
- #--------------------------------------------------------------------------
- def left_behind
- left_z(50)
- end
- #--------------------------------------------------------------------------
- # ● Right picture in front of message window
- #-------------------------------------------------------------------------
- def right_front
- right_z(500)
- end
- #--------------------------------------------------------------------------
- # ● Right picture behind the message window
- #--------------------------------------------------------------------------
- def right_behind
- right_z(50)
- end
- #--------------------------------------------------------------------------
- # ● Left image maximum transparency limit
- #--------------------------------------------------------------------------
- def left_limit_opacity(*args)
- $game_system.stand.left_limit_opacity(*args)
- end
- #--------------------------------------------------------------------------
- # ● Right image maximum transparency limit
- #--------------------------------------------------------------------------
- def right_limit_opacity(*args)
- $game_system.stand.right_limit_opacity(*args)
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Game_System
- #------------------------------------------------------------------------------
- # Class handles system data. Saves data and menu states.
- # See $game_system for examples.
- #==============================================================================
- class Game_System
- #--------------------------------------------------------------------------
- # ● Obtain standing drawing control objects
- #--------------------------------------------------------------------------
- def stand
- @stand ||= Lctseng::Game_StandController.new
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Lctseng::Game_StandController
- #------------------------------------------------------------------------------
- # Controlling vertical drawing objects
- #==============================================================================
- module Lctseng
- class Game_StandController
- #--------------------------------------------------------------------------
- # ● Define instance variables
- #--------------------------------------------------------------------------
- attr_reader :left
- attr_reader :right
- #--------------------------------------------------------------------------
- # ● Initialization object
- #--------------------------------------------------------------------------
- def initialize
- @left = Game_LeftStand.new
- @right = Game_RightStand.new
- end
- #--------------------------------------------------------------------------
- # ● What to do when sprite group is released
- #--------------------------------------------------------------------------
- def on_terminate
- # slide out
- left_slide_out
- right_slide_out
- end
- #--------------------------------------------------------------------------
- # ● Left picture slide in
- #--------------------------------------------------------------------------
- def left_slide_in(filename)
- @left.change_filename(filename)
- @left.slide_in_req
- end
- #--------------------------------------------------------------------------
- # ● Left picture slide out
- #--------------------------------------------------------------------------
- def left_slide_out
- @left.slide_out_req
- end
- #--------------------------------------------------------------------------
- # ● Left image maximum transparency limit
- #--------------------------------------------------------------------------
- def left_limit_opacity(value)
- @left.limit_opacity(value)
- end
- #--------------------------------------------------------------------------
- # ● Right picture slide in
- #--------------------------------------------------------------------------
- def right_slide_in(filename)
- @right.change_filename(filename)
- @right.slide_in_req
- end
- #--------------------------------------------------------------------------
- # ● Right picture slide out
- #--------------------------------------------------------------------------
- def right_slide_out
- @right.slide_out_req
- end
- #--------------------------------------------------------------------------
- # ● Right image maximum transparency limit
- #--------------------------------------------------------------------------
- def right_limit_opacity(value)
- @right.limit_opacity(value)
- end
- #--------------------------------------------------------------------------
- # ● Left picture replacement
- #--------------------------------------------------------------------------
- def left_change(filename,fast = false)
- @left.change(filename,fast)
- end
- #--------------------------------------------------------------------------
- # ● Right picture replacement
- #--------------------------------------------------------------------------
- def right_change(filename,fast = false)
- @right.change(filename,fast)
- end
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Lctseng::Game_Stand
- #------------------------------------------------------------------------------
- # Standing property
- #==============================================================================
- module Lctseng
- class Game_Stand
- #--------------------------------------------------------------------------
- # ● Define instance variables
- #--------------------------------------------------------------------------
- attr_reader :status
- attr_reader :filename
- attr_reader :new_filename
- attr_reader :old_filename
- attr_reader :change_fast
- attr_reader :opacity_limit
- attr_accessor :z
- #--------------------------------------------------------------------------
- # ● Initialization object
- #--------------------------------------------------------------------------
- def initialize
- # Filename
- @filename = ''
- # status:
- # :none
- # :slide_in_req
- # :sliding_in
- # slide_out_req
- # :sliding_out
- # :show
- # :change_req
- # :changing
- @status = :none
- # New filename when changing [only effective when show]
- @new_filename = ''
- # Old filename when changing [only effective when show]
- @old_filename = ''
- # Whether to change quickly when replacing
- @change_fast = false
- # Z coordinate
- @z = 300
- # Maximum transparency
- @opacity_limit = 255
- end
- #--------------------------------------------------------------------------
- # ● response to slide in
- #--------------------------------------------------------------------------
- def response_slide_in
- @status = :sliding_in
- end
- #--------------------------------------------------------------------------
- # ● end response to slide in
- #--------------------------------------------------------------------------
- def response_slide_in_end
- @status = :show
- end
- #--------------------------------------------------------------------------
- # ● response to slide out
- #--------------------------------------------------------------------------
- def response_slide_out
- @status = :sliding_out
- end
- #--------------------------------------------------------------------------
- # ● end response to slide out
- #--------------------------------------------------------------------------
- def response_slide_out_end
- @status = :none
- end
- #--------------------------------------------------------------------------
- # ● response change
- #--------------------------------------------------------------------------
- def response_change_req
- @status = :changing
- end
- #--------------------------------------------------------------------------
- # ● end response change
- #--------------------------------------------------------------------------
- def response_change_end
- @status = :show
- end
- #--------------------------------------------------------------------------
- # ● change filename (new)
- #--------------------------------------------------------------------------
- def change_filename(new_name)
- @old_filename = @filename
- @new_filename = @filename = new_name
- end
- #--------------------------------------------------------------------------
- # ● change requirement
- #--------------------------------------------------------------------------
- def change(new_name,fast)
- @change_fast = fast
- change_filename(new_name)
- @status = :change_req
- end
- #--------------------------------------------------------------------------
- # ● slide in requirement
- #--------------------------------------------------------------------------
- def slide_in_req
- @status = :slide_in_req
- end
- #--------------------------------------------------------------------------
- # ● slide out requirement
- #--------------------------------------------------------------------------
- def slide_out_req
- @status = :slide_out_req if @status != :none
- end
- #--------------------------------------------------------------------------
- # ● Limiting transparency
- #--------------------------------------------------------------------------
- def limit_opacity(value)
- @opacity_limit = value
- end
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Lctseng::Game_LeftStand
- #------------------------------------------------------------------------------
- # Left picture
- #==============================================================================
- module Lctseng
- class Game_LeftStand < Game_Stand
- #--------------------------------------------------------------------------
- # ● Initialization object
- #--------------------------------------------------------------------------
- def initialize
- super
- end
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Lctseng::Game_RightStand
- #------------------------------------------------------------------------------
- # Right picture object
- #==============================================================================
- module Lctseng
- class Game_RightStand < Game_Stand
- #--------------------------------------------------------------------------
- # ● Initialization object
- #--------------------------------------------------------------------------
- def initialize
- super
- end
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Lctseng::Spriteset_Stand
- #------------------------------------------------------------------------------
- # Handling picture area
- # Game_StandController for picture transition
- #==============================================================================
- module Lctseng
- class Spriteset_Stand
- #--------------------------------------------------------------------------
- # ● Add settings module
- #--------------------------------------------------------------------------
- #--------------------------------------------------------------------------
- # ● Initialization object
- #--------------------------------------------------------------------------
- def initialize(viewport)
- @viewport = viewport
- @terminating_count = 0
- create_sprites
- end
- #--------------------------------------------------------------------------
- # ● Get control
- #--------------------------------------------------------------------------
- def control
- $game_system.stand
- end
- #--------------------------------------------------------------------------
- # ● create sprite
- #--------------------------------------------------------------------------
- def create_sprites
- @left = Lctseng::Sprite_LeftStand.new(@viewport)
- @right = Lctseng::Sprite_RightStand.new(@viewport)
- end
- #--------------------------------------------------------------------------
- # ● dispose
- #--------------------------------------------------------------------------
- def dispose
- dispose_sprites
- end
- #--------------------------------------------------------------------------
- # ● dispose sprites
- #--------------------------------------------------------------------------
- def dispose_sprites
- @left.dispose
- @right.dispose
- end
- #--------------------------------------------------------------------------
- # ● show sprite
- #--------------------------------------------------------------------------
- def any_sprite_show?
- return true if @left&&@left.control.status != :none
- return true if @right&&@right.control.status != :none
- return false
- end
- #--------------------------------------------------------------------------
- # ● update
- #--------------------------------------------------------------------------
- def update
- update_sprites
- end
- #--------------------------------------------------------------------------
- # ● update sprite
- #--------------------------------------------------------------------------
- def update_sprites
- @left.update
- @right.update
- end
- #--------------------------------------------------------------------------
- # ● End countdown
- #--------------------------------------------------------------------------
- def terminate_countdown
- @terminating_count -= 1
- end
- #--------------------------------------------------------------------------
- # ● terminate?
- #--------------------------------------------------------------------------
- def terminating?
- @terminating_count > 0
- end
- #--------------------------------------------------------------------------
- # ● terminate
- #--------------------------------------------------------------------------
- def terminate
- puts "Terminate processing"
- control.on_terminate
- if any_sprite_show?
- puts "Show before request termination"
- @terminating_count = 35
- end
- end
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Lctseng::Sprite_Stand
- #------------------------------------------------------------------------------
- # Picture
- #==============================================================================
- module Lctseng
- class Sprite_Stand < Sprite_Base
- #--------------------------------------------------------------------------
- # ● Add fade in and fade out modules
- #--------------------------------------------------------------------------
- include SpriteFader
- include SpriteSlider
- #--------------------------------------------------------------------------
- # ● Initialization object
- #--------------------------------------------------------------------------
- def initialize(viewport)
- @opacity_limit = 255
- @origin_opacity = 255
- super(viewport)
- @origin_opacity = self.opacity
- @filename = ''
- check_opacity
- fader_init
- slider_init
- @shadow = Sprite_StandShadow.new(self,viewport)
- end
- #--------------------------------------------------------------------------
- # ● Get Control Object
- #--------------------------------------------------------------------------
- def control
- end
- #--------------------------------------------------------------------------
- # ● Update
- #--------------------------------------------------------------------------
- def update
- super
- check_opacity
- check_action
- fader_update
- slider_update
- self.z = control.z
- @shadow.update
- end
- #--------------------------------------------------------------------------
- # ● Set transparency
- #--------------------------------------------------------------------------
- alias :set_opacity :opacity=
- #--------------------------------------------------------------------------
- def opacity=(val)
- @origin_opacity = val
- adj = [@origin_opacity,@opacity_limit].min
- set_opacity(adj)
- end
- #--------------------------------------------------------------------------
- # ● Check transparency
- #--------------------------------------------------------------------------
- def check_opacity
- if @opacity_limit != control.opacity_limit
- @opacity_limit = control.opacity_limit
- self.opacity = @origin_opacity
- end
- end
- #--------------------------------------------------------------------------
- # ● Check action
- #--------------------------------------------------------------------------
- def check_action
- #puts "status:#{control.status}"
- case control.status
- when :none
- hide
- when :slide_in_req
- check_filename
- reset_position
- slide_in
- control.response_slide_in
- when :sliding_in
- if !slider_sliding?
- control.response_slide_in_end
- end
- when :slide_out_req
- slide_out
- control.response_slide_out
- when :sliding_out
- if !slider_sliding?
- control.response_slide_out_end
- end
- when :change_req
- if control.change_fast
- change_immediately
- control.response_change_end
- else
- setup_shadow
- control.response_change_req
- end
- when :changing
- if !fader_fading? && !@shadow.fader_fading?
- control.response_change_end
- end
- end
- end
- #--------------------------------------------------------------------------
- # ● hide
- #--------------------------------------------------------------------------
- def hide
- self.opacity = 0
- end
- #--------------------------------------------------------------------------
- # ● check filename
- #--------------------------------------------------------------------------
- def check_filename
- # If the file is replaced, re-create the bitmap
- if @filename != control.filename
- change_immediately
- end
- end
- #--------------------------------------------------------------------------
- # ● Reset position
- #--------------------------------------------------------------------------
- def reset_position
- return unless self.bitmap
- set_pos(slided_out_pos)
- end
- #--------------------------------------------------------------------------
- # ● Slide in position
- #--------------------------------------------------------------------------
- def slided_in_pos
- [0,Graphics.height - self.height]
- end
- #--------------------------------------------------------------------------
- # ● Slide out of position
- #--------------------------------------------------------------------------
- def slided_out_pos
- [-0.5 * self.width,Graphics.height - self.height]
- end
- #--------------------------------------------------------------------------
- # ● dispose
- #--------------------------------------------------------------------------
- def dispose
- super
- @shadow.dispose
- end
- #--------------------------------------------------------------------------
- # ● slide in
- #--------------------------------------------------------------------------
- def slide_in
- fader_set_fade(255,30)
- slider_set_move(current_pos,slided_in_pos,30)
- end
- #--------------------------------------------------------------------------
- # ● slide out
- #--------------------------------------------------------------------------
- def slide_out
- fader_set_fade(0,30)
- slider_set_move(current_pos,slided_out_pos,30)
- end
- #--------------------------------------------------------------------------
- # ● instant change
- #--------------------------------------------------------------------------
- def change_immediately
- @filename = control.filename
- self.bitmap = Cache.picture(@filename)
- # Realign coordinates
- set_pos(slide_in_pos_adjust(slided_in_pos))
- # Set transparency
- self.opacity = 255
- end
- #--------------------------------------------------------------------------
- # ● Set shadow
- # Uses an old picture as an afterimage, and master sprite fades in with new picture
- #--------------------------------------------------------------------------
- def setup_shadow
- @shadow.setup
- change_immediately
- self.opacity = 0
- fader_set_fade(255,30)
- end
- #--------------------------------------------------------------------------
- # ● Slide into position adjustment
- #--------------------------------------------------------------------------
- def slide_in_pos_adjust(pos)
- pos
- end
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Lctseng::Sprite_StandShadow
- #------------------------------------------------------------------------------
- # Draws a shadow sprite. When main sprite changes the picture, it fades out.
- #==============================================================================
- module Lctseng
- class Sprite_StandShadow < Sprite_Base
- #--------------------------------------------------------------------------
- # ● Add fade in and fade out modules
- #--------------------------------------------------------------------------
- include SpriteFader
- #--------------------------------------------------------------------------
- # ● Initialization object
- #--------------------------------------------------------------------------
- def initialize(main,viewport)
- super(viewport)
- @main = main
- fader_init
- end
- #--------------------------------------------------------------------------
- # ● Update
- #--------------------------------------------------------------------------
- def update
- super
- fader_update
- end
- #--------------------------------------------------------------------------
- # ● Setup
- #--------------------------------------------------------------------------
- def setup
- self.bitmap = Cache.picture(@main.control.old_filename)
- self.opacity = @main.opacity
- self.x = @main.x
- self.y = @main.y
- fader_set_fade(0,30)
- end
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Lctseng::Sprite_LeftStand
- #------------------------------------------------------------------------------
- # Left picture
- #==============================================================================
- module Lctseng
- class Sprite_LeftStand < Sprite_Stand
- #--------------------------------------------------------------------------
- # ● Get control object
- #--------------------------------------------------------------------------
- def control
- $game_system.stand.left
- end
- #--------------------------------------------------------------------------
- # ● Reset position
- #--------------------------------------------------------------------------
- def reset_position
- return unless self.bitmap
- super
- self.x = self.width * -0.5
- end
- #--------------------------------------------------------------------------
- # ● Slide in position
- #--------------------------------------------------------------------------
- def slided_in_pos
- pos = super
- pos[0] = 0 # x coordinate is 0
- slide_in_pos_adjust(pos)
- end
- #--------------------------------------------------------------------------
- # ● Slide in position adjustment
- #--------------------------------------------------------------------------
- def slide_in_pos_adjust(pos)
- # No more than half
- if pos[0] + self.width > 320
- pos[0] = 320 - self.width
- end
- pos
- end
- #--------------------------------------------------------------------------
- # ● Slide out of position
- #--------------------------------------------------------------------------
- def slided_out_pos
- pos = super
- pos[0] = -0.5 * self.width # x-coordinate is half the width
- pos
- end
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Lctseng::Sprite_RightStand
- #------------------------------------------------------------------------------
- # Right standing area
- #==============================================================================
- module Lctseng
- class Sprite_RightStand < Sprite_Stand
- #--------------------------------------------------------------------------
- # ● Get Control Object
- #--------------------------------------------------------------------------
- def control
- $game_system.stand.right
- end
- #--------------------------------------------------------------------------
- # ● Reset position
- #--------------------------------------------------------------------------
- def reset_position
- return unless self.bitmap
- super
- self.x = Graphics.width - self.width * 0.5
- end
- #--------------------------------------------------------------------------
- # ● slide in position
- #--------------------------------------------------------------------------
- def slided_in_pos
- pos = super
- pos[0] = Graphics.width - self.width
- slide_in_pos_adjust(pos)
- end
- #--------------------------------------------------------------------------
- # ● slide in position adjustment
- #--------------------------------------------------------------------------
- def slide_in_pos_adjust(pos)
- # 限制不過半
- if pos[0] < 320
- pos[0] = 320
- end
- pos
- end
- #--------------------------------------------------------------------------
- # ● slide out position
- #--------------------------------------------------------------------------
- def slided_out_pos
- pos = super
- pos[0] = Graphics.width - self.width * 0.5
- pos
- end
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Scene_Base
- #------------------------------------------------------------------------------
- # Parent of all Scene classes
- #==============================================================================
- class Scene_Base
- #--------------------------------------------------------------------------
- # ● redefine
- #--------------------------------------------------------------------------
- unless $@
- alias lctseng_stand_start start
- alias lctseng_stand_update_basic update_basic
- alias lctseng_stand_terminate terminate
- end
- #--------------------------------------------------------------------------
- # ● Start processing [Redefined]
- #--------------------------------------------------------------------------
- def start
- lctseng_stand_start
- #create_stand_viewport
- create_stand_spriteset
- end
- #--------------------------------------------------------------------------
- # ● Generate vertical drawing display port
- #--------------------------------------------------------------------------
- def create_stand_viewport
- @viewport_stand = Viewport.new
- @viewport_stand.z = 100
- end
- #--------------------------------------------------------------------------
- # ● Spawn area sprite
- #--------------------------------------------------------------------------
- def create_stand_spriteset
- # Modify by not using display port to control Z coordinate
- @stand_spriteset = Lctseng::Spriteset_Stand.new(nil)
- end
- #--------------------------------------------------------------------------
- # ● Update screen (basic) [redefined]
- #--------------------------------------------------------------------------
- def update_basic
- lctseng_stand_update_basic
- update_stand_spriteset
- end
- #--------------------------------------------------------------------------
- # ● Update picture sprite
- #--------------------------------------------------------------------------
- def update_stand_spriteset
- @stand_spriteset.update
- end
- #--------------------------------------------------------------------------
- # ● End processing [redefined]
- #--------------------------------------------------------------------------
- def terminate
- stand_terminate
- lctseng_stand_terminate
- dispose_stand_spriteset
- #dispose_stand_viewport
- end
- #--------------------------------------------------------------------------
- # ● dispose picture sprite
- #--------------------------------------------------------------------------
- def dispose_stand_spriteset
- @stand_spriteset.dispose
- end
- #--------------------------------------------------------------------------
- # ● dispose upright display port
- #--------------------------------------------------------------------------
- def dispose_stand_viewport
- @viewport_stand.dispose
- end
- #--------------------------------------------------------------------------
- # ● Standing painting finish processing
- #--------------------------------------------------------------------------
- def stand_terminate
- @stand_spriteset.terminate
- while @stand_spriteset.terminating?
- @stand_spriteset.terminate_countdown
- puts "Processing"
- @stand_spriteset.update
- Graphics.update
- end
- end
- end
- #encoding:utf-8
- #==============================================================================
- # ■ Scene_Map
- #------------------------------------------------------------------------------
- # Map screen
- #==============================================================================
- class Scene_Map < Scene_Base
- #--------------------------------------------------------------------------
- # ● redefine
- #--------------------------------------------------------------------------
- unless $@
- alias lctseng_stand_pre_transfer pre_transfer
- end
- #--------------------------------------------------------------------------
- # ● Location move [redefined]
- #--------------------------------------------------------------------------
- def pre_transfer
- puts "Transfer processing"
- stand_terminate
- lctseng_stand_pre_transfer
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement