rebf-gaiden/Scripts/_.14.rb
2025-04-26 17:06:34 -05:00

49 lines
No EOL
2 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#==============================================================================
# □ 装備の変更・改 (for VX Ace)
#------------------------------------------------------------------------------
# Version : 1_20120105
# by サリサ・タイクーン
# http://www.tycoon812.com/rgss/
#==============================================================================
#==============================================================================
# □ 素材スイッチ
#==============================================================================
$rgsslab = {} if $rgsslab == nil
$rgsslab["装備の変更・改"] = true
if $rgsslab["装備の変更・改"]
# カスタマイズポイントは、ありません。
module RGSSLAB end
#==============================================================================
# □ RGSSLAB::Equip_Change_Alter [module]
#==============================================================================
module RGSSLAB::Equip_Change_Alter
#--------------------------------------------------------------------------
# ○ 素材設定用の定数定義
#--------------------------------------------------------------------------
MATERIAL_NAME = "装備の変更・改"
VERSION = 1
RELEASE = 20120105
end
#==============================================================================
# ■ Game_Interpreter [class]
#==============================================================================
class Game_Interpreter
#--------------------------------------------------------------------------
# ○ 装備の変更・改
# actor_id : アクター ID
# array_number : 装備スロット番号
# item_id : 装備ID武器又は防具
#--------------------------------------------------------------------------
def equip_change(actor_id, array_number, item_id)
actor = $game_actors[actor_id]
return true if actor == nil
actor.change_equip_by_id(array_number, item_id) if actor
end
end
end