Rafidelis Scenes PDF Print E-mail
User Rating: / 1
PoorBest 
Written by Rafidelis   

About the Script

This script leaves completely customized the Scenes of the game, you can
display images, set the opacity of each window for each Scene.
This script can be useful for displaying images with the name of the game, basically
of each window, leaving the game with a guy more professional ^ ^

The scenes are Modified:

  • Scene_Menu
  • Scene_Item
  • Scene_Skill
  • Scene_Equip
  • Scene_Status
  • Scene_Status
  • Scene_End

Features

  • You will decide whether or not to use background image of
  • You can set the opacity of every window, every Scene
  • You may decide to horizontal, vertical and poisção the opacity of the window
  • We added two new options on the menu of game, time of game and a window with the name of the current map 

Screenshots

Rafidelis ScenesRafidelis ScenesRafidelis ScenesRafidelis ScenesRafidelis ScenesRafidelis ScenesRafidelis ScenesRafidelis ScenesRafidelis ScenesRafidelis ScenesRafidelis ScenesRafidelis ScenesRafidelis Scenes

 

Instructions

Well, you can use the 6 scripts, or only one, and just copy and paste it above
the script of his main game, but remember to read the instructions on each script.
First go into every script and will define whether or not to use wall paper, the opacity of
windows of scenes and the name of the image that will use the fund in each scene.
But you can do so by event:
Scene_Menu
If you want to change the choice to use / not use background image, use any time
by calling script command:

-------------------------------------------------- ------------------------------
Scene_Menu
$USAR_IMG_FUNDO_MENU = true or false
If you want to change the background image at any time, use the command call script:
$NAME_IMG_MENU = "NAME_OF_IMAGE"
------------------------------------------------ -----------------------------
Scene_Item
If you want to change the option to use / not use background image, use any time
by calling script command:
$USAR_IMG_FUNDO_ITEM = true or false

If you want to change the background image at any time, use the command call script:
$NAME_IMG_ITEM = "NAME_OF_IMAGE"
-------------------------------------------------------------------------------
Scene_Skill
If you want to change the option to use / not use background image, use any time
by calling script command:
$USAR_IMG_FUNDO_SKILL = true or false

If you want to change the background image at any time, use the command call script:
$NAME_IMG_SKILL = "NAME_OF_IMAGE"
------------------------------------------------------------------------------
Scene_Equip
If you want to change the option to use / not use background image, use any time
by calling script command:
$USAR_IMG_FUNDO_EQUIP = true or false

If you want to change the background image at any time, use the command call script:
$NAME_IMG_EQUIP = "NAME_OF_IMAGE"
-------------------------------------------------------------------------------
Scene_Status
If you want to change the option to use / not use background image, use any time
by calling script command:
$USAR_IMG_FUNDO_STATUS = true or false

If you want to change the background image at any time, use the command call script:
$NAME_IMG_STATUS = "NAME_OF_IMAGE"
-------------------------------------------------------------------------------
Scene_File
If you want to change the option to use / not use background image, use any time
by calling script command:
$USAR_IMG_FUNDO_FILE = true or false

If you want to change the background image at any time, use the command call script:
$NAME_IMG_FILE = "NAME_OF_IMAGE"
-------------------------------------------------------------------------------

Scene Menu
=begin
[ ===================================================================== ]
[ ==================================================================== ]
[ ============= ]| SCRIPT CRIADO POR: |[ ============= ]
[ ============= ]| |[ ============= ]
[ ============= ]| >>> Rafidelis <<< |[ ============= ]
[ ============= ]| ------------------------------ |[ ============= ]
[ ============= ]| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |[ ============= ]
[ ============= ]| >>> New Scene Visual Menu <<< |[ ============= ]
[ ============= ]| |[ ============= ]
[ ==================================================================== ]
[ ============ ] Mais Scripts de Rafidelis em : [ ============= ]
[ ============ ] >>> ReinoRpg.com <<< [ ============= ]
[ ==================================================================== ]
[ =============== ] CREDITOS [ ================ ]
[ ===== ] www.ReinoRpg.com| [ ===== ]
[ ==================================================================== ]
[ ==================================================================== ]

N E W S C E N E V I S U A L M E N U

INSTRUÇÕES:
|===============================================================================
|
| 1° Mude na linha 59 se você ira ou não usar uma imagem de fundo |
| |
| Use true para usar imagem de fundo (A imagem tem que estar na pasta Pictures)|
| |
| Use false para não usar uma imagem no fundo |
================================================================================
|
| Para usar uma imagem de fundo a qualquer momento do jogo use o comando |
| chamar script e digite: |
| $USAR_IMG_FUNDO_MENU = true |
| |
| Para retirar a imagem de fundo a qualquer momento do jogo use o comando |
| chamar script e digite: |
| $USAR_IMG_FUNDO_MENU = false |
| ==============================================================================|
| |
| 2° Vá ate a linha 63 e defina o nome da imagem que deseja usar,caso o valor |
| da variavel na linha 59 for false,deixe o nome da imagem como está,ou em "" |
|===============================================================================
|
| Para mudar o nome da imagem de fundo a qualquer momento use o comando chamar |
| script e digite: |
| $NAME_IMG_MENU = "NOME_DA_IMG" |
| Assim,a imagem de fundo da janela de equipamentos será a que você escolheu o |
| nome,caso a imagem não esteja na pasta picture,o script ira dizer que não |
| pode encontrar a imagem,sendo assim,ira gerar um erro. |
| ==============================================================================|
| OBS: O tamanho da imagem não pode superar o tamanho 544 x 416, |
| Caso sua imagem não fique na posição desejada,mude nas linhas 65 e 66 as |
| posições horizontais e verticais da imagem |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
=end
#===============================================================================
# I N I C I O D A S C O N F I G U R A Ç Õ E S
#-------------------------------------------------------------------------------
module Rafidelis
module Rafidelis_Menu
$USAR_IMG_FUNDO_MENU = true # Use true Para Exibir | false para não usar imagem
#===============================================================================
# C O N F I G U R A Ç Õ E S D A I M A G E M
#-------------------------------------------------------------------------------
$NAME_IMG_MENU = "IMAGEM" # Nome da Imagem de Fundo
IMG_MENU_OPACITY = 255 # Opacidade da Imagem(0~255)
IMG_MENU_POS_X = 0 # Posição X (horizontal) da imagem
IMG_MENU_POS_Y = 0 # Posição Y (vertical) da imagem
#===============================================================================
# C O N F I G U R A Ç Õ E S D A S J A N E L A S
#-------------------------------------------------------------------------------
OPACIDADE_WIN_GOLD = 0 # Opacidade de janela de dinheiro
OPACIDADE_WIN_PLAYTIME = 0 # Opacidade da janela que mostra o tempo de jogo
OPACIDADE_WIN_MAPNAME = 0 # Opacidade da janela que mostra o nome do mapa
OPACIDADE_WIN_MENU_STATUS = 0 # Opacidade da janela de Status(controla se tal arma e mais forte que a antiga)
OPACIDADE_WIN_COMANDO = 0 # Opacidade da Janela de comandos(onde você seleciona qual equipamentos ira usar)
end
end
#===============================================================================
# F I M D A S C O N F I G U R A Ç Õ E S
#-------------------------------------------------------------------------------
class Scene_Menu < Scene_Base
def initialize(menu_index = 0)
@menu_index = menu_index
end

def start
super
create_menu_background
create_command_window
@gold_window = Window_Gold.new(383, 360)
@gold_window.opacity = Rafidelis::Rafidelis_Menu::OPACIDADE_WIN_GOLD
@window_playtime = Rafidelis_Playtime.new(384,176)
@window_playtime.opacity = Rafidelis::Rafidelis_Menu::OPACIDADE_WIN_PLAYTIME
@window_mapname = Rafidelis_Mapname.new(383,264)
@window_mapname.opacity = Rafidelis::Rafidelis_Menu::OPACIDADE_WIN_MAPNAME
@status_window = Window_MenuStatus.new(0, 0)
@status_window.opacity = Rafidelis::Rafidelis_Menu::OPACIDADE_WIN_MENU_STATUS
if $USAR_IMG_FUNDO_MENU
@menu_bg_img = Sprite.new
@menu_bg_img.bitmap = Cache.picture($NAME_IMG_MENU)
@menu_bg_img.x = Rafidelis::Rafidelis_Menu::IMG_MENU_POS_X
@menu_bg_img.y = Rafidelis::Rafidelis_Menu::IMG_MENU_POS_Y
@menu_bg_img.opacity = Rafidelis::Rafidelis_Menu::IMG_MENU_OPACITY
end
end

def terminate
super
dispose_menu_background
@command_window.dispose
@gold_window.dispose
@window_playtime.dispose
@window_mapname.dispose
@status_window.dispose
if $USAR_IMG_FUNDO_MENU then @menu_bg_img.dispose end
end

def update
super
update_menu_background
@command_window.update
@gold_window.update
@window_playtime.update
@window_mapname.update
@status_window.update
if $USAR_IMG_FUNDO_MENU then @menu_bg_img.update end
if @command_window.active
update_command_selection
elsif @status_window.active
update_actor_selection
end
end

def create_command_window
s1 = Vocab::item
s2 = Vocab::skill
s3 = Vocab::equip
s4 = Vocab::status
s5 = Vocab::save
s6 = Vocab::game_end
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])
@command_window.index = @menu_index
@command_window.opacity = Rafidelis::Rafidelis_Menu::OPACIDADE_WIN_COMANDO
@command_window.x = 383
if $game_party.members.size == 0
@command_window.draw_item(0, false)
@command_window.draw_item(1, false)
@command_window.draw_item(2, false)
@command_window.draw_item(3, false)
end
if $game_system.save_disabled
@command_window.draw_item(4, false)
end
end

def update_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
$scene = Scene_Map.new
elsif Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 4
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 4
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0
$scene = Scene_Item.new
when 1,2,3
start_actor_selection
when 4
$scene = Scene_File.new(true, false, false)
when 5
$scene = Scene_End.new
end
end
end

def start_actor_selection
@command_window.active = false
@status_window.active = true
if $game_party.last_actor_index < @status_window.item_max
@status_window.index = $game_party.last_actor_index
else
@status_window.index = 0
end
end

def end_actor_selection
@command_window.active = true
@status_window.active = false
@status_window.index = -1
end

def update_actor_selection
if Input.trigger?(Input::B)
Sound.play_cancel
end_actor_selection
elsif Input.trigger?(Input::C)
$game_party.last_actor_index = @status_window.index
Sound.play_decision
case @command_window.index
when 1
$scene = Scene_Skill.new(@status_window.index)
when 2
$scene = Scene_Equip.new(@status_window.index)
when 3
$scene = Scene_Status.new(@status_window.index)
end
end
end
end

class Rafidelis_Playtime < Window_Base
def initialize(x, y)
super(x, y, 160, WLH + 64)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(0, 0, 128, 32, "Tempo de Jogo:",1)
self.contents.font.color = normal_color
@total_sec = Graphics.frame_count / Graphics.frame_rate
hour = @total_sec / 60 / 60
min = @total_sec / 60 % 60
sec = @total_sec % 60
text = sprintf("%02d:%02d:%02d", hour, min, sec)
self.contents.font.color = normal_color
self.contents.draw_text(0, 28, 120, 32, text, 2)
end
def update
super
if Graphics.frame_count / Graphics.frame_rate != @total_sec
refresh
end
end
end

class Rafidelis_Mapname < Window_Base
def initialize(x, y)
super(x, y, 160, 96)
update
end
def update
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(0,0,128,32,"Localização:",1)
self.contents.font.color = normal_color
self.contents.draw_text(0,32,128,32,$game_map.map_name.to_s)
end
end

class Game_Map
attr_reader :map_id
def map_name
$mpname = load_data("Data/MapInfos.rvdata")
$mpname[@map_id].name
end
end
Scene_Equip
=begin
[ ===================================================================== ]
[ ==================================================================== ]
[ ============= ]| SCRIPT CRIADO POR: |[ ============= ]
[ ============= ]| |[ ============= ]
[ ============= ]| >>> Rafidelis <<< |[ ============= ]
[ ============= ]| ------------------------------ |[ ============= ]
[ ============= ]| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |[ ============= ]
[ ============= ]| >>> New Scene Visual Equip <<< |[ ============= ]
[ ============= ]| |[ ============= ]
[ ==================================================================== ]
[ ============ ] Mais Scripts de Rafidelis em : [ ============= ]
[ ============ ] >>> ReinoRpg.com <<< [ ============= ]
[ ==================================================================== ]
[ =============== ] CREDITOS [ ================ ]
[ ===== ] www.ReinoRpg.com| [ ===== ]
[ ==================================================================== ]
[ ==================================================================== ]

N E W S C E N E V I S U A L E Q U I P

INSTRUÇÕES:
|===============================================================================
|
| 1° Mude na linha 63 se você ira ou não usar uma imagem de fundo |
| |
| Use true para usar imagem de fundo (A imagem tem que estar na pasta Pictures)|
| |
| Use false para não usar uma imagem no fundo |
================================================================================
|
| Para usar uma imagem de fundo a qualquer momento do jogo use o comando |
| chamar script e digite: |
| $USAR_IMG_FUNDO_EQUIP = true |
| |
| Para retirar a imagem de fundo a qualquer momento do jogo use o comando |
| chamar script e digite: |
| $USAR_IMG_FUNDO_EQUIP = false |
| ==============================================================================|
| |
| 2° Vá ate a linha 67 e defina o nome da imagem que deseja usar,caso o valor |
| da variavel na linha 63 for false,deixe o nome da imagem como está,ou em "" |
|===============================================================================
|
| Para mudar o nome da imagem de fundo a qualquer momento use o comando chamar |
| script e digite: |
| $NAME_IMG_EQUIP = "NOME_DA_IMG" |
| Assim,a imagem de fundo da janela de equipamentos será a que você escolheu o |
| nome,caso a imagem não esteja na pasta picture,o script ira dizer que não |
| pode encontrar a imagem,sendo assim,ira gerar um erro. |
| ==============================================================================|
| OBS: O tamanho da imagem não pode superar o tamanho 544 x 416,mas recomendo |
| usar 544 x 209,assim a imagem ficara somente na parte da cima,não |
| atrapalhandoa visualização da janela de equipamentos. |
| Caso sua imagem não fique na posição desejada,mude nas linhas 64 e 65 as |
| posições horizontais e verticais da imagem |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
=end


#===============================================================================
# I N I C I O D A S C O N F I G U R A Ç Õ E S
#-------------------------------------------------------------------------------
module Rafidelis
module Rafidelis_Equip
$USAR_IMG_FUNDO_EQUIP = true #Use "Sim" Para Exibir | "Não" para não usar imagem
#===============================================================================
# C O N F I G U R A Ç Õ E S D A I M A G E M
#-------------------------------------------------------------------------------
$NAME_IMG_EQUIP = "IMAGEM2" # Nome da Imagem de Fundo
IMG_EQUIP_POS_X = 0 # Posição X (horizontal) da Imagem
IMG_EQUIP_POS_Y = 0 # Posição Y (vertical) da imagem
IMG_EQUIP_OPACITY = 255 # Opacidada da imagem de fundo (0 ~ 255)
#===============================================================================
# C O N F I G U R A Ç Õ E S D A S J A N E L A S
#-------------------------------------------------------------------------------
OPACIDADE_FUNDO_EQUIP =0 # Opacidade da janela de fundo(Deixe em 0 se for exibir alguma imagem)
OPACIDADE_WIN_HELP_EQUIP =0 # Opacidade da janela de ajuda,onde são exibidas as descrições dos equipamentos
OPACIDADE_WIN_STATUS_EQUIP =0 # Opacidade da janela de status,onde e exibida qual a diferença de "poderes" de um equipamento a outro
OPACIDADE_WIN_COMAND_EQUIP =0 # Opacidade da janela de comando,onde e selecionado os esquipamentos que serão usado
#===============================================================================
# F I M D A S C O N F I G U R A Ç Õ E S
#-------------------------------------------------------------------------------
end
end

class Scene_Equip < Scene_Base
EQUIP_TYPE_MAX = 5
def initialize(actor_index = 0, equip_index = 0)
@actor_index = actor_index
@equip_index = equip_index
end

def start
super
create_menu_background
@actor = $game_party.members[@actor_index]
@help_window = Window_Help.new
@help_window.y = 360
@help_window.opacity = Rafidelis::Rafidelis_Equip::OPACIDADE_WIN_HELP_EQUIP
@help_window.z = 101
create_item_windows
@equip_window = Window_Equip.new(0, 208, @actor)
@equip_window.help_window = @help_window
@equip_window.index = @equip_index
@equip_window.opacity = Rafidelis::Rafidelis_Equip::OPACIDADE_WIN_COMAND_EQUIP
@equip_window.z = 101
@status_window = Window_EquipStatus.new(334, 208, @actor)
@status_window.opacity = Rafidelis::Rafidelis_Equip::OPACIDADE_WIN_STATUS_EQUIP
@status_window.z = 101
if $USAR_IMG_FUNDO_EQUIP
@back_equip_img = Sprite.new
@back_equip_img.bitmap = Cache.picture($NAME_IMG_EQUIP)
@back_equip_img.x = Rafidelis::Rafidelis_Equip::IMG_EQUIP_POS_X
@back_equip_img.y = Rafidelis::Rafidelis_Equip::IMG_EQUIP_POS_Y
@back_equip_img.opacity = Rafidelis::Rafidelis_Equip::IMG_EQUIP_OPACITY
@back_equip_img.z = 100
end
end

def terminate
super
dispose_menu_background
@help_window.dispose
@equip_window.dispose
@status_window.dispose
if $USAR_IMG_FUNDO_EQUIP then @back_equip_img.dispose end
dispose_item_windows
end

def return_scene
$scene = Scene_Menu.new(2)
end

def next_actor
@actor_index += 1
@actor_index %= $game_party.members.size
$scene = Scene_Equip.new(@actor_index, @equip_window.index)
end

def prev_actor
@actor_index += $game_party.members.size - 1
@actor_index %= $game_party.members.size
$scene = Scene_Equip.new(@actor_index, @equip_window.index)
end

def update
super
update_menu_background
@help_window.update
update_equip_window
update_status_window
update_item_windows
if $USAR_IMG_FUNDO_EQUIP then @back_equip_img.update end
if @equip_window.active
update_equip_selection
elsif @item_window.active
update_item_selection
end
end

def create_item_windows
@item_windows = []
for i in 0...EQUIP_TYPE_MAX
@item_windows = Window_EquipItem.new(0,0, 544, 208, @actor, i)
@item_windows[i].help_window = @help_window
@item_windows[i].visible = (@equip_index == i)
@item_windows[i].y = 0
@item_windows[i].height = 208
@item_windows[i].active = false
@item_windows[i].index = -1
@item_windows[i].opacity = Rafidelis::Rafidelis_Equip::OPACIDADE_FUNDO_EQUIP
@item_windows[i].z = 101
end
end

def dispose_item_windows
for window in @item_windows
window.dispose
end
end

def update_item_windows
for i in 0...EQUIP_TYPE_MAX
@item_windows[i].visible = (@equip_window.index == i)
@item_windows[i].update
end
@item_window = @item_windows[@equip_window.index]
end

def update_equip_window
@equip_window.update
end

def update_status_window
if @equip_window.active
@status_window.set_new_parameters(nil, nil, nil, nil)
elsif @item_window.active
temp_actor = @actor.clone
temp_actor.change_equip(@equip_window.index, @item_window.item, true)
new_atk = temp_actor.atk
new_def = temp_actor.def
new_spi = temp_actor.spi
new_agi = temp_actor.agi
@status_window.set_new_parameters(new_atk, new_def, new_spi, new_agi)
end
@status_window.update
end

def update_equip_selection
if Input.trigger?(Input::B)
Sound.play_cancel
return_scene
elsif Input.trigger?(Input::R)
Sound.play_cursor
next_actor
elsif Input.trigger?(Input::L)
Sound.play_cursor
prev_actor
elsif Input.trigger?(Input::C)
if @actor.fix_equipment
Sound.play_buzzer
else
Sound.play_decision
@equip_window.active = false
@item_window.active = true
@item_window.index = 0
end
end
end

def update_item_selection
if Input.trigger?(Input::B)
Sound.play_cancel
@equip_window.active = true
@item_window.active = false
@item_window.index = -1
elsif Input.trigger?(Input::C)
Sound.play_equip
@actor.change_equip(@equip_window.index, @item_window.item)
@equip_window.active = true
@item_window.active = false
@item_window.index = -1
@equip_window.refresh
for item_window in @item_windows
item_window.refresh
end
end
end
end
Scene_Status
=begin
[ ===================================================================== ]
[ ==================================================================== ]
[ ============= ]| SCRIPT CRIADO POR: |[ ============= ]
[ ============= ]| |[ ============= ]
[ ============= ]| >>> Rafidelis <<< |[ ============= ]
[ ============= ]| ------------------------------ |[ ============= ]
[ ============= ]| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |[ ============= ]
[ ============= ]| >>> New Scene Visual Status<<< |[ ============= ]
[ ============= ]| Rafa_fidelis @ hotmail.com |[ ============= ]
[ ==================================================================== ]
[ ============ ] Mais Scripts de Rafidelis em : [ ============= ]
[ ============ ] >>> ReinoRpg.com <<< [ ============= ]
[ ==================================================================== ]
[ =============== ] CREDITOS [ ================ ]
[ ===== ] www.ReinoRpg.com| DarkChocobo [ ===== ]
[ ==================================================================== ]
[ ==================================================================== ]

INSTRUÇÕES:

1° Mude na linha 58 se você ira ou não usar uma imagem de fundo

Use "Sim"para usar imagem de fundo (A imagem tem que estar na pasta Pictures)

Use "Não" para não usar uma imagem no fundo

Se o valor for diferente de "Sim"ou "Não",automaticamente o valor sera "Não"

Ou seja,se você digitar "abobrinha",o valor retornado sera "Não"

2° Vá ate a linha 62 e defina o nome da imagem que deseja usar,caso
você não queira usar imagem,deixe o nome em ""

O tamanho da imagem não pode superar o tamanho 544 x 416

==============================================================================

Para usar/não usar imagem de fundo a qualquer momento do jogo use o comando
chamar script e digite:
$USAR_IMG_FUNDO_STATUS = "Sim" ou "Não"
==============================================================================
PARA VER IMAGENS DO SCRIPT ACESSE O LINK ABAIXO:
==============================================================================
Para mudar a imagem do fundo a qualquer momento use o comando chamar
script e digite:

$NAME_IMG_STATUS = "NOME_DA_IMG"

==============================================================================
=end

#===============================================================================
# I N I C I O D A S C O N F I G U R A Ç Õ E S
#-------------------------------------------------------------------------------
module Rafidelis
module Rafidelis_Status
$USAR_IMG_FUNDO_STATUS = true # Use true Para Exibir | false para não usar imagem
#===============================================================================
# C O N F I G U R A Ç Õ E S D A I M A G E M
#-------------------------------------------------------------------------------
$NAME_IMG_STATUS = "IMAGEM3" # Nome da Imagem a ser usada
IMG_STATUS_POS_X = 0 # Posição X (horizontal) da imagem
IMG_STATUS_POS_Y = 0 # Posição Y (Vertical) da imagem
IMG_STATUS_OPACITY = 255 # Opacidade da Imagem (0 ~ 255)
#===============================================================================
# C O N F I G U R A Ç Õ E S D A S J A N E L A S
#-------------------------------------------------------------------------------
OPACIDADE_WIN_STATUS = 0 #Opacidadade da janela de fundo,deixe em 0 se for usar img de fundo
#===============================================================================
# else
# @back_status_img = nil F I M D A S C O N F I G U R A Ç Õ E S
#-------------------------------------------------------------------------------
end
end
class Scene_Status < Scene_Base
def initialize(actor_index = 0)
@actor_index = actor_index
end

def start
super
create_menu_background
if $USAR_IMG_FUNDO_STATUS == true
@back_status_img = Sprite.new
@back_status_img.bitmap = Cache.picture($NAME_IMG_STATUS)
@back_status_img.x = Rafidelis::Rafidelis_Status::IMG_STATUS_POS_X
@back_status_img.y = Rafidelis::Rafidelis_Status::IMG_STATUS_POS_Y
@back_status_img.opacity = Rafidelis::Rafidelis_Status::IMG_STATUS_OPACITY
end
@actor = $game_party.members[@actor_index]
@status_window = Window_Status.new(@actor)
@status_window.opacity = Rafidelis::Rafidelis_Status::OPACIDADE_WIN_STATUS
end

def terminate
super
dispose_menu_background
@status_window.dispose
if $USAR_IMG_STATUS then @status_window.dispose end
end

def return_scene
$scene = Scene_Menu.new(3)
end

def next_actor
@actor_index += 1
@actor_index %= $game_party.members.size
$scene = Scene_Status.new(@actor_index)
end

def prev_actor
@actor_index += $game_party.members.size - 1
@actor_index %= $game_party.members.size
$scene = Scene_Status.new(@actor_index)
end

def update
update_menu_background
@status_window.update
if $USAR_IMG_STATUS then @status_window.dispose end
if Input.trigger?(Input::B)
Sound.play_cancel
return_scene
elsif Input.trigger?(Input::R)
Sound.play_cursor
next_actor
elsif Input.trigger?(Input::L)
Sound.play_cursor
prev_actor
end
super
end
end

#==============================================================================
# Window_Status
#------------------------------------------------------------------------------
# Janela que exibe os status dos personagens.
#==============================================================================

class Window_Status < Window_Base
def initialize(actor)
super(0, 0, 544, 416)
@actor = actor
refresh
end
def refresh
self.contents.clear
draw_actor_name(@actor, 65, 106 +5)
draw_actor_class(@actor, 65,132+5)
draw_actor_face(@actor, 8, 1.5)
draw_basic_info(128, 32)
draw_parameters(310, 60)
draw_exp_info(0,280)
draw_equipments(310, 240)
end

def draw_basic_info(x, y)
self.contents.font.color = system_color
self.contents.draw_text(0,y+WLH*3+5,544,32,"Nome:")
self.contents.draw_text(0,y+WLH*4+5,544,32,"Classe:")
self.contents.draw_text(0,y+WLH*5+5,544,32,Vocab::level + ":")
draw_actor_level(@actor,55, y + WLH * 5 + 9.2)
draw_actor_state(@actor, x, y + WLH * 1)
draw_actor_hp(@actor, 4, y + WLH * 6 + 15)
draw_actor_mp(@actor, 4, y + WLH * 7 + 15)
end

def draw_parameters(x, y)
self.contents.font.color = system_color
self.contents.draw_text(310,30,544,32,"Status do Heroi")
draw_actor_parameter(@actor, x, y + WLH * 0, 0)
draw_actor_parameter(@actor, x, y + WLH * 1, 1)
draw_actor_parameter(@actor, x, y + WLH * 2, 2)
draw_actor_parameter(@actor, x, y + WLH * 3, 3)
end

def draw_exp_info(x, y)
s1 = @actor.exp_s
s2 = @actor.next_rest_exp_s
s_next = sprintf(Vocab::ExpNext, Vocab::level)
self.contents.font.color = system_color
self.contents.draw_text(x, y + WLH * 0, 180, WLH, Vocab::ExpTotal)
self.contents.draw_text(x, y + WLH * 2, 180, WLH, s_next)
self.contents.font.color = normal_color
self.contents.draw_text(x, y + WLH * 1, 180, WLH, s1, 2)
self.contents.draw_text(x, y + WLH * 3, 180, WLH, s2, 2)
end

def draw_equipments(x, y)
self.contents.font.color = system_color
self.contents.draw_text(x, y, 120, WLH, Vocab::equip+"s")
for i in 0..4
draw_item_name(@actor.equips[i], x + 16, y + WLH * (i + 1))
end
end
end
Scene_File
=begin
[ ===================================================================== ]
[ ==================================================================== ]
[ ============= ]| SCRIPT CRIADO POR: |[ ============= ]
[ ============= ]| |[ ============= ]
[ ============= ]| >>> Rafidelis <<< |[ ============= ]
[ ============= ]| ------------------------------ |[ ============= ]
[ ============= ]| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |[ ============= ]
[ ============= ]| >>New Scene Visual Save/Load<< |[ ============= ]
[ ============= ]| Rafa_fidelis @ hotmail.com |[ ============= ]
[ ==================================================================== ]
[ ============ ] Mais Scripts de Rafidelis em : [ ============= ]
[ ============ ] >>> ReinoRpg.com <<< [ ============= ]
[ ==================================================================== ]
[ =============== ] CREDITOS [ ================ ]
[ ===== ] www.ReinoRpg.com| DarkChocobo [ ===== ]
[ ==================================================================== ]
[ ==================================================================== ]

INSTRUÇÕES:

1° Mude na linha 57 se você ira ou não usar uma imagem de fundo

Use "Sim"para usar imagem de fundo (A imagem tem que estar na pasta Pictures)

Use "Não" para não usar uma imagem no fundo

Se o valor for diferente de "Sim"ou "Não",automaticamente o valor sera "Não"

Ou seja,se você digitar "abobrinha",o valor retornado sera "Não"

2° Vá ate a linha 61 e defina o nome da imagem que deseja usar,caso
você não queira usar imagem,deixe o nome em ""

O tamanho da imagem não pode superar o tamanho 544 x 416

==============================================================================

Para usar/não usar imagem de fundo a qualquer momento do jogo use o comando
chamar script e digite:
$USAR_IMG_FUNDO_FILE = "Sim" ou "Não"
==============================================================================
PARA VER IMAGENS DO SCRIPT ACESSE O LINK ABAIXO:
==============================================================================
Para mudar a imagem do fundo a qualquer momento use o comando chamar
script e digite:

$NAME_IMG_FILE = "NOME_DA_IMG"

==============================================================================
=end
#===============================================================================
# I N I C I O D A S C O N F I G U R A Ç Õ E S
#-------------------------------------------------------------------------------
module Rafidelis
module Rafidelis_File
$USAR_IMG_FUNDO_FILE = true # Use true Para Exibir | false para não usar imagem
#===============================================================================
# C O N F I G U R A Ç Õ E S D A I M A G E M
#-------------------------------------------------------------------------------
$NAME_IMG_FILE = "IMAGEM1" # Nome da Imagem a ser usada
IMG_FILE_POS_X = 0 # Posição X (horizontal) da imagem
IMG_FILE_POS_Y = 0 # Posição Y (Vertical) da imagem
IMG_FILE_OPACITY = 255 # Opacidade da Imagem (0 ~ 255)
#===============================================================================
# C O N F I G U R A Ç Õ E S D A S J A N E L A S
#-------------------------------------------------------------------------------
OPACIDADE_WIN_HELP_FILE = 0 #Opacidade da janela onde é exibido os textos do tipo "Deseja carregar Qual arquivo?"
OPACIDADE_WIN_FUNDO_FILE = 0 # Opacidade da janela de fundo,se for usar imagem deixe em 0
#===============================================================================
# F I M D A S C O N F I G U R A Ç Õ E S
#-------------------------------------------------------------------------------
end
end

class Window_SaveFile < Window_Base
attr_reader :filename
attr_reader :file_exist
attr_reader :time_stamp
attr_reader :selected
def initialize(file_index, filename)
super(0, 56 + file_index % 4 * 90, 544, 90)
self.opacity = Rafidelis::Rafidelis_File::OPACIDADE_WIN_FUNDO_FILE
@file_index = file_index
@filename = filename
load_gamedata
refresh
@selected = false
end
end

class Scene_File < Scene_Base
alias rafis_start start
def start
super
rafis_start
@help_window.opacity = Rafidelis::Rafidelis_File::OPACIDADE_WIN_HELP_FILE
if $USAR_IMG_FUNDO_FILE
@back_file_img = Sprite.new
@back_file_img.bitmap = Cache.picture($NAME_IMG_FILE)
@back_file_img.x = Rafidelis::Rafidelis_File::IMG_FILE_POS_Y
@back_file_img.y = Rafidelis::Rafidelis_File::IMG_FILE_POS_X
@back_file_img.opacity = Rafidelis::Rafidelis_File::IMG_FILE_OPACITY
end
end
end
Scene_End
=begin
[ ===================================================================== ]
[ ==================================================================== ]
[ ============= ]| SCRIPT CRIADO POR: |[ ============= ]
[ ============= ]| |[ ============= ]
[ ============= ]| >>> Rafidelis <<< |[ ============= ]
[ ============= ]| ------------------------------ |[ ============= ]
[ ============= ]| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |[ ============= ]
[ ============= ]| >>New Scene Visual End<< |[ ============= ]
[ ============= ]| Rafa_fidelis @ hotmail.com |[ ============= ]
[ ==================================================================== ]
[ ============ ] Mais Scripts de Rafidelis em : [ ============= ]
[ ============ ] >>> ReinoRpg.com <<< [ ============= ]
[ ==================================================================== ]
[ =============== ] CREDITOS [ ================ ]
[ ===== ] www.ReinoRpg.com| DarkChocobo [ ===== ]
[ ==================================================================== ]
[ ==================================================================== ]

INSTRUÇÕES:

1° Mude na linha 57 se você ira ou não usar uma imagem de fundo

Use "Sim"para usar imagem de fundo (A imagem tem que estar na pasta Pictures)

Use "Não" para não usar uma imagem no fundo

Se o valor for diferente de "Sim"ou "Não",automaticamente o valor sera "Não"

Ou seja,se você digitar "abobrinha",o valor retornado sera "Não"

2° Vá ate a linha 61 e defina o nome da imagem que deseja usar,caso
você não queira usar imagem,deixe o nome em ""

O tamanho da imagem não pode superar o tamanho 544 x 416

==============================================================================

Para usar/não usar imagem de fundo a qualquer momento do jogo use o comando
chamar script e digite:
$USAR_IMG_FUNDO_END = "Sim" ou "Não"
==============================================================================
PARA VER IMAGENS DO SCRIPT ACESSE O LINK ABAIXO:
==============================================================================
Para mudar a imagem do fundo a qualquer momento use o comando chamar
script e digite:

$NAME_IMG_END = "NOME_DA_IMG"

==============================================================================
=end
#===============================================================================
# I N I C I O D A S C O N F I G U R A Ç Õ E S
#-------------------------------------------------------------------------------
module Rafidelis
module Rafidelis_End
$USAR_IMG_FUNDO_END = true # Use true Para Exibir | false para não usar imagem
#===============================================================================
# C O N F I G U R A Ç Õ E S D A I M A G E M
#-------------------------------------------------------------------------------
$NAME_IMG_END = "IMAGEM" # Nome da Imagem a ser usada
IMG_END_POS_X = 0 # Posição X (horizontal) da imagem
IMG_END_POS_Y = 0 # Posição Y (Vertical) da imagem
IMG_END_OPACITY = 255 # Opacidade da Imagem (0 ~ 255)
#===============================================================================
# C O N F I G U R A Ç Õ E S D A J A N E L A
#-------------------------------------------------------------------------------
OPACIDADE_WIN_COMMAND_END = 0 #Opacidade da janela onde é exibido as opções ("Ir para titulo","Sair","Cancelar")?"
#===============================================================================
# F I M D A S C O N F I G U R A Ç Õ E S
#-------------------------------------------------------------------------------
end
end
class Scene_End < Scene_Base
def start
super
if $USAR_IMG_FUNDO_END
@back_end_img = Sprite.new
@back_end_img.bitmap = Cache.picture($NAME_IMG_END)
@back_end_img.x = Rafidelis::Rafidelis_End::IMG_END_POS_Y
@back_end_img.y = Rafidelis::Rafidelis_End::IMG_END_POS_X
@back_end_img.opacity = Rafidelis::Rafidelis_End::IMG_END_OPACITY
@back_end_img.z = 101
end
create_menu_background
create_command_window
end
def post_start
super
open_command_window
end
def pre_terminate
super
close_command_window
end

def terminate
super
if $USAR_IMG_FUNDO_FILE then @back_end_img.dispose end
dispose_command_window
dispose_menu_background
end

def return_scene
$scene = Scene_Menu.new(5)
end

def update
super
if $USAR_IMG_FUNDO_FILE then @back_end_img.update end
update_menu_background
@command_window.update
if Input.trigger?(Input::B)
Sound.play_cancel
return_scene
elsif Input.trigger?(Input::C)
case @command_window.index
when 0
command_to_title
when 1
command_shutdown
when 2
command_cancel
end
end
end

def update_menu_background
super
@menuback_sprite.tone.set(0, 0, 0, 128)
end

def create_command_window
s1 = Vocab::to_title
s2 = Vocab::shutdown
s3 = Vocab::cancel
@command_window = Window_Command.new(172, [s1, s2, s3])
@command_window.x = (544 - @command_window.width) / 2
@command_window.y = (416 - @command_window.height) / 2
@command_window.opacity = Rafidelis::Rafidelis_End::OPACIDADE_WIN_COMMAND_END
@command_window.z = 102
@command_window.openness = 0
end

def dispose_command_window
@command_window.dispose
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 command_to_title
Sound.play_decision
RPG::BGM.fade(800)
RPG::BGS.fade(800)
RPG::ME.fade(800)
$scene = Scene_Title.new
close_command_window
Graphics.fadeout(60)
end

def command_shutdown
Sound.play_decision
RPG::BGM.fade(800)
RPG::BGS.fade(800)
RPG::ME.fade(800)
$scene = nil
end

def command_cancel
Sound.play_decision
return_scene
end
end

 Download of Demo

The demo is in Portuguese, but even so, I recommend you see the demo
To better understand script

Scene Rafidelis

Video

 

 

Credits

Original Topic(In portuguese):http://www.reinorpg.com/index.php?topic=4563.0
Rafidelis|ReinoRpg.com

Comments (0)add
Write comment

busy
Last Updated on Tuesday, 09 December 2008 09:40