class Interpreter
#--------------------------------------------------------------------------
# ● 角色的替换
#--------------------------------------------------------------------------
def command_129
# 获取角色
actor = $game_actors[@parameters[0]]
# 角色有效的情况下
if actor != nil
# 操作分支
if @parameters[1] == 0
if @parameters[2] == 1
$game_actors[@parameters[0]].setup(@parameters[0])
end
$game_party.add_actor(@parameters[0])
else
$game_party.remove_actor(@parameters[0])
end
end
if @parameters[0] > 50
return true
end
#修正一个小BUG 应该+而不能<<
#<<会修改原字符串并添加到尾部。
if not $game_switches[$不显示角色窗口]==false
carol3_66RPG = Window_Base.new((640-310)/2-5,432/2,310,48)
carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
if @parameters[1] == 0
carol3_66RPG.contents.font.name = (["宋体","黑体"])
carol3_66RPG.contents.font.size = 16
carol3_66RPG.contents.font.color.set(255, 255, 88) # 黄色
carol3_66RPG.contents.draw_text(0,-8,240,32,$game_actors[@parameters[0]].name+"加入了队伍")
#——声效,可以自己改
#Audio.se_play("Audio/SE/"+"系统-获得物品",80,100)
else
carol3_66RPG.contents.font.name = (["宋体","黑体"])
carol3_66RPG.contents.font.size = 16
carol3_66RPG.contents.font.color.set(255, 255, 88) # 黄色
carol3_66RPG.contents.draw_text(0,-8,240,32,$game_actors[@parameters[0]].name+"离开了队伍")
#——声效,可以自己改
#Audio.se_play("Audio/SE/"+"系统-失去物品",80,100)
end
for i in 0..30
Graphics.update
end
for i in 0..10
carol3_66RPG.opacity -= 30
carol3_66RPG.contents_opacity -= 30
Graphics.update
end
carol3_66RPG.dispose
end
# 继续
return true
end