[pre lang="ruby" line="1"]###############################################################################
#Pause Script Version 3
# Author: Unsigned_Zero
# Updated by Tsukihime
###############################################################################
# Pause picture should be placed in the Graphics/System folder
module U0_Pause_module
PAUSE_BUTTON = "B"
Pause_Picture = "Pause"
#dim the screen during pause
Dim_Screen = false
Dim_Brightness = 100
#The bgm to play when paused
Pause_Music = "1"
#The bgm volume when paused
Pause_Volume = 0
# Freeze Time when in pause mode?
TIME_STOP = true
PAUSE_BUTTON2 = eval("Input::#{PAUSE_BUTTON}")
PAUSE_OPACITY = 255 #opacity of the picture
end
#==============================================================================
# Scene_Base
#==============================================================================
class Scene_Base
include U0_Pause_module
alias u0_pause_update update
def update
if Input.trigger?(PAUSE_BUTTON2)
frame = Graphics.frame_count
stopping
if TIME_STOP
Graphics.frame_count = frame
end
end
u0_pause_update
end
end[/pre]
[pre lang="ruby" line="1"]class Scene_Base
@ck_map_id = [1,3,6] #不要执行暂停的地图
include U0_Pause_module
alias u0_pause_update update
def update
return if @ck_map_id.include?($game_map.map_id) #如果 @ck_map_id 中有地图 id 就返回不执行下面的命令
if Input.trigger?(PAUSE_BUTTON2) && $game_switches[24] != true
frame = Graphics.frame_count
stopping
if TIME_STOP
Graphics.frame_count = frame
end
end
u0_pause_update
end
[/pre]