赞 | 23 |
VIP | 123 |
好人卡 | 86 |
积分 | 105 |
经验 | 151880 |
最后登录 | 2024-11-23 |
在线时间 | 3542 小时 |
Lv4.逐梦者 素材区好人
- 梦石
- 3
- 星屑
- 7522
- 在线时间
- 3542 小时
- 注册时间
- 2011-7-21
- 帖子
- 2284
|
#============================================================================== # 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息 #============================================================================== #-------------------------------------------------------------------------- # 注意!!!在对话后加入角色,请在对话后先用事件等待3帧,否则对话框来不及消失。 # 开关定义: $不显示角色加入提示窗口 = 45 # 以上开关,当打开的时候,角色加入、离开将不会提示,比如默认打开45号开关,角色加入不再提示。 #-------------------------------------------------------------------------- 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]) if $game_switches[$不显示角色加入提示窗口] == false Audio.se_play("Audio/SE/"+"056-RIGHT02",80,100) carol3_66RPG = Window_Base.new(170,120,300,64) carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32) carol3_66RPG_bitmap = RPG::Cache.character(actor.character_name, actor.character_hue) carol3_66RPG_src_rect = Rect.new(0, 0, 25,38) carol3_66RPG.contents.blt(0,0, carol3_66RPG_bitmap, carol3_66RPG_src_rect) carol3_66RPG.contents.draw_text(40,0,180,32,$game_actors[@parameters[0]].name) carol3_66RPG.contents.draw_text(40,0,220,32,"加入",2) carol3_66RPG.opacity = 160 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 else $game_party.remove_actor(@parameters[0]) if $game_switches[$不显示角色加入提示窗口] == false Audio.se_play("Audio/SE/"+"015-JUMP01",80,100) carol3_66RPG = Window_Base.new(170,120,300,64) carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32) carol3_66RPG_bitmap = RPG::Cache.character(actor.character_name, actor.character_hue) carol3_66RPG_src_rect = Rect.new(0, 0, 25,38) carol3_66RPG.contents.blt(0,0, carol3_66RPG_bitmap, carol3_66RPG_src_rect) carol3_66RPG.contents.draw_text(40,0,180,32,$game_actors[@parameters[0]].name) carol3_66RPG.contents.draw_text(40,0,220,32,"离开",2) carol3_66RPG.opacity = 160 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 end end return true end end #============================================================================== # 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息 #==============================================================================
#==============================================================================
# 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
#==============================================================================
#--------------------------------------------------------------------------
# 注意!!!在对话后加入角色,请在对话后先用事件等待3帧,否则对话框来不及消失。
# 开关定义:
$不显示角色加入提示窗口 = 45
# 以上开关,当打开的时候,角色加入、离开将不会提示,比如默认打开45号开关,角色加入不再提示。
#--------------------------------------------------------------------------
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])
if $game_switches[$不显示角色加入提示窗口] == false
Audio.se_play("Audio/SE/"+"056-RIGHT02",80,100)
carol3_66RPG = Window_Base.new(170,120,300,64)
carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
carol3_66RPG_bitmap = RPG::Cache.character(actor.character_name, actor.character_hue)
carol3_66RPG_src_rect = Rect.new(0, 0, 25,38)
carol3_66RPG.contents.blt(0,0, carol3_66RPG_bitmap, carol3_66RPG_src_rect)
carol3_66RPG.contents.draw_text(40,0,180,32,$game_actors[@parameters[0]].name)
carol3_66RPG.contents.draw_text(40,0,220,32,"加入",2)
carol3_66RPG.opacity = 160
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
else
$game_party.remove_actor(@parameters[0])
if $game_switches[$不显示角色加入提示窗口] == false
Audio.se_play("Audio/SE/"+"015-JUMP01",80,100)
carol3_66RPG = Window_Base.new(170,120,300,64)
carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
carol3_66RPG_bitmap = RPG::Cache.character(actor.character_name, actor.character_hue)
carol3_66RPG_src_rect = Rect.new(0, 0, 25,38)
carol3_66RPG.contents.blt(0,0, carol3_66RPG_bitmap, carol3_66RPG_src_rect)
carol3_66RPG.contents.draw_text(40,0,180,32,$game_actors[@parameters[0]].name)
carol3_66RPG.contents.draw_text(40,0,220,32,"离开",2)
carol3_66RPG.opacity = 160
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
end
end
return true
end
end
#==============================================================================
# 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
#==============================================================================
|
评分
-
查看全部评分
|