赞 | 3 |
VIP | 35 |
好人卡 | 0 |
积分 | 3 |
经验 | 10768 |
最后登录 | 2022-8-10 |
在线时间 | 185 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 344
- 在线时间
- 185 小时
- 注册时间
- 2007-9-2
- 帖子
- 168
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
因为我的提示窗口底是白色的,所以"获得金钱:" "获得防具:" "获得物品:"等等……这些字也是白色的,希望高手们给改成黑色或红色的字……
- # ————————————————————————————————————
- # 本脚本来自www.66rpg.com,转载请保留此信息
- # ————————————————————————————————————
-
- # 注意!!!在对话后得到物品,请在对话后先用事件等待3帧,否则对话框来不及消失。
- # 开关定义:
- $不显示金钱窗口 = 43
- $不显示物品窗口 = 43
- $不显示武器窗口 = 43
- $不显示防具窗口 = 43
- $不显示特技窗口 = 43
- # 以上开关,当打开的时候,获得物品将不会提示,比如默认打开41号开关,获得金钱不再提示
- # ————————————————————————————————————
- 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,120)
- carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
-
- carol3_66RPG.contents.font.size = 18
- if value >= 0
- carol3_66RPG.contents.draw_text(0,0,240,32,"获得金钱:")
- #——声效,可以自己改
-
- Audio.se_play("Audio/SE/"+"006-System06",80,100)
-
- else
- carol3_66RPG.contents.draw_text(0,0,240,32,"失去金钱:")
- #——声效,可以自己改
- Audio.se_play("Audio/SE/"+"005-System05",80,100)
- end
- carol3_66RPG.contents.draw_text(0,62,240,32,value.abs.to_s)
- carol3_66RPG.contents.draw_text(0,62,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,120)
- carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
-
- carol3_66RPG.contents.font.size = 18
- if value >= 0
- carol3_66RPG.contents.draw_text(0,0,240,32,"获得物品:")
- #——声效,可以自己改
- Audio.se_play("Audio/SE/"+"006-System06",80,100)
- else
- carol3_66RPG.contents.draw_text(0,0,240,32,"失去物品:")
- #——声效,可以自己改
- Audio.se_play("Audio/SE/"+"005-System05",80,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,80, 80), 255)
- carol3_66RPG.contents.draw_text(0 + 58, 32, 212, 32, carol3_66RPG_item.name, 0)
- carol3_66RPG.contents.draw_text(0, 62, 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,120)
- carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
-
- carol3_66RPG.contents.font.size = 18
- if value >= 0
- carol3_66RPG.contents.draw_text(0,0,240,32,"获得武器:")
- #——声效,可以自己改
- Audio.se_play("Audio/SE/"+"006-System06",80,100)
- else
- carol3_66RPG.contents.draw_text(0,0,240,32,"失去武器:")
- #——声效,可以自己改
- Audio.se_play("Audio/SE/"+"005-System05",80,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, 80, 80), 255)
- carol3_66RPG.contents.draw_text(0 + 58, 32, 212, 32, carol3_66RPG_item.name, 0)
- carol3_66RPG.contents.draw_text(0, 62, 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_318
- # value = operate_value(@parameters[1], @parameters[2], @parameters[3])
-
- # 获取角色
- actor = $game_actors[@parameters[0]]
- # 增减特技
-
- # 继续
- if $game_switches[$不显示特技窗口]==false
-
-
- redant_66RPG_skill = $data_skills[@parameters[2]]
- redant_66RPG = Window_Base.new((640-300)/2,128,300,120)
- redant_66RPG.contents = Bitmap.new(redant_66RPG.width - 32, redant_66RPG.height - 32)
-
- redant_66RPG.contents.font.size = 18
- if actor != nil
- if @parameters[1] == 0
- actor.learn_skill(@parameters[2])
- redant_66RPG.contents.draw_text(0,0,240,32,"【"+actor.name+"】" + "习得特技:")
- #——声效,可以自己改
- Audio.se_play("Audio/SE/"+"006-System06",80,100)
- else
- actor.forget_skill(@parameters[2])
- redant_66RPG.contents.draw_text(0,0,240,32,"【"+actor.name+"】" + "遗忘特技:")
- #——声效,可以自己改
- Audio.se_play("Audio/SE/"+"005-System05",80,100)
- end
- end
-
- redant_66RPG_bitmap = RPG::Cache.icon(redant_66RPG_skill.icon_name)
- redant_66RPG.contents.blt(0, 32, redant_66RPG_bitmap, Rect.new(0, 0,80, 80), 255)
- redant_66RPG.contents.draw_text(0 + 58, 32, 212, 32, redant_66RPG_skill.name, 0)
- # carol3_66RPG.contents.draw_text(0, 62, 268, 32, "×"+value.abs.to_s, 2)
- redant_66RPG.opacity = 160
- for i in 0..30
- Graphics.update
- end
- for i in 0..10
- redant_66RPG.opacity -= 30
- redant_66RPG.contents_opacity -= 30
- Graphics.update
- end
- redant_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,120)
- carol3_66RPG.contents = Bitmap.new(carol3_66RPG.width - 32, carol3_66RPG.height - 32)
- carol3_66RPG.contents.font.size = 18
- if value >= 0
- carol3_66RPG.contents.draw_text(0,0,240,32,"获得防具:")
- #——声效,可以自己改
- Audio.se_play("Audio/SE/"+"006-System06",80,100)
- else
- carol3_66RPG.contents.draw_text(0,0,240,32,"失去防具:")
- #——声效,可以自己改
- Audio.se_play("Audio/SE/"+"005-System05",80,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,80, 80), 255)
- carol3_66RPG.contents.draw_text(0 + 58, 32, 212, 32, carol3_66RPG_item.name, 0)
- carol3_66RPG.contents.draw_text(0, 62, 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
复制代码
另外下面脚本的“经验值”“金钱值”“得到物品名称”也是白的,也麻烦给改一下{/tp}
- #==============================================================================
- # ■ Window_BattleResult
- #------------------------------------------------------------------------------
- # 战斗结束时、显示获得的 EXP 及金钱的窗口。
- #==============================================================================
- class Window_BattleResult < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对像
- # exp : EXP
- # gold : 金钱
- # treasures : 宝物
- #--------------------------------------------------------------------------
- def initialize(exp, gold, treasures)
- @exp = exp
- @gold = gold
- @treasures = treasures
- super(180, 0, 320, 150)# @treasures.size * 75 + 64)
- self.contents = Bitmap.new(width - 32, height - 32)
- self.y = 160 - height / 2
- self.back_opacity = 160
- self.visible = false
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- x = 4
- self.contents.font.color = normal_color
- cx = contents.text_size(@exp.to_s).width
- self.contents.draw_text(x, 0, cx, 32, @exp.to_s)
- x += cx + 4
- self.contents.font.color = system_color
- cx = contents.text_size("EXP").width
- self.contents.draw_text(x, 0, 64, 32, "EXP")
- x += cx + 16
- self.contents.font.color = normal_color
- cx = contents.text_size(@gold.to_s).width
- self.contents.draw_text(x, 0, cx, 32, @gold.to_s)
- x += cx + 4
- self.contents.font.color = system_color
- self.contents.draw_text(x, 0, 128, 32, $data_system.words.gold)
- #y = 32
- x = 5 #定义战斗结束图标的位置
- for item in @treasures
-
- draw_item_name(item, x, 30)
-
- x += 75
- end
- end
- end
复制代码
版务信息:本贴由楼主自主结贴~ |
|