~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_Status ::: postι le 2006-02-16 @ 10:24:00
Auteur: Yukihiro matsumoto

#============================================
# ‘ Scene_Status
#----------------------------------------------
# @ƒXƒe[ƒ^ƒX‰ζ–ʂ̏ˆ—‚πs‚€ƒNƒ‰ƒX‚Ε‚·B
#============================================

class Scene_Status
#------------------------------------------
# œ ƒIƒuƒWƒFƒNƒg‰Šϊ‰»
# actor_index : ƒAƒNƒ^[ƒCƒ“ƒfƒbƒNƒX
#------------------------------------------
def initialize(actor_index = 0, equip_index = 0)
@actor_index = actor_index
end
#------------------------------------------
# œ ƒƒCƒ“ˆ—
#------------------------------------------
def main
# ƒAƒNƒ^[‚πŽζ“Ύ
@actor = $game_party.actors[@actor_index]
# ƒXƒe[ƒ^ƒXƒEƒBƒ“ƒhƒE‚πμ¬
@status_window = Window_Status.new(@actor)
# ƒgƒ‰ƒ“ƒWƒVƒ‡ƒ“Žΐs
Graphics.transition
# ƒƒCƒ“ƒ‹[ƒv
loop do
# ƒQ[ƒ€‰ζ–Κ‚πXV
Graphics.update
# “ό—͏ξ•ρ‚πXV
Input.update
# ƒtƒŒ[ƒ€XV
update
# ‰ζ–Κ‚ͺΨ‚θ‘Φ‚ν‚Α‚½‚烋[ƒv‚π’†’f
if $scene != self
break
end
end
# ƒgƒ‰ƒ“ƒWƒVƒ‡ƒ“€”υ
Graphics.freeze
# ƒEƒBƒ“ƒhƒE‚π‰π•ϊ
@status_window.dispose
end
#------------------------------------------
# œ ƒtƒŒ[ƒ€XV
#------------------------------------------
def update
# B ƒ{ƒ^ƒ“‚ͺ‰Ÿ‚³‚κ‚½κ‡
if Input.trigger?(Input::B)
# ƒLƒƒƒ“ƒZƒ‹ SE ‚π‰‰‘t
$game_system.se_play($data_system.cancel_se)
# ƒƒjƒ…[‰ζ–ʂɐ؂θ‘Φ‚¦
$scene = Scene_Menu.new(3)
return
end
# R ƒ{ƒ^ƒ“‚ͺ‰Ÿ‚³‚κ‚½κ‡
if Input.trigger?(Input::R)
# ƒJ[ƒƒ‹ SE ‚π‰‰‘t
$game_system.se_play($data_system.cursor_se)
# ŽŸ‚ΜƒAƒNƒ^[‚Φ
@actor_index += 1
@actor_index %= $game_party.actors.size
# •Κ‚ΜƒXƒe[ƒ^ƒX‰ζ–ʂɐ؂θ‘Φ‚¦
$scene = Scene_Status.new(@actor_index)
return
end
# L ƒ{ƒ^ƒ“‚ͺ‰Ÿ‚³‚κ‚½κ‡
if Input.trigger?(Input::L)
# ƒJ[ƒƒ‹ SE ‚π‰‰‘t
$game_system.se_play($data_system.cursor_se)
# ‘O‚ΜƒAƒNƒ^[‚Φ
@actor_index += $game_party.actors.size - 1
@actor_index %= $game_party.actors.size
# •Κ‚ΜƒXƒe[ƒ^ƒX‰ζ–ʂɐ؂θ‘Φ‚¦
$scene = Scene_Status.new(@actor_index)
return
end
end
end
Design By RaZ © Watery Build 2005