~Site
¤Accueil
¤Forum
¤Admin

~Base de scripts
¤Scripts de base
¤Scripts Menu
¤Scripts Combat
¤Scripts Système
¤Scripts Modifiés

Scripts de Base
Game_Temp
Game_System
Game_Switches
Game_Variables
Game_SelfSwitches
Game_Screen
Game_Picture
Game_Battler 1
Game_Battler 2
Game_Battler 3
Game_BattleAction
Game_Actor
Game_Enemy
Game_Actors
Game_Party
Game_Troop
Game_Map
Game_CommonEvent
Game_Character 1
Game_Character 2
Game_Character 3
Game_Event
Game_Player
Sprite_Character
Sprite_Battler
Sprite_Picture
Sprite_Timer
Spriteset_Map
Spriteset_Battle
Window_Base
Window_Selectable
Window_Command
Window_Help
Window_Gold
Window_PlayTime
Window_Steps
Window_MenuStatus
Window_Item
Window_Skill
Window_SkillStatus
Window_Target
Window_EquipLeft
Window_EquipRight
Window_EquipItem
Window_Status
Window_SaveFile
Window_ShopCommand
Window_ShopBuy
Window_ShopSell
Window_ShopNumber
Window_ShopStatus
Window_NameEdit
Window_NameInput
Window_InputNumber
Window_Message
Window_PartyCommand
Window_BattleStatus
Window_BattleResult
Window_DebugLeft
Window_DebugRight
Window_Dataset
Arrow_Base
Arrow_Enemy
Arrow_Actor
Interpreter 1
Interpreter 2
Interpreter 3
Interpreter 4
Interpreter 5
Interpreter 6
Interpreter 7
Scene_Title
Scene_Map
Scene_Menu
Scene_Item
Scene_Skill
Scene_Equip
Scene_Status
Scene_File
Scene_Save
Scene_Load
Scene_End
Scene_Battle 1
Scene_Battle 2
Scene_Battle 3
Scene_Battle 4
Scene_Shop
Scene_Name
Scene_Gameover
Scene_Debug
Main


Scene_File ::: posté le 2006-02-16 @ 10:24:00
Auteur: Yukihiro matsumoto

#============================================
# ¡ Scene_File
#----------------------------------------------
# @ƒZ[ƒu‰æ–Ê‚¨‚æ‚у[ƒh‰æ–ʂ̃X[ƒp[ƒNƒ‰ƒX‚Å‚·B
#============================================

class Scene_File
#------------------------------------------
# œ ƒIƒuƒWƒFƒNƒg‰Šú‰»
# help_text : ƒwƒ‹ƒvƒEƒBƒ“ƒhƒE‚ɕަ‚·‚é•¶Žš—ñ
#------------------------------------------
def initialize(help_text)
@help_text = help_text
end
#------------------------------------------
# œ ƒƒCƒ“ˆ—
#------------------------------------------
def main
# ƒwƒ‹ƒvƒEƒBƒ“ƒhƒE‚ðì¬
@help_window = Window_Help.new
@help_window.set_text(@help_text)
# ƒZ[ƒuƒtƒ@ƒCƒ‹ƒEƒBƒ“ƒhƒE‚ðì¬
@savefile_windows = []
for i in 0..3
@savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
end
# ÅŒã‚É‘€ì‚µ‚½ƒtƒ@ƒCƒ‹‚ð‘I‘ð
@file_index = $game_temp.last_file_index
@savefile_windows[@file_index].selected = true
# ƒgƒ‰ƒ“ƒWƒVƒ‡ƒ“ŽÀs
Graphics.transition
# ƒƒCƒ“ƒ‹[ƒv
loop do
# ƒQ[ƒ€‰æ–Ê‚ðXV
Graphics.update
# “ü—Íî•ñ‚ðXV
Input.update
# ƒtƒŒ[ƒ€XV
update
# ‰æ–Ê‚ªØ‚è‘Ö‚í‚Á‚½‚烋[ƒv‚ð’†’f
if $scene != self
break
end
end
# ƒgƒ‰ƒ“ƒWƒVƒ‡ƒ“€”õ
Graphics.freeze
# ƒEƒBƒ“ƒhƒE‚ð‰ð•ú
@help_window.dispose
for i in @savefile_windows
i.dispose
end
end
#------------------------------------------
# œ ƒtƒŒ[ƒ€XV
#------------------------------------------
def update
# ƒEƒBƒ“ƒhƒE‚ðXV
@help_window.update
for i in @savefile_windows
i.update
end
# C ƒ{ƒ^ƒ“‚ª‰Ÿ‚³‚ꂽê‡
if Input.trigger?(Input::C)
# ƒƒƒbƒh on_decision (Œp³æ‚Å’è‹`) ‚ðŒÄ‚Ô
on_decision(make_filename(@file_index))
$game_temp.last_file_index = @file_index
return
end
# B ƒ{ƒ^ƒ“‚ª‰Ÿ‚³‚ꂽê‡
if Input.trigger?(Input::B)
# ƒƒƒbƒh on_cancel (Œp³æ‚Å’è‹`) ‚ðŒÄ‚Ô
on_cancel
return
end
# •ûŒüƒ{ƒ^ƒ“‚̉º‚ª‰Ÿ‚³‚ꂽê‡
if Input.repeat?(Input::DOWN)
# •ûŒüƒ{ƒ^ƒ“‚̉º‚̉Ÿ‰ºó‘Ô‚ªƒŠƒs[ƒg‚łȂ¢ê‡‚©A
# ‚Ü‚½‚̓J[ƒƒ‹ˆÊ’u‚ª 3 ‚æ‚è‘O‚Ìê‡
if Input.trigger?(Input::DOWN) or @file_index < 3
# ƒJ[ƒƒ‹ SE ‚ð‰‰‘t
$game_system.se_play($data_system.cursor_se)
# ƒJ[ƒƒ‹‚ð‰º‚ÉˆÚ“®
@savefile_windows[@file_index].selected = false
@file_index = (@file_index + 1) % 4
@savefile_windows[@file_index].selected = true
return
end
end
# •ûŒüƒ{ƒ^ƒ“‚Ìオ‰Ÿ‚³‚ꂽê‡
if Input.repeat?(Input::UP)
# •ûŒüƒ{ƒ^ƒ“‚Ìã‚̉Ÿ‰ºó‘Ô‚ªƒŠƒs[ƒg‚łȂ¢ê‡‚©A
# ‚Ü‚½‚̓J[ƒƒ‹ˆÊ’u‚ª 0 ‚æ‚èŒã‚ë‚Ìê‡
if Input.trigger?(Input::UP) or @file_index > 0
# ƒJ[ƒƒ‹ SE ‚ð‰‰‘t
$game_system.se_play($data_system.cursor_se)
# ƒJ[ƒƒ‹‚ðã‚Ɉړ®
@savefile_windows[@file_index].selected = false
@file_index = (@file_index + 3) % 4
@savefile_windows[@file_index].selected = true
return
end
end
end
#------------------------------------------
# œ ƒtƒ@ƒCƒ‹–¼‚Ìì¬
# file_index : ƒZ[ƒuƒtƒ@ƒCƒ‹‚̃Cƒ“ƒfƒbƒNƒX (0`3)
#------------------------------------------
def make_filename(file_index)
return "Save#{file_index + 1}.rxdata"
end
end
Design By RaZ © Watery Build 2005