Started by G_G, November 28, 2008, 01:34:54 am
Quote from: cheos on June 01, 2012, 02:30:30 pmfirst i wanna apogize for necroposting but i have a question about this amazing cmsIs there a way 2 add the scroll function to the character selection area? I plan on using ten or more party members with a tatical battle system i found.
class Window_MenuStatus < Window_Selectable def initialize s = ($game_party.actors.size * 112) + 32 h = (s > 480 ? 480 : s) super(0, 0, 480, h) @item_max = $game_party.actors.size self.contents = Bitmap.new(width - 32, @item_max * 112) refresh self.active = false self.index = -1 end def top_row return self.oy / 112 end def top_row=(row) if row < 0 row = 0 end if row > row_max - 1 row = row_max - 1 end self.oy = row * 112 end def page_row_max return (self.height - 32) / 112 end def update_cursor_rect super if @index < 0 self.cursor_rect.empty return end cursor_width = self.width / @column_max - 32 x = @index % @column_max * (cursor_width + 32) y = @index / @column_max * 112 - self.oy self.cursor_rect.set(x, y, cursor_width, 112) end end
class Game_Party MAX_PARTY = 10 def add_actor(actor_id) actor = $game_actors[actor_id] if @actors.size < MAX_PARTY && !@actors.include?(actor) @actors.push(actor) $game_player.refresh end end end
$choices_item = "Inventory" # Choice for Items$choices_skill = "Magic" # Choice for Skills$choices_equip = "Equipment" # Choice for Equip$choices_status = "Status" # Choice for Status$choices_save = "Save" # Choice for Save$choices_load = "Load" # Choice for Load$choices_exit = "Exit" # Choice for End Game
Quote from: Some guy on FacebookLife is like a penis. It's short but it feels so long when it gets hard.
Quote from: Steven WinterburnBefore you diagnose yourself with depression or low self-esteem, first make sure that you are not, in fact, just surrounded by assholes.
Quote from: gameus on September 11, 2013, 09:26:31 am.____________________________. Why are you using this?! D: This is one of my first scripts when I[/] was still a noob at scripting lol. Trust me, this isn't a menu you should be using. You can't remove commands in this script and as for your first question, you might as well post a script request topic with a layout and everything you want.