Mania Maker
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

New Game +

2 participantes

Ir para baixo

New Game + Empty New Game +

Mensagem por Rock Lee Gui Ter Dez 29, 2009 3:17 am

Introdução

Esse script faz com que após o ultimo chefe de seu jogo for morto,libera um novo "inicio"com o level e items(voce pode alterar isso se quiser)que voce estava no momento,como também se pode fazer extras dele.

Screenshots

New Game + Newgameplus

DEMO

http://www.mediafire.com/download.php?wxthj2kw4yw

Script e instruções

O bote acima do Main,o resto veja na demo.

Código:
#===============================================================
# ● [VX] ◦ New Game Plus+ ◦ □
#--------------------------------------------------------------
# ◦ by Woratana [woratana@hotmail.com]
# ◦ Thaiware RPG Maker Community
# ◦ Released on: 11/01/2009
# ◦ Version: 1.0
#--------------------------------------------------------------
# ◦ How to use:
#--------------------------------------------------------------
# 1) Setup script in Setup Part below..
# 2) The script will enable New Game Plus+ automatically when
# there is/are save file(s) that turned ON switch in NGPLUS_SWITCH
#=================================================================

class Scene_Title
  #=================================================================
  # New Game Plus+ Setup Part
  #-----------------------------------------------------------------
  NGPLUS_SWITCH = 1 # Switch ID for enable New Game Plus+
 
  NGPLUS_TITLE = 'Title0' # Title Screen Image for New Game Plus+ title
  # Image must be located in folder 'Graphics/System/'
  NGPLUS_BGM = 'Theme3' # Background Music for New Game Plus+ title
  # Music must be located in folder 'Audio/BGM/'
  NGPLUS_BGM_VOL = 100 # Background Music Volume
  NGPLUS_BGM_PITCH = 100 # Background Music Pitch
 
  NGPLUS_WINDOW_Y = -24 # Move command window vertically (+:Down, -: Up)
  # Because adding New Game Plus+ command will increase command window's height
 
  NGPLUS_COMMAND = 'Extra Plus+' # Command name for New Game Plus+ command
  NGPLUS_INDEX = 2 # Order index of New Game Plus+ command
  NGPLUS_MAP = [2, 8, 12] # [Map ID, X, Y] to go for New Game Plus+ command
  NGPLUS_MEMBER = [4] # Actor ID for New Game Plus+ command
  # e.g. [1,2,3] for actor ID 1, 2, and 3.
  # [2] for actor ID 2 only.
  # [] for no party member.
  #-----------------------------------------------------------------
 
  alias wora_simngplus_scetit_checkcon check_continue
  alias wora_simngplus_scetit_ptm play_title_music
  alias wora_simngplus_scetit_ctg create_title_graphic
  def check_continue(*args)
    wora_simngplus_scetit_checkcon(*args)
    if @continue_enabled
      @newgame_plus = false
      savelist = Dir.glob('Save*.rvdata')
      savelist.each do |name|
        save = File.open(name, 'rb')
        (1..6).each { trash = Marshal.load(save) }
        @newgame_plus = true if Marshal.load(save)[NGPLUS_SWITCH]
        save.close
      end
    end
  end
 
  def play_title_music(*args)
    wora_simngplus_scetit_ptm(*args)
    if @newgame_plus
      RPG::BGM.new(NGPLUS_BGM, NGPLUS_BGM_VOL, NGPLUS_BGM_PITCH).play
    end
  end
 
  def create_title_graphic(*args)
    wora_simngplus_scetit_ctg(*args)
    @sprite.bitmap = Cache.system(NGPLUS_TITLE) if @newgame_plus
  end
end

#=============================================================
# * Window_Command Insert Tool (Version 2)
#=============================================================
class Window_Command < Window_Selectable
  unless method_defined? :wora_cominstool_wincom_drawitem
    alias wora_cominstool_wincom_drawitem draw_item unless $@
     
    #------------------------------------
    # * [Alias] Draw_Item
    #------------------------------------
    def draw_item(*args)
      wora_cominstool_wincom_drawitem(*args)
      # Set array's index to 1 if command is disabled
      @disabled_commands ||= []
      @disabled_commands[args[0]] = args[1].nil? || args[1] ? nil : true
    end
     
    #------------------------------------
    # * Insert Command
    #------------------------------------
    def ins_command(index, text)
      @commands.insert(index, text) # Insert new commands
      @disabled_commands ||= []
      @disabled_commands.insert(index, nil)
      # Set new height for window
      old_disabled_commands = @disabled_commands.dup
      self.height = (@commands.size + @column_max - 1) / @column_max * WLH + 32
      @item_max = @commands.size # Update @item_max to make refresh works correctly
      create_contents            # Create new content because window's size changed
      refresh                    # Redraw window's contents
      old_disabled_commands.each_index do |i|
        if !old_disabled_commands[i].nil?
          draw_item(i, false)    # Draw commands that disabled before
        end
      end
    end
   
    #------------------------------------
    # * Add Command
    #------------------------------------
    def add_command(text)
      ins_command(@commands.size, text) # Add new command to new index
    end
  end
end

#=============================================================
# * Add command(s) to Scene_Title
#=============================================================
class Scene_Title < Scene_Base 
  #--------------------------------------------------------------------------
  # * [Alias] Create Command Window
  #--------------------------------------------------------------------------
  alias wora_simngplus_scetit_crecomwin create_command_window
  def create_command_window(*args)
    wora_simngplus_scetit_crecomwin(*args)
    if @newgame_plus
      # Insert new command
      @command_window.ins_command(NGPLUS_INDEX, NGPLUS_COMMAND)
      @command_window.y = @command_window.y + NGPLUS_WINDOW_Y
      # Set index to correct one if @menu_index is after/equal to new command
      @wnewcommand ||= []
      @wnewcommand << NGPLUS_INDEX
    end
  end
  #--------------------------------------------------------------------------
  # * [Alias] Update Command Selection
  #--------------------------------------------------------------------------
  alias wora_simngplus_scetit_upd update
  def update(*args)
    if @newgame_plus
      @menucomorpg_change = false
      # If player choose new command
      if Input.trigger?(Input::C) and @command_window.index == NGPLUS_INDEX
        Sound.play_decision
        NGPLUS_MEMBER.each {|n| $game_party.add_actor(n) }
        $game_map.setup(NGPLUS_MAP[0])
        $game_player.moveto(NGPLUS_MAP[1], NGPLUS_MAP[2])
        $game_player.refresh
        $scene = Scene_Map.new
        RPG::BGM.fade(1500)
        close_command_window
        Graphics.fadeout(60)
        Graphics.wait(40)
        Graphics.frame_count = 0
        RPG::BGM.stop
        $game_map.autoplay
      else # If player choose index after new command
        if Input.trigger?(Input::C) and @command_window.index > NGPLUS_INDEX
          @command_window.index -= 1 # Decrease index to make old update works
          @menucomorpg_change = true
        end
        wora_simngplus_scetit_upd(*args)
      end
      @command_window.index += 1 if @menucomorpg_change # Increase index back
    else
      wora_simngplus_scetit_upd(*args)
    end
  end
end

Créditos

Woratana
Contium por colokar no MRM
Eu por disponibilizar


Última edição por Rock Lee Gui em Qua Dez 30, 2009 11:36 am, editado 1 vez(es)
Rock Lee Gui
Rock Lee Gui
Mania de Administração
Mania de Administração

Mensagens : 366
Idade : 28
Localização : SP - TERRA

Ir para o topo Ir para baixo

New Game + Empty Re: New Game +

Mensagem por Trasgo@01254 Qua Dez 30, 2009 1:11 am

Hum! Gostei muito deste script! Eah bom para um jogo de Pokémon!
Trasgo@01254
Trasgo@01254
Mania de Administração
Mania de Administração

Mensagens : 355
Idade : 28
Localização : Rio de Janeiro-RJ

https://maniamaker.forumeiros.com

Ir para o topo Ir para baixo

New Game + Empty Re: New Game +

Mensagem por Rock Lee Gui Qua Dez 30, 2009 11:38 am

ou tb do naruto
quando acaba o jogo
vc pode aprender todos os jutsus
a endar compersonagens extras
bem, ñ vou ficar flando quantos projetos
dá pra fazer
se ñ fico o dia inteiro aki
Rock Lee Gui
Rock Lee Gui
Mania de Administração
Mania de Administração

Mensagens : 366
Idade : 28
Localização : SP - TERRA

Ir para o topo Ir para baixo

New Game + Empty Re: New Game +

Mensagem por Conteúdo patrocinado


Conteúdo patrocinado


Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos