Rafidelis 0 Report post Posted November 23, 2008 SCENES RAFIDELISBy: Rafidelis About the script:This script leaves completely customized the Scenes of the game, you candisplay images, set the opacity of each window for each Scene.This script can be useful for displaying images with the name of the game, basicallyof 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 :ScreenshotsMake comparisons to see the difference between the Scenes patterns and modified by me.NEW SCENE VISUAL MENUSCENE MENU DEFAULT DO RMVXNEW SCENE VISUAL ITEMSCENE ITEM DEFAULT DO RMVXNEW SCENE VISUAL SKILLSCENE SKILL DEFAULT DO RMVXNEW SCENE VISUAL EQUIPSCENE EQUIP DEFAULT DO RMVXNEW SCENE VISUAL STATUSSCENE STATUS DEFAULT DO RMVXNEW SCENE VISUAL ENDSCENE END DEFAULT DO RMVXNEW_SCENE_VISUAL_FILESCENE FILE DEFAULT DO RMVX Instructions:Well, you can use the 6 scripts, or only one, and just copy and paste it abovethe 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 ofwindows of scenes and the name of the image that will use the fund in each scene.But you can do so by event:Scene_MenuIf you want to change the choice to use / not use background image, use any timeby calling script command:-------------------------------------------------- ------------------------------Scene_Menu$USAR_IMG_FUNDO_MENU = true or falseIf you want to change the background image at any time, use the command call script:$NAME_IMG_MENU = "NAME_OF_IMAGE"------------------------------------------------ -----------------------------Scene_ItemIf you want to change the option to use / not use background image, use any timeby calling script command:$USAR_IMG_FUNDO_ITEM = true or falseIf you want to change the background image at any time, use the command call script:$NAME_IMG_ITEM = "NAME_OF_IMAGE"-------------------------------------------------------------------------------Scene_SkillIf you want to change the option to use / not use background image, use any timeby calling script command:$USAR_IMG_FUNDO_SKILL = true or falseIf you want to change the background image at any time, use the command call script:$NAME_IMG_SKILL = "NAME_OF_IMAGE"------------------------------------------------------------------------------Scene_EquipIf you want to change the option to use / not use background image, use any timeby calling script command:$USAR_IMG_FUNDO_EQUIP = true or falseIf you want to change the background image at any time, use the command call script:$NAME_IMG_EQUIP = "NAME_OF_IMAGE"-------------------------------------------------------------------------------Scene_StatusIf you want to change the option to use / not use background image, use any timeby calling script command:$USAR_IMG_FUNDO_STATUS = true or falseIf you want to change the background image at any time, use the command call script:$NAME_IMG_STATUS = "NAME_OF_IMAGE"-------------------------------------------------------------------------------Scene_FileIf you want to change the option to use / not use background image, use any timeby calling script command:$USAR_IMG_FUNDO_FILE = true or falseIf 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_Skill =begin [ ===================================================================== ] [ ==================================================================== ] [ ============= ]| SCRIPT CRIADO POR: |[ ============= ] [ ============= ]| |[ ============= ] [ ============= ]| >>> Rafidelis <<< |[ ============= ] [ ============= ]| ------------------------------ |[ ============= ] [ ============= ]| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |[ ============= ] [ ============= ]| >>> New Scene Visual Skill <<< |[ ============= ] [ ============= ]| Rafa_fidelis@hotmail.com |[ ============= ] [ ==================================================================== ] [ ============ ] 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 S K I L L INSTRUÇÕES: |=============================================================================== | | 1° Mude na linha 62 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_SKILL = true | | | | Para retirar a imagem de fundo a qualquer momento do jogo use o comando | | chamar script e digite: | | $USAR_IMG_FUNDO_SKILL = false | | ==============================================================================| | | | 2° Vá ate a linha 66 e defina o nome da imagem que deseja usar,caso o valor | | da variavel na linha 62 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_SKILL = "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_Skill $USAR_IMG_FUNDO_SKILL = 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_SKILL = "IMAGEM4" # Nome da Imagem a ser usada IMG_SKILL_POS_X = 0 # Opacidade da Imagem (0 ~ 255) IMG_SKILL_POS_Y = 0 # Posição X (horizontal) da imagem IMG_SKILL_OPACITY = 255 # 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_HELP_SKILL = 0 # Opacidade da janela de ajuda,onde são exibidas as descrições das habilidades OPACIDADE_WIN_STATUS_SKILL =0 # Opacidade da janela de status,onde são exibidos o HP,MP,NOME do personagem OPACIDADE_WIN_COMAND_SKILL = 0 # Opacidade da janela de comando,onde são exibidos todas as habilidades(se for usar img deixe em 0) OPACIDADE_WIN_USO_SKILL = 0 # Opacidade da janela que e exibida quando você decide usar uma habilidade #=============================================================================== # F I M D A S C O N F I G U R A Ç Õ E S #------------------------------------------------------------------------------- end end class Scene_Skill < Scene_Base def initialize(actor_index = 0, equip_index = 0) @actor_index = actor_index end def start super create_menu_background if $USAR_IMG_FUNDO_SKILL @back_skill_img = Sprite.new @back_skill_img.bitmap = Cache.picture($NAME_IMG_SKILL) @back_skill_img.x = Rafidelis::Rafidelis_Skill::IMG_SKILL_POS_X @back_skill_img.y = Rafidelis::Rafidelis_Skill::IMG_SKILL_POS_Y @back_skill_img.opacity = Rafidelis::Rafidelis_Skill::IMG_SKILL_OPACITY end @actor = $game_party.members[@actor_index] @viewport = Viewport.new(0, 0, 544, 416) @help_window = Window_Help.new @help_window.opacity = Rafidelis::Rafidelis_Skill::OPACIDADE_WIN_HELP_SKILL @help_window.viewport = @viewport @status_window = Window_SkillStatus.new(0, 56, @actor) @status_window.opacity = Rafidelis::Rafidelis_Skill::OPACIDADE_WIN_STATUS_SKILL @status_window.viewport = @viewport @skill_window = Window_Skill.new(0, 112, 544, 304, @actor) @skill_window.opacity = Rafidelis::Rafidelis_Skill::OPACIDADE_WIN_COMAND_SKILL @skill_window.viewport = @viewport @skill_window.help_window = @help_window @target_window = Window_MenuStatus.new(0, 0) @target_window.opacity = Rafidelis::Rafidelis_Skill::OPACIDADE_WIN_USO_SKILL hide_target_window end def terminate super dispose_menu_background @help_window.dispose @status_window.dispose @skill_window.dispose @target_window.dispose if $USAR_IMG_SKILL then @back_skill_img.dispose end end def return_scene $scene = Scene_Menu.new(1) end def next_actor @actor_index += 1 @actor_index %= $game_party.members.size $scene = Scene_Skill.new(@actor_index) end def prev_actor @actor_index += $game_party.members.size - 1 @actor_index %= $game_party.members.size $scene = Scene_Skill.new(@actor_index) end def update super update_menu_background @help_window.update @status_window.update @skill_window.update @target_window.update if $USAR_IMG_SKILL then @back_skill_img.update end if @skill_window.active update_skill_selection elsif @target_window.active update_target_selection end end def update_skill_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) @skill = @skill_window.skill if @skill != nil @actor.last_skill_id = @skill.id end if @actor.skill_can_use?(@skill) Sound.play_decision determine_skill else Sound.play_buzzer end end end def determine_skill if @skill.for_friend? show_target_window(@skill_window.index % 2 == 0) if @skill.for_all? @target_window.index = 99 elsif @skill.for_user? @target_window.index = @actor_index + 100 else if $game_party.last_target_index < @target_window.item_max @target_window.index = $game_party.last_target_index else @target_window.index = 0 end end else use_skill_nontarget end end def update_target_selection @help_window.opacity = Rafidelis::Rafidelis_Skill::OPACIDADE_WIN_USO_SKILL if Input.trigger?(Input::B) Sound.play_cancel @help_window.opacity = Rafidelis::Rafidelis_Skill::OPACIDADE_WIN_HELP_SKILL hide_target_window elsif Input.trigger?(Input::C) if not @actor.skill_can_use?(@skill) Sound.play_buzzer else determine_target end end end def determine_target used = false if @skill.for_all? for target in $game_party.members target.skill_effect(@actor, @skill) used = true unless target.skipped end elsif @skill.for_user? target = $game_party.members[@target_window.index - 100] target.skill_effect(@actor, @skill) used = true unless target.skipped else $game_party.last_target_index = @target_window.index target = $game_party.members[@target_window.index] target.skill_effect(@actor, @skill) used = true unless target.skipped end if used use_skill_nontarget else Sound.play_buzzer end end def show_target_window(right) @skill_window.active = false width_remain = 544 - @target_window.width @target_window.x = right ? width_remain : 0 @target_window.visible = true @target_window.active = true if right @viewport.rect.set(0, 0, width_remain, 416) @viewport.ox = 0 else @viewport.rect.set(@target_window.width, 0, width_remain, 416) @viewport.ox = @target_window.width end end def hide_target_window @skill_window.active = true @target_window.visible = false @target_window.active = false @viewport.rect.set(0, 0, 544, 416) @viewport.ox = 0 end def use_skill_nontarget Sound.play_use_skill @actor.mp -= @actor.calc_mp_cost(@skill) @status_window.refresh @skill_window.refresh @target_window.refresh if $game_party.all_dead? $scene = Scene_Gameover.new elsif @skill.common_event_id > 0 $game_temp.common_event_id = @skill.common_event_id $scene = Scene_Map.new end 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.help_window = @help_window @item_windows.visible = (@equip_index == i) @item_windows.y = 0 @item_windows.height = 208 @item_windows.active = false @item_windows.index = -1 @item_windows.opacity = Rafidelis::Rafidelis_Equip::OPACIDADE_FUNDO_EQUIP @item_windows.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 [i]Scene_Status [i]=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 [i]Scene_File [i]=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 [i]Scene_End [i]=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 demoTo better understand scriptOR Rafidelis_Scenes.zip Video: VIdeo: Credits: Original Topic(In portuguese):http://www.reinorpg.com/index.php?topic=4563.0Rafidelis|ReinoRpg.com Share this post Link to post Share on other sites