~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


Interpreter 6 ::: postι le 2006-02-16 @ 10:19:00
Auteur: Yukihiro matsumoto

#============================================
# ‘ Interpreter (•ͺŠ„’θ‹` 6)
#----------------------------------------------
# @ƒCƒxƒ“ƒgƒRƒ}ƒ“ƒh‚πŽΐs‚·‚ιƒCƒ“ƒ^ƒvƒŠƒ^‚Ε‚·B‚±‚ΜƒNƒ‰ƒX‚Ν Game_System ƒNƒ‰
# ƒX‚β Game_Event ƒNƒ‰ƒX‚Μ“ΰ•”‚ΕŽg—p‚³‚κ‚ά‚·B
#============================================

class Interpreter
#------------------------------------------
# œ ƒoƒgƒ‹‚̏ˆ—
#------------------------------------------
def command_301
# –³Œψ‚Θƒgƒ‹[ƒv‚Ε‚Θ‚―‚κ‚Ξ
if $data_troops[@parameters[0]] != nil
# ƒoƒgƒ‹’†’fƒtƒ‰ƒO‚πƒZƒbƒg
$game_temp.battle_abort = true
# ƒoƒgƒ‹ŒΔ‚яo‚΅ƒtƒ‰ƒO‚πƒZƒbƒg
$game_temp.battle_calling = true
$game_temp.battle_troop_id = @parameters[0]
$game_temp.battle_can_escape = @parameters[1]
$game_temp.battle_can_lose = @parameters[2]
# ƒR[ƒ‹ƒoƒbƒN‚πέ’θ
current_indent = @list[@index].indent
$game_temp.battle_proc = Proc.new { |n| @branch[current_indent] = n }
end
# ƒCƒ“ƒfƒbƒNƒX‚πi‚ί‚ι
@index += 1
# I—Ή
return false
end
#------------------------------------------
# œ Ÿ‚Α‚½κ‡
#------------------------------------------
def command_601
# ƒoƒgƒ‹Œ‹‰Κ‚ͺŸ‚Ώ‚̏ꍇ
if @branch[@list[@index].indent] == 0
# •ͺŠςƒf[ƒ^‚πνœ
@branch.delete(@list[@index].indent)
# Œp‘±
return true
end
# πŒ‚ΙŠY“–‚΅‚Θ‚’κ‡ : ƒRƒ}ƒ“ƒhƒXƒLƒbƒv
return command_skip
end
#------------------------------------------
# œ “¦‚°‚½κ‡
#------------------------------------------
def command_602
# ƒoƒgƒ‹Œ‹‰Κ‚ͺ“¦‚°‚̏ꍇ
if @branch[@list[@index].indent] == 1
# •ͺŠςƒf[ƒ^‚πνœ
@branch.delete(@list[@index].indent)
# Œp‘±
return true
end
# πŒ‚ΙŠY“–‚΅‚Θ‚’κ‡ : ƒRƒ}ƒ“ƒhƒXƒLƒbƒv
return command_skip
end
#------------------------------------------
# œ •‰‚―‚½κ‡
#------------------------------------------
def command_603
# ƒoƒgƒ‹Œ‹‰Κ‚ͺ•‰‚―‚̏ꍇ
if @branch[@list[@index].indent] == 2
# •ͺŠςƒf[ƒ^‚πνœ
@branch.delete(@list[@index].indent)
# Œp‘±
return true
end
# πŒ‚ΙŠY“–‚΅‚Θ‚’κ‡ : ƒRƒ}ƒ“ƒhƒXƒLƒbƒv
return command_skip
end
#------------------------------------------
# œ ƒVƒ‡ƒbƒv‚̏ˆ—
#------------------------------------------
def command_302
# ƒoƒgƒ‹’†’fƒtƒ‰ƒO‚πƒZƒbƒg
$game_temp.battle_abort = true
# ƒVƒ‡ƒbƒvŒΔ‚яo‚΅ƒtƒ‰ƒO‚πƒZƒbƒg
$game_temp.shop_calling = true
# €•iƒŠƒXƒg‚ɐV‚΅‚’€–Ϊ‚πέ’θ
$game_temp.shop_goods = [@parameters]
# ƒ‹[ƒv
loop do
# ƒCƒ“ƒfƒbƒNƒX‚πi‚ί‚ι
@index += 1
# ŽŸ‚ΜƒCƒxƒ“ƒgƒRƒ}ƒ“ƒh‚ͺƒVƒ‡ƒbƒv 2 s–ΪˆΘ~‚̏ꍇ
if @list[@index].code == 605
# €•iƒŠƒXƒg‚ɐV‚΅‚’€–Ϊ‚π’Η‰Α
$game_temp.shop_goods.push(@list[@index].parameters)
# ƒCƒxƒ“ƒgƒRƒ}ƒ“ƒh‚ͺƒVƒ‡ƒbƒv 2 s–ΪˆΘ~‚Ε‚Ν‚Θ‚’κ‡
else
# I—Ή
return false
end
end
end
#------------------------------------------
# œ –Ό‘O“ό—͂̏ˆ—
#------------------------------------------
def command_303
# –³Œψ‚ΘƒAƒNƒ^[‚Ε‚Θ‚―‚κ‚Ξ
if $data_actors[@parameters[0]] != nil
# ƒoƒgƒ‹’†’fƒtƒ‰ƒO‚πƒZƒbƒg
$game_temp.battle_abort = true
# –Ό‘O“ό—ΝŒΔ‚Ρo‚΅ƒtƒ‰ƒO‚πƒZƒbƒg
$game_temp.name_calling = true
$game_temp.name_actor_id = @parameters[0]
$game_temp.name_max_char = @parameters[1]
end
# ƒCƒ“ƒfƒbƒNƒX‚πi‚ί‚ι
@index += 1
# I—Ή
return false
end
#------------------------------------------
# œ HP ‚Μ‘ŒΈ
#------------------------------------------
def command_311
# ‘€μ‚·‚ι’l‚πŽζ“Ύ
value = operate_value(@parameters[1], @parameters[2], @parameters[3])
# ƒCƒeƒŒ[ƒ^‚ŏˆ—
iterate_actor(@parameters[0]) do |actor|
# HP ‚ͺ 0 ‚Ε‚Θ‚’κ‡
if actor.hp > 0
# HP ‚π•ΟX (ν“¬•s”‚ͺ‹–‰Β‚³‚κ‚Δ‚’‚Θ‚―‚κ‚Ξ 1 ‚Ι‚·‚ι)
if @parameters[4] == false and actor.hp + value <= 0
actor.hp = 1
else
actor.hp += value
end
end
end
# ƒQ[ƒ€ƒI[ƒo[”»’θ
$game_temp.gameover = $game_party.all_dead?
# Œp‘±
return true
end
#------------------------------------------
# œ SP ‚Μ‘ŒΈ
#------------------------------------------
def command_312
# ‘€μ‚·‚ι’l‚πŽζ“Ύ
value = operate_value(@parameters[1], @parameters[2], @parameters[3])
# ƒCƒeƒŒ[ƒ^‚ŏˆ—
iterate_actor(@parameters[0]) do |actor|
# ƒAƒNƒ^[‚Μ SP ‚π•ΟX
actor.sp += value
end
# Œp‘±
return true
end
#------------------------------------------
# œ ƒXƒe[ƒg‚̕ύX
#------------------------------------------
def command_313
# ƒCƒeƒŒ[ƒ^‚ŏˆ—
iterate_actor(@parameters[0]) do |actor|
# ƒXƒe[ƒg‚π•ΟX
if @parameters[1] == 0
actor.add_state(@parameters[2])
else
actor.remove_state(@parameters[2])
end
end
# Œp‘±
return true
end
#------------------------------------------
# œ ‘S‰ρ•œ
#------------------------------------------
def command_314
# ƒCƒeƒŒ[ƒ^‚ŏˆ—
iterate_actor(@parameters[0]) do |actor|
# ƒAƒNƒ^[‚π‘S‰ρ•œ
actor.recover_all
end
# Œp‘±
return true
end
#------------------------------------------
# œ EXP ‚Μ‘ŒΈ
#------------------------------------------
def command_315
# ‘€μ‚·‚ι’l‚πŽζ“Ύ
value = operate_value(@parameters[1], @parameters[2], @parameters[3])
# ƒCƒeƒŒ[ƒ^‚ŏˆ—
iterate_actor(@parameters[0]) do |actor|
# ƒAƒNƒ^[‚Μ EXP ‚π•ΟX
actor.exp += value
end
# Œp‘±
return true
end
#------------------------------------------
# œ ƒŒƒxƒ‹‚Μ‘ŒΈ
#------------------------------------------
def command_316
# ‘€μ‚·‚ι’l‚πŽζ“Ύ
value = operate_value(@parameters[1], @parameters[2], @parameters[3])
# ƒCƒeƒŒ[ƒ^‚ŏˆ—
iterate_actor(@parameters[0]) do |actor|
# ƒAƒNƒ^[‚ΜƒŒƒxƒ‹‚π•ΟX
actor.level += value
end
# Œp‘±
return true
end
#------------------------------------------
# œ ƒpƒ‰ƒ[ƒ^‚Μ‘ŒΈ
#------------------------------------------
def command_317
# ‘€μ‚·‚ι’l‚πŽζ“Ύ
value = operate_value(@parameters[2], @parameters[3], @parameters[4])
# ƒAƒNƒ^[‚πŽζ“Ύ
actor = $game_actors[@parameters[0]]
# ƒpƒ‰ƒ[ƒ^‚π•ΟX
if actor != nil
case @parameters[1]
when 0 # MaxHP
actor.maxhp += value
when 1 # MaxSP
actor.maxsp += value
when 2 # ˜r—Ν
actor.str += value
when 3 # Šν—p‚³
actor.dex += value
when 4 # ‘f‘‚³
actor.agi += value
when 5 # –‚—Ν
actor.int += value
end
end
# Œp‘±
return true
end
#------------------------------------------
# œ ƒXƒLƒ‹‚Μ‘ŒΈ
#------------------------------------------
def command_318
# ƒAƒNƒ^[‚πŽζ“Ύ
actor = $game_actors[@parameters[0]]
# ƒXƒLƒ‹‚π‘ŒΈ
if actor != nil
if @parameters[1] == 0
actor.learn_skill(@parameters[2])
else
actor.forget_skill(@parameters[2])
end
end
# Œp‘±
return true
end
#------------------------------------------
# œ ‘•”υ‚̕ύX
#------------------------------------------
def command_319
# ƒAƒNƒ^[‚πŽζ“Ύ
actor = $game_actors[@parameters[0]]
# ‘•”υ‚π•ΟX
if actor != nil
actor.equip(@parameters[1], @parameters[2])
end
# Œp‘±
return true
end
#------------------------------------------
# œ ƒAƒNƒ^[‚Μ–Ό‘O•ΟX
#------------------------------------------
def command_320
# ƒAƒNƒ^[‚πŽζ“Ύ
actor = $game_actors[@parameters[0]]
# –Ό‘O‚π•ΟX
if actor != nil
actor.name = @parameters[1]
end
# Œp‘±
return true
end
#------------------------------------------
# œ ƒAƒNƒ^[‚ΜƒNƒ‰ƒX•ΟX
#------------------------------------------
def command_321
# ƒAƒNƒ^[‚πŽζ“Ύ
actor = $game_actors[@parameters[0]]
# ƒNƒ‰ƒX‚π•ΟX
if actor != nil
actor.class_id = @parameters[1]
end
# Œp‘±
return true
end
#------------------------------------------
# œ ƒAƒNƒ^[‚ΜƒOƒ‰ƒtƒBƒbƒN•ΟX
#------------------------------------------
def command_322
# ƒAƒNƒ^[‚πŽζ“Ύ
actor = $game_actors[@parameters[0]]
# ƒOƒ‰ƒtƒBƒbƒN‚π•ΟX
if actor != nil
actor.set_graphic(@parameters[1], @parameters[2],
@parameters[3], @parameters[4])
end
# ƒvƒŒƒCƒ„[‚πƒŠƒtƒŒƒbƒVƒ…
$game_player.refresh
# Œp‘±
return true
end
end
Design By RaZ © Watery Build 2005