Jump to content
New account registrations are disabed. This website is now an archive. Read more here.

Rafidelis

Member
  • Content Count

    19
  • Joined

  • Last visited

Everything posted by Rafidelis

  1. Introduction Custom Picture Menu from the game Fire Emblem Screenshots The Script Rafidelis FE Title.txt Instructions Paste above the Main, then insert 3 images in Pictures folder with the names you set in the script to the options "NewGame," "continue," "Exit" and a transition with the name you set in the script. Required Images places these in the "pictures" directory. Or create your own with the same filename. Credits & Thanks Mog Hunter, He made the version for XP RpgMaker I just convert to RMVX.
  2. First, copy this code: class Rectangle < Window_Base def initialize(height = 544, width = 416, color = Color.new(255,255,255)) super(0,0,544,416) self.opacity = 0 self.contents_opacity = 125 self.contents.fill_rect(0,0,height, width, color) end end then paste it into the editor of scripts in a new slot above the main then create an event on the map, and use the event call script and type: Rectangle.new I hope I have helped ^ ^
  3. I do not understand very well your question, but Seems to which you do not understand how to call the script? And polradio, thanks for the commentary ^ ^
  4. Uauuu! Very good! This script is really incredible, now I understand the purpose of it ^ ^ Great script, congratulations!! flw
  5. Purple ( Variations of color) # Purple = Color.new(189,0,189) # Dark Purple = Color.new(100,0,100) # Purple course = Color.new(170,0,170) Other Colors # Beige = Color.new(255,141,141) # Dark Beige = Color.new(220,106,106) #Yellow = Color.new(255,255,0) #Orange = Color.new(255,108,0) # Pink = Color.new(255,0,255) # Color of "Wine" =Color.new(128,0,64) # Gray = Color.new(128,128,128) # Brown = Color.new(136,82,23) ______________________________________________________________________ ______________________________________________________________________ Any questions or comments, post here, but if wish to provided me: email : Rafa_Fidelis@hotmail.com I had to divide this topic in 3 posts since the forum does not accept many images in a single message ______________________________________________________________________ ______________________________________________________________________ NOTE: Some parts, the "English" may be bad, because I'm Brazilian, I have difficulty with the English Tutorial By : Rafidelis
  6. Table Of Colors # White = Color.new = (255,255,255) # Black Color.new = (0,0,0) Red (Variations of color) # Red Course = Color.new(255,0,0) # Dark red = Color.new(138,0,0) # Red Course² = Color.new(222,34,34) # Dark red = Color.new(181,68,68) # Red "Brown" = Color.new(109,30,30) # Vibrant Red = Color.new(190,0,0) Blue (Variations of color) # Blue Course = Color.new(0,0,255) # Dark Blue = Color.new(0,0,100) # Blue Course² = Color.new(95,95,247) # Dark Blue² = Color.new(26,26,152) Green ( Variations of color) # Green = Color.new(0,255,0) # Dark Green = Color.new(0,83,0) # Green "bluish" = Color.new(0,128,192) # Green Lima = Color.new(168,255,0)
  7. Today I will teach you how to "discover" the colors to use in your scripts without having to get to know what is killing the RGB code of a given color. For this lesson we'll use the MS Paint, or the self RpgMaker To "discover" the RGB values. Well, first of all, which is RGB? RGB and an acronym for RED, GREEN, BLUE And through these values and to achieve our colors. Well before most of all, you must be wondering, because you need of colors in your scripts. Good For example: • Change the color of text • To fill a rectangle • Etc.. So let us by the hand in the mass, open MS Paint (Start Menu> All Programs> Accessories> Paint Or typing in the run (Start Menu> Run): b]"Mspaint"[/b] (without quotation marks ( "")) After open, double-click on any color in the palette of colors, a menu like the image below should appear: Click in Defining Personalized Colors, and must appear a sub-menu as of the next image: It repairs where you are contouring of red to the side you find the word “red”, that is Red, that is, this responsible box and for value R In low we find the Green value, that is value G, and soon in low of this To the Blue field, that and responsible for the blue value, or better Blue, then and value B That is, these 3 fields are respectively values RGB. Very, choice 3 colors with that desires to work, and it copies its values RGB Well (I go to use Red, Blue Green and). We go to start for the red, selects the red color in paleta of colors, you goes to perceive that values RGB are the following ones: Red = 255 Green = 0 Blue = 0 Very well, we go to test if the codes really function in scripts. Script above of the Main creates one it nominates and it as Test Colors, in the field of creation of script writes: class Colors < Window_Base def initialize super(0,0,144,120) refresh # Call de metod refresh end end def refresh self.contents.clear self.contents.font.color = Color.new(255,0,0) # red self.contents.draw_text(0,0,344,32,"Red") self.contents.font.color = Color.new(0,255,0) # green self.contents.draw_text(0,32,344,32,"Green") self.contents.font.color = Color.new(0,0,255) # blue self.contents.draw_text(0,64,344,32,"Blue") end It creates an event and in command to call Script types: Colors.new It has tested the game and it goes until the event must appear a window as this Okay, you've seen a situation we can use the colors. Now create another script and type the following lines: class Rectangle < Window_Base def initialize(height = 544, width = 416, color = Color.new(255,255,255)) super(0,0,544,416) self.opacity = 0 self.contents_opacity = 125 self.contents.fill_rect(0,0,height, width, color) end end Well come on, first create a class with name of rectangles, and the second line In def initialize I gave 3 arguments, that is, each time you call the script should be indicate these arguments, but in our case if you notice in front of each argument already has a value, for example, the argument height is equal to 544, that is if you do not set the value of the argument when it is already 544, for the same height and color. In the super I create a window with screen sizes of RMVX line at the bottom and I left the opacity of the window at 0, ie the window not been visible, but its content is. In self.contents.opacity, to say the opacity of the contents of the window, and I left at 125. In line 6 I used a method which draws fill_rect it is used to design a rectangle filled with a color wherever you want, the syntax of this command and the following: fill_rect (pos_x, pos_y, width, height, color), or position of the rectangle x, y position of the rectangle, width the rectangle, height and color of the rectangle that will complete the rectangle. But before him I used the command self.contents to indicate that the method will be applied to contents of the window If you notice our 3's argument initialize were used here (height, width, color) Look, if the syntax is (pos_x, pos_y, width, height, color), and our well this: (0.0, height, width, color), or xey are in the position 0, and the width and height are as defined when calling the script, or if you call when the script does not specify or a value will be 544 the width and height 416, and color is equal to White (Color.new (255,255,255) by default as defined in initialize understand? To better understand you, def initialize if there were def initialize (rafidelis, pindamonhagaba, cachorro_quente) And in line 6 were: self.contents.fill_rect (0,0 rafidelis, pindamonhagaba, hot_dog) rafidelis would be responsible for the width, height pindamonhagaba would be responsible for hot_dog and would be responsible for color. But why? If the names do not have to anything to do? The name does not matter, what matters and where you position the arguments, or is in the example above rafidelis was placed where it set the width of the rectangle understand? ^ ^ Well, let us try our script, create an event on the map and draw in command script type: Rectangle.new Now test the game and click on the event, should see a window like this: But because the size of the window is already set and color too? In method initialize because they already have a value, because if not declared they already have a default value. If you do not understand, go back to line 2 and see that each of the 3 arguments already have a set value (eg width = 416) find good that you should be beginning to understand, because if not will hinder its development in that class, I suggest that if you do not understand this read again until please ^ ^ Well back to the event calls the script and replace it with this code: Rectangle.new(100) Turn the game and see that the width of the rectangle decreases because you changed the argument width. Come back again to the event that draws the script and replace it with this code: Rectangle.new(544.416, COR) But no test yet, where this writing COLOR, you must place an RGB code, for facilitate their work below is a list of some of the most important and colors used and so you copy the code (Color.new (R, G, B)) Where R, G,B are the values so you really think I better leave an example for you to understand: Rectangle.new(544.416, Color.new (0,0,255)) Now turn the game and see that the color was blue rectangle. And so one more thing, how about doing a gradient with 2 colors in a rectangle? First comment out the line 6 (for a comment line you must enter a # In front of words (Ex: # I am commenting on this line) And this type below: self.contents.gradient_fill_rect (0,0, height, width,Color.new(0,255,0),Color.new(255,255,0)) # The two colors are green and blue respectively, turn the game and go to the event which draws the script, should see a screen like this:
  8. Very nice, I played the demo and loved! But not quite understand what this script does, he is a kind of game save? Or it allows export graphics from other games? Sorry, the more I really do not understand ... how much more we must have been hard to create this script, so Congratulations!
  9. Ah yes, I would like to see your project if you have already demo, please send me the link of it and the topic of your game ^ ^
  10. Transitions in the Menu and Map By: Rafidelis About the script: This script creates transitions in each Scene of the game, and he fully customized, you can define scene in which they act transition, which will be used to image, which will be its duration and opacity. Put that image in the Transitions (Create this folder) with the name of Transition1: Instructions: Paste above the main, if you are using a script that changes some scene, paste below it. Script =begin |=============================================================================== | | TRANSITIONS IN MENU | | Por: Rafidelis | | | www.ReinoRpg.com| | | | Rafa_fidelis@hotmail.com| | |=============================================================================== | | SOBRE O SCRIPT: | |=============================================================================== | | ESTE SCRIPT CRIA TRANSIÇÕES NAS SCENES DO MENU,DEIXANDO O JOGO | | COM UM TOQUE BEM MAIS BONITO E "PROFISSA". | | E ELE TAMBEM CRIA UM TRANSIÇÃO QUANDO VOCÊ INICIA O JOGO | | DEIXANDO BEM LEGAL,ABAIXO VOCÊ PODE ESCOLHER EM QUAIS JANELAS | | DO MENU DESEJA TER TRANSIÇÕES,E ESCOLHER A OPACIDADE,E A DURAÇÃO | | DE CADA TRANSIÇÃO. | | E TAMBEM DEVE DEFINIR QUAL SERA O NOME DA TRANSIÇÃO QUE VOCÊ IRA | | USAR EM CADA JANELA,PARA SEU JOGO NÃO FICAR COM TAMANHO MUITO | | GRANDE RECOMENDO USAR A MESMA TRANSIÇÃO EM TODAS AS JANELAS,MAS AI | | É VOCÊ QUE DECIDE^^ | |=============================================================================== | =end module Rafidelis module Rafidelis_Transitions # Pasta onde deve estar as transições(Você deve digitar da seguinte maneira:("Graphics/NOMEPASTAS/" PASTA_TRANSITIONS = "Graphics/Transitions/" #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # OPÇÕES DO MENU #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # true para exibir transição no menu,false para não exibir TRANSITION_MENU = true # Nome da transição do menu NAME_TRANSITION_MENU = 'Transition1' # Quanto maior o numero maior a opacidade,quanto menor,a opacidade sera menor OPACITY_TRANSITION_MENU = 0 # Duração da transição,quanto maior o numero mais a transição demorara DURAÇÂO_TRANSITION_MENU = 50 #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # OPÇÕES SCENE_ITEM #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # true para exibir transição na tela de item,false para não exibir TRANSITION_ITEM = true # Nome da transição da janela de itens NAME_TRANSITION_ITEM = 'Transition1' # Quanto maior o numero maior a opacidade,quanto menor,a opacidade sera menor OPACITY_TRANSITION_ITEM = 0 # Duração da transição,quanto maior o numero mais a transição demorara DURAÇÂO_TRANSITION_ITEM = 50 #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # OPÇÕES SCENE_SKILL #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # true para exibir transição na tela de habilidades,false para não exibir TRANSITION_SKILL = true # Nome da transição da janela de habilidades NAME_TRANSITION_SKILL = 'Transition1' # Quanto maior o numero maior a opacidade,quanto menor,a opacidade sera menor OPACITY_TRANSITION_SKILL = 0 # Duração da transição,quanto maior o numero mais a transição demorara DURAÇÂO_TRANSITION_SKILL = 50 #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # OPÇÕES SCENE_EQUIP #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # true para exibir transição na tela de equipamentos,false para não exibir TRANSITION_EQUIP = true # Nome da transição da janela de equipamentos NAME_TRANSITION_EQUIP = 'Transition1' # Quanto maior o numero maior a opacidade,quanto menor,a opacidade sera menor OPACITY_TRANSITION_EQUIP = 0 # Duração da transição,quanto maior o numero mais a transição demorara DURAÇÂO_TRANSITION_EQUIP = 50 #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # OPÇÕES SCENE_STATUS #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # true para exibir transição na tela de status,false para não exibir TRANSITION_STATUS = true # Nome da transição da janela de status NAME_TRANSITION_STATUS = 'Transition1' # Quanto maior o numero maior a opacidade,quanto menor,a opacidade sera menor OPACITY_TRANSITION_STATUS = 0 # Duração da transição,quanto maior o numero mais a transição demorara DURAÇÂO_TRANSITION_STATUS = 50 #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # OPÇÕES SCENE_FILE #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # true para exibir transição na tela de save\load,false para não exibir TRANSITION_FILE = true # Nome da transição da janela de save\load NAME_TRANSITION_FILE = 'Transition1' # Quanto maior o numero maior a opacidade,quanto menor,a opacidade sera menor OPACITY_TRANSITION_FILE = 0 # Duração da transição,quanto maior o numero mais a transição demorara DURAÇÂO_TRANSITION_FILE = 50 #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # OPÇÕES SCENE_END #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # true para exibir transição na tela de end,false para não exibir TRANSITION_END= true # Nome da transição da janela de fim(opção sair no menu) NAME_TRANSITION_END = 'Transition1' # Quanto maior o numero maior a opacidade,quanto menor,a opacidade sera menor OPACITY_TRANSITION_END = 0 # Duração da transição,quanto maior o numero mais a transição demorara DURAÇÂO_TRANSITION_END = 50 #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # OPÇÕES SCENE_MAP #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # true para exibir transição na tela do mapa,false para não exibir TRANSITION_MAP= true # Nome da transição da janela de mapa(quando você sair do menu,ou quando iniciar o jogo ela sera mostrada) NAME_TRANSITION_MAP = 'Transition1' # Quanto maior o numero maior a opacidade,quanto menor,a opacidade sera menor OPACITY_TRANSITION_MAP = 0 # Duração da transição,quanto maior o numero mais a transição demorara DURAÇÂO_TRANSITION_MAP = 50 #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # OPÇÕES SCENE_TITLE #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # true para exibir transição na tela de Titulo,false para não exibir TRANSITION_TITLE= true # Nome da transição da janela de tituça(quando você selecionar a opção Tela de Titulo na opção sair do menu,ou quando iniciar o jogo ela sera mostrada) NAME_TRANSITION_TITLE = 'Transition1' # Quanto maior o numero maior a opacidade,quanto menor,a opacidade sera menor OPACITY_TRANSITION_TITLE = 250 # Duração da transição,quanto maior o numero mais a transição demorara DURAÇÂO_TRANSITION_TITLE = 50 end end #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # FIM DAS OPÇÕES #""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" class Scene_Menu < Scene_Base include Rafidelis::Rafidelis_Transitions alias rafis_start_menu start def start rafis_start_menu if TRANSITION_MENU pasta_trans_menu = PASTA_TRANSITIONS + "#{NAME_TRANSITION_MENU}" Graphics.transition(DURAÇÂO_TRANSITION_MENU,pasta_trans_menu,OPACITY_TRANSITION_MENU) end end end class Scene_Item < Scene_Base include Rafidelis::Rafidelis_Transitions alias rafis_start_item start def start rafis_start_item if TRANSITION_ITEM pasta_trans_item = PASTA_TRANSITIONS + "#{NAME_TRANSITION_ITEM}" Graphics.freeze Graphics.transition(DURAÇÂO_TRANSITION_ITEM,pasta_trans_item,OPACITY_TRANSITION_ITEM) end end end class Scene_Skill < Scene_Base include Rafidelis::Rafidelis_Transitions alias rafis_start_skill start def start rafis_start_skill if TRANSITION_SKILL pasta_trans_skill = PASTA_TRANSITIONS + "#{NAME_TRANSITION_SKILL}" Graphics.freeze Graphics.transition(DURAÇÂO_TRANSITION_SKILL,pasta_trans_skill,OPACITY_TRANSITION_SKILL) end end end class Scene_Equip < Scene_Base include Rafidelis::Rafidelis_Transitions alias rafis_start_equip start def start rafis_start_equip if TRANSITION_EQUIP pasta_trans_equip = PASTA_TRANSITIONS + "#{NAME_TRANSITION_EQUIP}" Graphics.freeze Graphics.transition(DURAÇÂO_TRANSITION_EQUIP, pasta_trans_equip,OPACITY_TRANSITION_EQUIP) end end end class Scene_Status < Scene_Base include Rafidelis::Rafidelis_Transitions alias rafis_start_status start def start rafis_start_status if TRANSITION_STATUS pasta_trans_status = PASTA_TRANSITIONS + "#{NAME_TRANSITION_STATUS}" Graphics.freeze Graphics.transition(DURAÇÂO_TRANSITION_STATUS,pasta_trans_status,OPACITY_TRANSITION_STATUS) end end end class Scene_File < Scene_Base include Rafidelis::Rafidelis_Transitions alias rafis_start_file start def start rafis_start_file if TRANSITION_FILE pasta_trans_file = PASTA_TRANSITIONS + "#{NAME_TRANSITION_FILE}" Graphics.freeze Graphics.transition(DURAÇÂO_TRANSITION_FILE,pasta_trans_file,OPACITY_TRANSITION_FILE) end end end class Scene_End < Scene_Base include Rafidelis::Rafidelis_Transitions alias rafis_start_end start def start rafis_start_end if TRANSITION_END pasta_trans_end = PASTA_TRANSITIONS + "#{NAME_TRANSITION_END}" Graphics.freeze Graphics.transition(DURAÇÂO_TRANSITION_END,pasta_trans_end,OPACITY_TRANSITION_END) end end end class Scene_Map < Scene_Base include Rafidelis::Rafidelis_Transitions alias rafis_start_map start def start rafis_start_map if TRANSITION_MAP pasta_trans_map = PASTA_TRANSITIONS + "#{NAME_TRANSITION_MAP}" Graphics.freeze Graphics.transition(DURAÇÂO_TRANSITION_MAP,pasta_trans_map,OPACITY_TRANSITION_MAP) end end end class Scene_Title < Scene_Base include Rafidelis::Rafidelis_Transitions alias rafis_start_title start def start rafis_start_title if TRANSITION_TITLE pasta_trans_title = PASTA_TRANSITIONS + "#{NAME_TRANSITION_TITLE}" Graphics.freeze Graphics.transition(DURAÇÂO_TRANSITION_TITLE,pasta_trans_title,OPACITY_TRANSITION_TITLE) end end end #=============================================================================== | # FIM DO SCRIPT | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | # Visite www.ReinoRpg.com para encontrar mais scripts,de PMVX e RMXP | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Credits Rafidelis|ReinoRpg.com Original Link: http://www.reinorpg.com/index.php?topic=4562.0
  11. well, this is not easy when you want to display the equipment you must use the command call script: Rafidelis_Equipamentos::MOSTRAR_ARMA = false Rafidelis_Equipamentos::MOSTRAR_ESCUDO = false Rafidelis_Equipamentos::MOSTRAR_ELMO = false Rafidelis_Equipamentos::MOSTRAR_ARMADURA = false Rafidelis_Equipamentos::MOSTRAR_ACESSORIO = false Rafidelis_Equipamentos::USAR_IMG = false I should have created an easier way to do this, but as this is one of my first script forgot to do that. When you want to view, change where this false by true.
  12. Oww..vlw man!! I'm Brazilian,and I am adoring much of this forum,i hope I can well with all. And not surprising that I write,because as I am not of Brazil,and nothing easy translate xD
  13. Aah..I also enjoyed more of the second type^^ Ok,try use in other game,more gives some mistake of incompatibility with the ring menu script? Thank you!
  14. Shortcuts To Scenes By: Rafidelis About the script: This script allows you to access the menu items, without having to enter the menu, it ocerre through shortcuts. Features: • You can define the keys for shortcuts • You can set it to enter into a Scene through the shortcut, by pressing ESC will return to the menu or the map. • SCENE THAT YOU CAN Access through SHORTCUTS: • Save Screen • Screen Load Game • Display items • Display Skills • Screen Equipment • Display Status Instructions: First paste the script above the Main, then edit the lines 26 to 31quais the keys that will access each Scene, or leave as is defined in the script. And let in on line 40 true or false to return to the menu, that is, when you access a scene where she may return to the menu or not, if you leave it to false, it will also modify the menu, that is, when you enter in a scene by Menu (items, skills ...) when you prescionar ESC will immediately return to the map, not the menu. To access the Scene and just hit the shortcut key on map. Script: #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #=============================================================================== # S C E N E S H O RT C U T S #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # By : RAFIDELIS # Email: Rafa_fidelis@hotmail.com Rafa_fidelis@yahoo.com.br #------------------------------------------------------------------------------- # THANKS: First to Marcelo Cavaco, the handouts # Destrinchando the RGSS Scripts and the Knowing RGSS They are me # Helping a lot in my journey to the Dark scriptere also Chocobar, LB, # RTH and PHCDO, msm Thanks people! # The whole gang Maker of Brazil (of course without you I would not have reason to # Trying to do scripts) # And the forums of RpgMaker of Brazil, emphasis on www.ReinoRpg.com. #=============================================================================== #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= module Rafis #=============================================================================== | # C O N F I G U R A T I O N S S T A R T #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Set lower WHAT # key will be call LIABLE FOR EACH SCENE #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| # See END of script keys you can use #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| TECLA_ATALHO_ITEM = Input::F5 # F5 in Keyboard TECLA_ATALHO_HABILIDADES = Input::F6 # F6 in Keyboard TECLA_ATALHO_EQUIPAMENTOS = Input::F7 # in Keyboard TECLA_ATALHO_STATUS = Input::F8 # F8 in Keyboard TECLA_ATALHO_SAVE = Input::L # Q in Keyboard TECLA_ATALHO_LOAD = Input::R # W in Keyboard end #=============================================================================== | # MENU RETURN? # = True When you access a shortcut, press ESC to return to the menu, # This change will also be activated when you enter the menu of the game. # = False When you access a shortcut, press ESC to return to Map #================================================= ==============================| RETORNAR_AO_MENU = false #=============================================================================== # START OF SCRIPT #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ class Scene_Map alias rafidelis_atalhos_update update def update rafidelis_atalhos_update rafis_atalho_item if Input.trigger?(Rafis::TECLA_ATALHO_ITEM) rafis_atalho_habilidades if Input.trigger?(Rafis::TECLA_ATALHO_HABILIDADES) rafis_atalho_equipamentos if Input.trigger?(Rafis::TECLA_ATALHO_EQUIPAMENTOS) rafis_atalho_status if Input.trigger?(Rafis::TECLA_ATALHO_STATUS) rafis_atalho_save if Input.trigger?(Rafis::TECLA_ATALHO_SAVE) rafis_atalho_load if Input.trigger?(Rafis::TECLA_ATALHO_LOAD) end end #=============================================================================== #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ def rafis_atalho_item Sound.play_decision $scene = Scene_Item.new if Input.trigger?(Input::B) retornar end end #=============================================================================== #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ class Scene_Item alias retornar return_scene def return_scene retornar if RETORNAR_AO_MENU == true $scene = Scene_Menu.new(0) else $scene = Scene_Map.new end end end #=============================================================================== #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ def rafis_atalho_habilidades Sound.play_decision $scene = Scene_Skill.new if Input.trigger?(Input::B) retornar_1 end end #=============================================================================== #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ class Scene_Skill alias retornar_1 return_scene def return_scene retornar_1 if RETORNAR_AO_MENU == true $scene = Scene_Menu.new(1) else $scene = Scene_Map.new end end end #=============================================================================== #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ def rafis_atalho_equipamentos Sound.play_decision $scene = Scene_Equip.new if Input.trigger?(Input::B) retornar_2 end end #=============================================================================== #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ class Scene_Equip alias retornar_2 return_scene def return_scene retornar_2 if RETORNAR_AO_MENU == true $scene = Scene_Menu.new(2) else $scene = Scene_Map.new end end end #=============================================================================== #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ def rafis_atalho_status Sound.play_decision $scene = Scene_Status.new if Input.trigger?(Input::B) retornar_3 end end #=============================================================================== #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ class Scene_Status alias retornar_3 return_scene def return_scene retornar_3 if RETORNAR_AO_MENU == true $scene = Scene_Menu.new(3) else $scene = Scene_Map.new end end end #=============================================================================== #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ def rafis_atalho_save Sound.play_decision $scene = Scene_File.new(true,false,false) if Input.trigger?(Input::B) retornar_4 end end #=============================================================================== #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ def rafis_atalho_load Sound.play_decision $scene = Scene_File.new(false,false,false) if Input.trigger?(Input::B) retornar_4 end end class Scene_File alias retornar_4 return_scene def return_scene retornar_4 if RETORNAR_AO_MENU == true $scene = Scene_Menu.new(4) else $scene = Scene_Map.new end end end #=============================================================================== # F I M D O S C R I P T #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =begin #=============================================================================== # LIST OF KEYS #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ First I would like to thank the RTH and PHCDO it got this list in a lessons from them ^ ^ # Keys: # Key DOWN Input:: DOWN # => Down arrow on the keyboard # Key UP Input: UP # => Up arrow on the keyboard # Key RIGHT Input:: RIGHT # => arrow to the right of the keyboard # Key LEFT Input:: # = LEFT> arrow to the left of the keyboard The key # Input:: A # => Z key on the keyboard # Key B Input:: B # => X key on the keyboard C # key Input:: C # => C key on the keyboard # Key X Input: X # => The key of the keyboard # Key Y Input: Y # => S key on the keyboard # Key Z Input:: # Z => D key on the keyboard # Key L Input: L = #> Q button on the keyboard # Key R Input: R # => W key on the keyboard # Key SHIFT Input:: SHIFT # => Shift key on the keyboard # CTRL key Input: CTRL # => Ctrl key on the keyboard # Key ALT Input: ALT # => Alt key on the keyboard # F5 key Input:: # F5 => F5 key on the keyboard # Key F6 Input: F6 # => F6 key on the keyboard # F7 key Input:: # F7 => F7 key on the keyboard # F8 key Input:: # F8 => F8 key on the keyboard # Key F9 Input:: # F9 => F9 key on the keyboard end =
  15. Equipment on Screen By : Rafidelis By: Rafidelis [/b] About the script: This script shows their equipment on the screen, you can choose between using and not using an image of substance. The 3 types available for use, you must TYPE in the mo0dificar variable, you must use from 1 to 3 (see the pictures and to learn how each type) Features: You can show the 5 equipment (gun, shield, helmet, armor and accessories) to show some and not so follow the instructions in the Script You may or may not use images if you want you can use one of the 3 images below, or create your custom. And remembering that already own script turns the image if you choose the type 2 ^ ^ ScreenShots TYPE 1 TYPE 2 TYPE 3 module Rafidelis_Equipamentos #==============================================================================| # S T A R T O F C O N F I G U R A T I O N S | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| # Leave at True to show the icon Equipment | False not to Show | MOSTRAR_ARMA = true # Leave at True to show the icon of the Shield | False not to Show | MOSTRAR_ESCUDO = true # Leave at True to show the icon of the helmet | False not to Show | MOSTRAR_ELMO = true # Leave at True to show the icon of Armor | False not to Show | MOSTRAR_ARMADURA = true # Usar Imagem de fundo? # Leave at True to show the icon of Acessories| False not to Show | MOSTRAR_ACESSORIO = true # Opacity of Windows that will show the icons of Equipment OPACIDADE = 0 # Use background image? USAR_IMG = true # If above is true, what is the name of the image being used? IMG_NOME = "Equip2" #==============================================================================| # D I S P L A Y T Y P E | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| # 1 to display the icons horizontally on top of the SCREEN | #------------------------------------------------- -----------------------------| # 2 To view the icons at the left corner of VERTICAL SCREEN | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| # 3 To view the icons horizontally in the bottom of the SCREEN | #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| # IF YOU ARE NOT USING A number 1 or 2 or 3 The script will generate an error #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| TIPO = 2 end #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| class Rafidelis_Equip_Window < Window_Base def initialize(x,y,n) @n = n @x = x @y = y super(x,y,56,56) refresh end end #==============================================================================| # R E F R E S H #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| def refresh self.contents.clear @actor = $game_party.members[0] draw_item_name(@actor.equips[@n], 0, 0) end #==============================================================================| # S T A R T O F C L A S S S C E N E M A P | #------------------------------------------------------------------------------| class Scene_Map include Rafidelis_Equipamentos alias rafidelis_start start alias rafidelis_terminate terminate alias rafidelis_update update def start #------------------------------------------------------------------------------- @Window_Equip = nil if TIPO == 1 @Window_Equip = Rafidelis_Equip_Window.new(0,0,0) elsif TIPO == 2 @Window_Equip = Rafidelis_Equip_Window.new(0,0,0) elsif TIPO == 3 @Window_Equip = Rafidelis_Equip_Window.new(0,360,0) end if MOSTRAR_ARMA == true @Window_Equip.visible = true else @Window_Equip.visible = false end @Window_Equip.opacity = OPACIDADE #------------------------------------------------------------------------------- @Window_Equip2 = nil if TIPO == 1 @Window_Equip2 = Rafidelis_Equip_Window.new(56,0,1) elsif TIPO == 2 @Window_Equip2 = Rafidelis_Equip_Window.new(0,56,1) elsif TIPO == 3 @Window_Equip2 = Rafidelis_Equip_Window.new(56,360,1) end if MOSTRAR_ESCUDO == true @Window_Equip2.visible = true else @Window_Equip2.visible = false end @Window_Equip2.opacity = OPACIDADE #------------------------------------------------------------------------------- @Window_Equip3 = nil if TIPO == 1 @Window_Equip3 = Rafidelis_Equip_Window.new(56*2,0,2) elsif TIPO == 2 @Window_Equip3 = Rafidelis_Equip_Window.new(0,56*2,2) elsif TIPO == 3 @Window_Equip3 = Rafidelis_Equip_Window.new(56*2,360,2) end if MOSTRAR_ELMO == true @Window_Equip3.visible = true else @Window_Equip3.visible = false end @Window_Equip3.opacity = OPACIDADE #------------------------------------------------------------------------------- @Window_Equip4 = nil if TIPO == 1 @Window_Equip4 = Rafidelis_Equip_Window.new(56*3,0,3) elsif TIPO == 2 @Window_Equip4 = Rafidelis_Equip_Window.new(0,56*3,3) elsif TIPO == 3 @Window_Equip4 = Rafidelis_Equip_Window.new(56*3,360,3) end if MOSTRAR_ARMADURA == true @Window_Equip4.visible = true else @Window_Equip4.visible = false end @Window_Equip4.opacity = OPACIDADE #------------------------------------------------------------------------------- @Window_Equip5 = nil if TIPO == 1 @Window_Equip5 = Rafidelis_Equip_Window.new(56*4,0,4) elsif TIPO == 2 @Window_Equip5 = Rafidelis_Equip_Window.new(0,56*4,4) elsif TIPO == 3 @Window_Equip5 = Rafidelis_Equip_Window.new(56*4,360,4) end if MOSTRAR_ACESSORIO == true @Window_Equip5.visible = true else @Window_Equip5.visible = false end @Window_Equip5.opacity = OPACIDADE if USAR_IMG if TIPO == 1 @bg = Sprite.new @bg.bitmap = Cache.picture(IMG_NOME) @bg.x = 1 @bg.y = 1 end end if TIPO == 2 @bg = Sprite.new @bg.bitmap = Cache.picture(IMG_NOME) @bg.x = 54 @bg.y = 1 @bg.angle = 270.5 end if TIPO == 3 @bg = Sprite.new @bg.bitmap = Cache.picture(IMG_NOME) @bg.x = 3 @bg.y = 360 end #------------------------------------------------------------------------------- rafidelis_start end def terminate @Window_Equip.dispose @Window_Equip2.dispose @Window_Equip3.dispose @Window_Equip4.dispose @Window_Equip5.dispose rafidelis_terminate end def update @Window_Equip.update @Window_Equip2.update @Window_Equip3.update @Window_Equip4.update @Window_Equip5.update rafidelis_update end end #================================================================= # www.ReinoRpg.com #================================================================= Credits: www.ReinoRpg.com Brazilian site where I "create" in rpgMaker ^ ^
  16. SCENES RAFIDELIS 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 : Screenshots Make comparisons to see the difference between the Scenes patterns and modified by me. NEW SCENE VISUAL MENU SCENE MENU DEFAULT DO RMVX NEW SCENE VISUAL ITEM SCENE ITEM DEFAULT DO RMVX NEW SCENE VISUAL SKILL SCENE SKILL DEFAULT DO RMVX NEW SCENE VISUAL EQUIP SCENE EQUIP DEFAULT DO RMVX NEW SCENE VISUAL STATUS SCENE STATUS DEFAULT DO RMVX NEW SCENE VISUAL END SCENE END DEFAULT DO RMVX NEW_SCENE_VISUAL_FILE SCENE FILE DEFAULT DO RMVX 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_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 demo To better understand script OR Rafidelis_Scenes.zip Video: VIdeo: Credits: Original Topic(In portuguese):http://www.reinorpg.com/index.php?topic=4563.0 Rafidelis|ReinoRpg.com
×
×
  • Create New...