Ce script permet d'afficher les faces sets lors des sauvegardes, au lieu des charachters.
auteur:solstice
Nommer "File Window "Goomba"
#==========================================================================
# ** File Window "Goomba"
#==========================================================================
# by Solstice
# Version 1 [VX]
# January 26th, 2008
#==========================================================================
class Game_System
attr_accessor :gb_goombafaces
end
class Scene_File
alias gamebaker_filegoomba_writesave write_save_data
def write_save_data(file)
$game_system.gb_goombafaces = [$game_party.members[0].name]
for i in 0...$game_party.members.size
$game_system.gb_goombafaces += [$game_party.members[i].face_name]
$game_system.gb_goombafaces += [$game_party.members[i].face_index]
end
gamebaker_filegoomba_writesave(file)
end
end
class Window_SaveFile
alias gamebaker_filegoomba_drawchars draw_party_characters
def draw_party_characters(x, y)
begin
y = 5
x += 30 if @characters.size == 3
x += 60 if @characters.size == 2
x += 90 if @characters.size == 1
temp = @game_system.gb_goombafaces
for i in 0...@characters.size
draw_face(temp[2 * i + 1],temp[2 * i + 2],x + i * 60,y,48)
end
self.contents.draw_text(0, 34 - WLH, contents.width - 4, WLH, temp[0], 2)
rescue
gamebaker_filegoomba_drawchars(x,y)
end
end
end