Crazy Weavile
Manufacturing a deity
- 317
- Posts
- 18
- Years
- Age 30
- Inside the depths of your mind.
- Seen Apr 29, 2013
Works fine for me... I don't know what the problem is.
# 18:37 4/22/2007
#================================================================
#GAME_SYSTEM
#================================================================
class Game_System
attr_accessor :save_slot
alias azura_gamesystem_initialize initialize
def initialize
azura_gamesystem_initialize
@save_slot = nil
end
end
#================================================================
#END CLASS
#================================================================
#================================================================
#WINDOW_SAVEFILE
#================================================================
class Window_SaveFile
def initialize(file_index, filename)
super(0, 64 + file_index % 4 * 104, 640, 104)
self.contents = Bitmap.new(width - 32, height - 32)
@file_index = file_index
@filename = "Save#{@file_index + 1}.rxdata"
@time_stamp = Time.at(0)
@file_exist = FileTest.exist?(@filename)
if @file_exist
file = File.open(@filename, "r")
@time_stamp = file.mtime
@characters = Marshal.load(file)
@frame_count = Marshal.load(file)
@game_system = Marshal.load(file)
@game_switches = Marshal.load(file)
@game_variables = Marshal.load(file)
@total_sec = @frame_count / Graphics.frame_rate
file.close
end
refresh
@selected = false
if @file_index != $game_system.save_slot and $game_system.save_slot != nil
self.opacity = 120
end
end
end
#================================================================
#END CLASS
#================================================================
#================================================================
#SCENE_SAVE
#================================================================
class Scene_Save
#==============================================================
#UPDATE
#==============================================================
def update
# Update windows
@help_window.update
for i in @savefile_windows
i.update
end
# If C button was pressed
if Input.trigger?(Input::C)
if $game_system.save_slot == nil or @file_index == $game_system.save_slot
# Call method: on_decision (defined by the subclasses)
$game_system.save_slot = @file_index
on_decision(make_filename(@file_index))
$game_temp.last_file_index = @file_index
return
else
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
end
# If B button was pressed
if Input.trigger?(Input::B)
# Call method: on_cancel (defined by the subclasses)
on_cancel
return
end
# If the down directional button was pressed
if Input.repeat?(Input::DOWN)
# If the down directional button pressed down is not a repeat,
# or cursor position is more in front than 3
if Input.trigger?(Input::DOWN) or @file_index < 3
# Play cursor SE
$game_system.se_play($data_system.cursor_se)
# Move cursor down
@savefile_windows[@file_index].selected = false
@file_index = (@file_index + 1) % 4
@savefile_windows[@file_index].selected = true
return
end
end
# If the up directional button was pressed
if Input.repeat?(Input::UP)
# If the up directional button pressed down is not a repeat、
# or cursor position is more in back than 0
if Input.trigger?(Input::UP) or @file_index > 0
# Play cursor SE
$game_system.se_play($data_system.cursor_se)
# Move cursor up
@savefile_windows[@file_index].selected = false
@file_index = (@file_index + 3) % 4
@savefile_windows[@file_index].selected = true
return
end
end
end
end
#================================================================
#END CLASS
#================================================================
@Shiny Umbreon: here it goes, any changes you want, just ask for.
Code:# 18:37 4/22/2007 #================================================================ #GAME_SYSTEM #================================================================ class Game_System attr_accessor :save_slot alias azura_gamesystem_initialize initialize def initialize azura_gamesystem_initialize @save_slot = nil end end #================================================================ #END CLASS #================================================================ #================================================================ #WINDOW_SAVEFILE #================================================================ class Window_SaveFile def initialize(file_index, filename) super(0, 64 + file_index % 4 * 104, 640, 104) self.contents = Bitmap.new(width - 32, height - 32) @file_index = file_index @filename = "Save#{@file_index + 1}.rxdata" @time_stamp = Time.at(0) @file_exist = FileTest.exist?(@filename) if @file_exist file = File.open(@filename, "r") @time_stamp = file.mtime @characters = Marshal.load(file) @frame_count = Marshal.load(file) @game_system = Marshal.load(file) @game_switches = Marshal.load(file) @game_variables = Marshal.load(file) @total_sec = @frame_count / Graphics.frame_rate file.close end refresh @selected = false if @file_index != $game_system.save_slot and $game_system.save_slot != nil self.opacity = 120 end end end #================================================================ #END CLASS #================================================================ #================================================================ #SCENE_SAVE #================================================================ class Scene_Save #============================================================== #UPDATE #============================================================== def update # Update windows @help_window.update for i in @savefile_windows i.update end # If C button was pressed if Input.trigger?(Input::C) if $game_system.save_slot == nil or @file_index == $game_system.save_slot # Call method: on_decision (defined by the subclasses) $game_system.save_slot = @file_index on_decision(make_filename(@file_index)) $game_temp.last_file_index = @file_index return else # Play buzzer SE $game_system.se_play($data_system.buzzer_se) return end end # If B button was pressed if Input.trigger?(Input::B) # Call method: on_cancel (defined by the subclasses) on_cancel return end # If the down directional button was pressed if Input.repeat?(Input::DOWN) # If the down directional button pressed down is not a repeat, # or cursor position is more in front than 3 if Input.trigger?(Input::DOWN) or @file_index < 3 # Play cursor SE $game_system.se_play($data_system.cursor_se) # Move cursor down @savefile_windows[@file_index].selected = false @file_index = (@file_index + 1) % 4 @savefile_windows[@file_index].selected = true return end end # If the up directional button was pressed if Input.repeat?(Input::UP) # If the up directional button pressed down is not a repeat、 # or cursor position is more in back than 0 if Input.trigger?(Input::UP) or @file_index > 0 # Play cursor SE $game_system.se_play($data_system.cursor_se) # Move cursor up @savefile_windows[@file_index].selected = false @file_index = (@file_index + 3) % 4 @savefile_windows[@file_index].selected = true return end end end end #================================================================ #END CLASS #================================================================
I think it does what you asked for, if not, just tell me, ok? Place it above main and it should be ready to go.
~Azura.
Hmm, sorry but that doesn't happen to me at all...
Maybe some of your scripts are causing incompatibility. If that's the case, I won't be able to help you. Try the script in a fresh project, put it right above main.
Another thing that may be causing this issue is the non-legal version you may be using.
~Azura.
Yeah, I meant to say the font.
He is not using a legal version. Look at the text at the top of his screen and compare it to yours.
Yes, it can be done. However, I won't be able to help you if the scripts don't work on illegal versions.
Also where could i get the Pokemon emerald font?