This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
hi this is my first published script it is easy but effective! you can customize it, like adding picture or something, but i like it simple ;P
Step 1 ::
copy the script in Spoiler 1 above main.
Step 2::
copy the script in Spoiler 2 in >> Scene_Map. under def Update <<
spoiler 1
Code:
#Done By AB4, AHMED BAMIEH
#ab4-120.com, Pause System O.o
class Scene_Pause
def initialize(menu_index = 0)
@menu_index = menu_index
end
def main
@window_a3=Window_a3.new
@window_a3.update("Game Paused")
@window_a3.opacity = 170
@window_a3.y= 150
@window_a3.x=224
@spriteset = Spriteset_Map.new
s1 = "Back To Game"
s2 = "Shutdown"
@window_a2 = Window_Command.new(180, [s1, s2])
@window_a2.y=200
@window_a2.x=224
@window_a2.index = @menu_index
@window_a2.opacity = 155
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@window_a2.dispose
@window_a3.dispose
@spriteset.dispose
end
def update
@window_a2.update
if Input.trigger?(Input::C)
case @window_a2.index
when 0
back
when 1
shutd
end
end
end
def back
$game_system.se_play($data_system.cancel_se)
$scene = Scene_Map.new
$game_map.autoplay
end
def shutd
$scene = Scene_Pause_phase_2.new
end
end
class Window_a3 < Window_Base
def initialize
super(0, 0, 180,50)
self.contents = Bitmap.new(width-32, height-32)
self.contents.font.name = "Tahoma"
self.contents.font.size = $defaultfontsize
end
def update(help_text)
self.contents.clear
self.contents.draw_text(0, -8, 440, 32, help_text)
end
end
class Scene_Pause_phase_2
def initialize(menu_index = 1)
@menu_index = menu_index
end
def main
@window_a3=Window_a3.new
@window_a3.update("Are You Sure?")
@window_a3.opacity = 170
@window_a3.y= 150
@window_a3.x=224
@spriteset = Spriteset_Map.new
s1 = "Yes"
s2 = "No"
@window_a2 = Window_Command.new(180, [s1, s2])
@window_a2.y=200
@window_a2.x=224
@window_a2.index = @menu_index
@window_a2.opacity = 155
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@window_a2.dispose
@window_a3.dispose
@spriteset.dispose
end
def update
@window_a2.update
if Input.trigger?(Input::C)
case @window_a2.index
when 0
back
when 1
shutd
end
end
end
def back
$scene = nil
end
def shutd
$scene = Scene_Pause.new
end
end
class Window_a3 < Window_Base
def initialize
super(0, 0, 180,50)
self.contents = Bitmap.new(width-32, height-32)
self.contents.font.name = "Tahoma"
self.contents.font.size = $defaultfontsize
end
def update(help_text)
self.contents.clear
self.contents.draw_text(0, -8, 440, 32, help_text)
end
end
spoiler 2
Code:
if Input.trigger?(Input::L)
# If event is running, or menu is not forbidden
unless $game_system.map_interpreter.running? or
$game_system.menu_disabled
$scene = Scene_Pause.new
end
end
Download::
I will put one if someone asked, i don't think it needs one :O :) :D
Credits ::
well it is done by me so please credit me when you use it.