HI everybody!! this is my first attempt of scripting for my game, i want to show so far what i acomplised, and if somebody want to help that will be awesome, im really dont kwon how to script but im trying to build see other work, so im go a little slow but im trying of finish it.
here a pic:
I'm a little stuck, in this part, i made a horizontal command but i cant get how make rows, i need 4 rows for 3 columns, and i dont get how to replace the symbol for icons, right now im trying of adapt the actor menu status to fit in place.
here a pic:
Code:
#module COMP #COLUMN_MAX = 3 #end #------------------------------------------------------------------------------ class Window_MenuList < Window_HorzCommand def initialize #Call superclass method with (x, y) (448,0,96,128) super(448, 0) select_last end def window_width 96 end def window_height 128 end def line_height #Auto calculate the line height for text #Standard padding is a distance between window and it's contents, #default value is 12 64 - standard_padding * 2 end #def col_max # return 3 #end #----------------------------------------------------------------------------- def col_max return 3 end def contents_height item_height end def top_col ox / (item_width + spacing) end def top_col=(col) col = 3 if col < 0 col = col_max - 0 if col > col_max - 1 self.ox = col * (item_width + spacing) end def bottom_col top_col + col_max - 1 end def bottom_col=(col) self.top_col = col - (col_max - 1) end #-------------------------------------------------------------------------- def select_last #Initialize @@last_command_symbol if it's nil @@last_command_symbol ||= nil #Change cursor index to the last position select_symbol(@@last_command_symbol) end #Make Comamnd list def make_command_list add_commands_list end def add_commands_list #add_command(Command Name, Command Symbol, Enabled?(true or false)) add_command(Vocab::item, :item, main_commands_enabled) add_command(Vocab::skill, :skill, main_commands_enabled) add_command(Vocab::equip, :equip, main_commands_enabled) add_command(Vocab::status, :status, main_commands_enabled) #add_command(Vocab::Quest, :quest, main_commands_enabled) #add_command(Vocab::Summond, :Summond, main_commands_enabled) #add_command(Vocab::Mail, :mail, main_commands_enabled) add_command(Vocab::formation, :formation, formation_enabled) add_command(Vocab::game_end, :game_end) end def main_commands_enabled #There's actor in the party? $game_party.exists end def formation_enabled #If actors in the party is 2 or more and formation not disabled $game_party.members.size >= 2 && !$game_system.formation_disabled end def process_ok #Save command position @@last_command_symbol = current_symbol super end end
I'm a little stuck, in this part, i made a horizontal command but i cant get how make rows, i need 4 rows for 3 columns, and i dont get how to replace the symbol for icons, right now im trying of adapt the actor menu status to fit in place.
