Red Aprendiz
Número de Mensagens : 19 Reputação : Alerta :
| Assunto: Custom Battle Icon Ter Fev 10, 2009 12:38 am | |
| • Descrição: Insere icones no menu de batalha • Tamanho: 735 KB • Atualizado: 09/02/09 • Requerimento/Sistema: RPG Maker XP • Desenvolvedor: Juan • Exemplo: 1script (cole antes do main) - Código:
-
#=========================================================================== # ** Battle Icons #------------------------------------------------------------------------------ # Juan # Version 2.0 # Date 8/21/08 # Date Last Updated 8/22/08 # Custom Battle Icon #=========================================================================== # # #Compatibility: # This script is 100% compatibly with tons and sdk 2.3 with editing. # # #Features: # # -> This script lets you use battle icons # -> Easy edit # #Version History # #Version 1.0 #-> This script was first made # Version 2.0 # -> Improved Coding # -> This scipt is now compatable with tons of addons by Blizzard # # # Instructions # Change this line in scene battle 1 line 30 # @actor_command_window = Window_Command.new(160, [s1, s2, s3, s4]) # to @actor_command_window = Window_Battle_Command.new(160, [s1, s2, s3, s4]) # Then make icons called menu0 untill menu3 in the icons folder. # Thats it your done. # # #FAQ (Frequently Asked Questions): #None so far # # #Credits # Juan # # #Author's Notes #Any bugs #Report them here: #http://forum.chaos-project.com/index.php?topic=11.0 #or #Email me #juanpena1111@yahoo.com #Thats it #enjoy
#=========================================================================== # Window_CMS_Command #===========================================================================
class Window_Battle_Command < Window_Command
def draw_item(index, color) self.contents.font.color = color rect = Rect.new(4, 32 * index, self.contents.width - 8, 32) self.contents.fill_rect(rect, Color.new(0, 0, 0, 0)) self.contents.blt(4, 4 + index*32, RPG::Cache.icon("battle_menu#{index}"), Rect.new(0, 0, 24, 24)) self.contents.draw_text(32, index*32, 148, 32, @commands[index]) end end
em Scene_Battle 1 troque - Código:
-
@actor_command_window = Window_Command.new(160, [s1, s2, s3, s4])
por - Código:
-
@actor_command_window = Window_Battle_Command.new(160, [s1, s2, s3, s4])
e coloque quatro icones na pasta icons com os nomes battle_menu0 até battle_menu3 | |
|