Script Save Slots - Dispondo
2 participantes
Full Maker :: RMVX :: Sistemas e Tutoriais :: Sistemas
Página 1 de 1
Script Save Slots - Dispondo
Eaew gente, eu denovo aqui, agora com um script de slots, pode salvar quantos quiser slots de save XDDDDD
Screens:
Script:
Até mais :D
Screens:
Script:
- Spoiler:
- Código:
#==============================================================================
# More Saveslots
#==============================================================================
# Criado por: ERZENGEL
# Tradução: LegendsX
#==============================================================================
#
#==============================================================================
# Mude aqui o numero maximo dos saves.
SAVE_MAX = 99
#==============================================================================
class Window_SaveFile
#--------------------------------------------------------------------------
def initialize(file_index, filename)
super(0, 56 + file_index % SAVE_MAX * 90, 544, 90)
@file_index = file_index
@filename = filename
load_gamedata
refresh
@selected = false
end
end
class Scene_File
def start
super
@file_max = SAVE_MAX
create_menu_background
@help_window = Window_Help.new
create_savefile_windows
if @saving
@index = $game_temp.last_file_index
@help_window.set_text(Vocab::SaveMessage)
else
@index = self.latest_file_index
@help_window.set_text(Vocab::LoadMessage)
end
@savefile_windows[@index].selected = true
@page_file_max = ((416 - @help_window.height) / 90).truncate
for i in 0...@file_max
window = @savefile_windows
if @index > @page_file_max - 1
if @index < @file_max - @page_file_max - 1
@top_row = @index
window.y -= @index * window.height
elsif @index >= @file_max - @page_file_max
@top_row = @file_max - @page_file_max
window.y -= (@file_max - @page_file_max) * window.height
else
@top_row = @index
window.y -= @index * window.height
end
end
window.visible = (window.y >= @help_window.height and
window.y < @help_window.height + @page_file_max * window.height)
end
end
def create_savefile_windows
@top_row = 0
@savefile_windows = []
for i in 0...@file_max
@savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
end
end
def cursor_down(wrap)
if @index < @file_max - 1 or wrap
@index = (@index + 1) % @file_max
for i in 0...@file_max
window = @savefile_windows
if @index == 0
@top_row = 0
window.y = @help_window.height + i % @file_max * window.height
elsif @index - @top_row > @page_file_max - 1
window.y -= window.height
end
window.visible = (window.y >= @help_window.height and
window.y < @help_window.height + @page_file_max * window.height)
end
if @index - @top_row > @page_file_max - 1
@top_row += 1
end
end
end
def cursor_up(wrap)
if @index > 0 or wrap
@index = (@index - 1 + @file_max) % @file_max
for i in 0...@file_max
window = @savefile_windows
if @index == @file_max - 1
@top_row = @file_max - @page_file_max
window.y = @help_window.height + i % @file_max * window.height
window.y -= (@file_max - @page_file_max) * window.height
elsif @index - @top_row < 0
window.y += window.height
end
window.visible = (window.y >= @help_window.height and
window.y < @help_window.height + @page_file_max * window.height)
end
if @index - @top_row < 0
@top_row -= 1
end
end
end
end
Até mais :D
UchihaMadara77- Moderadores
- Mensagens : 522
Pontos : 107352
Full Creditos : 57
Data de inscrição : 10/04/2010
Idade : 26
Re: Script Save Slots - Dispondo
Muito bom!
XxBestxX- Principiante
- Mensagens : 58
Pontos : 106712
Full Creditos : 3
Data de inscrição : 11/04/2010
Idade : 27
Re: Script Save Slots - Dispondo
Vlw pelo coment, e pensando, nem perguntem pq nem sei quantos slots podem salvar hauhauah XDDD
Até mais :D
Até mais :D
UchihaMadara77- Moderadores
- Mensagens : 522
Pontos : 107352
Full Creditos : 57
Data de inscrição : 10/04/2010
Idade : 26
Re: Script Save Slots - Dispondo
E so testar vendo de 1 em 1 hsahsashahsahsahsa
XxBestxX- Principiante
- Mensagens : 58
Pontos : 106712
Full Creditos : 3
Data de inscrição : 11/04/2010
Idade : 27
Tópicos semelhantes
» Script de Correr (Por Marlos Gama)
» Melhor sistema de todos[evento e script]
» Windoskins - Dispondo
» Animations 3D - Dispondo
» Autotiles - Dispondo
» Melhor sistema de todos[evento e script]
» Windoskins - Dispondo
» Animations 3D - Dispondo
» Autotiles - Dispondo
Full Maker :: RMVX :: Sistemas e Tutoriais :: Sistemas
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos