Raven BellamyLun Ene 21, 2013 1:26 am
Usuario Nv9
Muestra en la pantalla de game over un cuadro con las opciones de: Continuar, salir del juego o ir al menu principal
Instrucciones:
*Simplemente colocar el script sobre Main
Instrucciones:
*Simplemente colocar el script sobre Main
- Código:
=begin
[ =================================================================== ]
[ =================================================================== ]
[ ============= ] SCRIPT CREADO POR: [ ============= ]
[ ============= ] [ ============= ]
[ ============= ] >>> Dark Chocobo [ ============= ]
[ ============= ] [ ============= ]
[ ============= ] [ ============= ]
[ ============= ] > Menu al salir GameOver < [ ============= ]
[ ============= ] [ ============= ]
[ =================================================================== ]
[ =============== ] : Comunidade RPG Maker VX : [ =============== ]
[ ===== ] http://www.orkut.com/Community.aspx?cmm=40232098 [ ==== ]
[ =================================================================== ]
[ =================================================================== ]
Resume:
- Este script hace que durante la imagen de Game Over salga una ventana con varias opciones.
- Esta ventana tendrá los siguientes comandos:
> Continuar (Cargar un archivo de guardado)
> Salir del juego (Cierra el juego)
> Menú Principal (Te lleva al menú del título)
Instrucciones:
- En las lineas 32, 33 y 34 podeis editar los textos(contienen lo que saldra en la ventana)
=end
# Cria as configuraçíµes iniciais do script.
$DarkChocoboScripts = {} if $DarkChocoboScripts.nil?
$DarkChocoboScripts["Menu no GameOver"] = true
module Vocab
Game_Over_Continue = "Continuar"
Game_Over_Quit = "Salir del juego"
Game_Over_Title = "Menú Principal"
end
class Scene_Gameover < Scene_Base
alias start_go start
def start
create_command_window
start_go
end
def create_command_window
s1 = Vocab::Game_Over_Continue
s2 = Vocab::Game_Over_Quit
s3 = Vocab::Game_Over_Title
@command_window = Window_Command.new(172,[s1,s2,s3])
@command_window.x = (544 - @command_window.width) / 2
@command_window.y = 288
@command_window.index = 2
@continue_enabled = (Dir.glob('Save*.rvdata').size > 0)
if @continue_enabled # ?????????????
@command_window.index = 0 # ?????????
else # ?????
@command_window.draw_item(0, false) # ?????????????
end
@command_window.openness = 0
@command_window.open
end
def post_start
super
open_command_window
end
def pre_terminate
super
close_command_window
end
def open_command_window
@command_window.open
begin
@command_window.update
Graphics.update
end until @command_window.openness == 255
end
def close_command_window
@command_window.close
begin
@command_window.update
Graphics.update
end until @command_window.openness == 0
end
def update
@command_window.update
if Input.trigger?(Input::C)
case @command_window.index
when 0
if @continue_enabled
Sound.play_decision
$scene = Scene_File.new(false, true, false)
Graphics.fadeout(120)
else
Sound.play_buzzer
end
when 1
Sound.play_decision
RPG::BGM.fade(800)
RPG::BGS.fade(800)
RPG::ME.fade(800)
$scene = nil
when 2
Sound.play_decision
$scene = Scene_Title.new
Graphics.fadeout(120)
end
end
end
end