Project1
标题:
我copy得失物品 脚本, 但为什么不好使 ?
[打印本页]
作者:
qiuyulun
时间:
2008-4-25 10:59
提示:
作者被禁止或删除 内容自动屏蔽
作者:
暴风の龙
时间:
2008-4-25 11:02
粘贴到main脚本之上,有吗?
另外就是该脚本是有个屏蔽用的开关,在注释里有提到,确定那个开关不是处于打开的状况?
作者:
一瞬间的幻觉
时间:
2008-4-25 11:40
你是不是复制那个VX专用的脚本了?
作者:
chenyin
时间:
2008-4-25 20:43
楼上的说话,有可能是。
还有你用的那个得失物品脚本,有可能有BUG,
用这个比较好
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
# 注意!!!在对话后得到物品,请在对话后先用事件等待3帧,否则对话框来不及消失。
# 开关定义:
$不显示金钱窗口 = 2
$不显示物品窗口 = 3
$不显示武器窗口 = 4
$不显示防具窗口 = 5#以上千万不要改!(CHENYIN发帖注)
# 以上开关,当打开的时候,获得物品将不会提示,比如默认打开1号开关,获得金钱不再提示
# ————————————————————————————————————
class Interpreter
#--------------------------------------------------------------------------
# ● 增减金钱
#--------------------------------------------------------------------------
def command_125
;value = operate_value(@parameters[0], @parameters[1], @parameters[2])
$game_party.gain_gold(value)
if $game_switches[$不显示金钱窗口]==false
carol3_66RPG = Window_Base.new((640-160)/2,128,180,100)
carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
carol3_66RPG.contents.font.color = Color.new(255,255,255,255)
if value >= 0
carol3_66RPG.contents.draw_text(0,0,240,32,"得到银两:")
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"001-System01.ogg",100,100)
else
carol3_66RPG.contents.draw_text(0,0,240,32,"失去银两:")
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"002-System02.ogg",100,100)
end
carol3_66RPG.contents.draw_text(0,32,240,32,value.abs.to_s)
carol3_66RPG.contents.draw_text(0,32,140,32, $data_system.words.gold,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
return true
end
#--------------------------------------------------------------------------
# ● 增减物品
#--------------------------------------------------------------------------
def command_126
;value = operate_value(@parameters[1], @parameters[2], @parameters[3])
$game_party.gain_item(@parameters[0], value)
if $game_switches[$不显示物品窗口]==false
carol3_66RPG_item = $data_items[@parameters[0]]
carol3_66RPG = Window_Base.new((640-300)/2,128,300,100)
carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
carol3_66RPG.contents.font.color = Color.new(255,255,255,255)
if value >= 0
carol3_66RPG.contents.draw_text(0,0,240,32,"得到物品:")
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"001-System01.ogg",100,100)
else
carol3_66RPG.contents.draw_text(0,0,240,32,"失去物品:")
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"002-System02.ogg",100,100)
end
carol3_66RPG_bitmap = RPG::Cache.icon(carol3_66RPG_item.icon_name)
carol3_66RPG.contents.blt(0, 32, carol3_66RPG_bitmap, Rect.new(0, 0, 24, 24), 255)
carol3_66RPG.contents.draw_text(0 + 28, 32, 212, 32, carol3_66RPG_item.name, 0)
carol3_66RPG.contents.draw_text(0, 32, 268, 32, "×"+value.abs.to_s, 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
return true
end
#--------------------------------------------------------------------------
# ● 增减武器
#--------------------------------------------------------------------------
def command_127
;value = operate_value(@parameters[1], @parameters[2], @parameters[3])
$game_party.gain_weapon(@parameters[0], value)
if $game_switches[$不显示武器窗口]==false
carol3_66RPG_item = $data_weapons[@parameters[0]]
carol3_66RPG = Window_Base.new((640-300)/2,128,300,100)
carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
carol3_66RPG.contents.font.color = Color.new(255,255,255,255)
if value >= 0
carol3_66RPG.contents.draw_text(0,0,240,32,"得到武器:")
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"001-System01.ogg",100,100)
else
carol3_66RPG.contents.draw_text(0,0,240,32,"失去武器:")
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"002-System02.ogg",100,100)
end
carol3_66RPG_bitmap = RPG::Cache.icon(carol3_66RPG_item.icon_name)
carol3_66RPG.contents.blt(0, 32, carol3_66RPG_bitmap, Rect.new(0, 0, 24, 24), 255)
carol3_66RPG.contents.draw_text(0 + 28, 32, 212, 32, carol3_66RPG_item.name, 0)
carol3_66RPG.contents.draw_text(0, 32, 268, 32, "×"+value.abs.to_s, 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
return true
end
#--------------------------------------------------------------------------
# ● 增减防具
#--------------------------------------------------------------------------
def command_128
;value = operate_value(@parameters[1], @parameters[2], @parameters[3])
$game_party.gain_armor(@parameters[0], value)
if $game_switches[$不显示防具窗口]==false
carol3_66RPG_item = $data_armors[@parameters[0]]
carol3_66RPG = Window_Base.new((640-300)/2,128,300,100)
carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
carol3_66RPG.contents.font.color = Color.new(255,255,255,255)
if value >= 0
carol3_66RPG.contents.draw_text(0,0,240,32,"获得装备:")
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"001-System01.ogg",100,100)
else
carol3_66RPG.contents.draw_text(0,0,240,32,"失去装备:")
#——声效,可以自己改
Audio.se_play("Audio/SE/"+"002-System02.ogg",100,100)
end
carol3_66RPG_bitmap = RPG::Cache.icon(carol3_66RPG_item.icon_name)
carol3_66RPG.contents.blt(0, 32, carol3_66RPG_bitmap, Rect.new(0, 0, 24, 24), 255)
carol3_66RPG.contents.draw_text(0 + 28, 32, 212, 32, carol3_66RPG_item.name, 0)
carol3_66RPG.contents.draw_text(0, 32, 268, 32, "×"+value.abs.to_s, 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
return true
end
end
#==============================================================================
# 本脚本来自www.66RPG.com,使用和转载请保留此信息
#==============================================================================
复制代码
[LINE]1,#dddddd[/LINE]
系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~
作者:
bububinghe
时间:
2008-4-25 23:45
有可能那个脚本和 其他脚本有链接,导致不能启用
或者是脚本之间冲突了 。LZ好好检查一下
作者:
qiuyulun
时间:
2008-4-28 10:55
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1