赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 5024 |
最后登录 | 2017-3-15 |
在线时间 | 55 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 55 小时
- 注册时间
- 2014-5-12
- 帖子
- 59
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 [email protected] 于 2014-7-23 22:10 编辑
- 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)
- 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,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
复制代码 这个是获取金钱提示的脚本,我要怎么改才能将 变量 61 的值也提示呢!我设置的变量61是 另一金钱,这个提示要怎么改!亲!现在还有人在吗??
class Window_Bianliangci < Window_Base #-------------------------------------------------------------------------- # ● 初始化对像 #-------------------------------------------------------------------------- def initialize super(0, 0, 300, 100) self.contents = Bitmap.new(width - 32, height - 32) self.windowskin = Bitmap.new(1,1) refresh end #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh self.contents.clear self.contents.font.color = system_color self.contents.draw_text(4, 35, 120, 32, "银两:") self.contents.font.color = normal_color #self.contents.draw_text(105, 35, 120, 32, $game_variables[61].to_s) ci = $game_variables[61] text = ci >= 10000 ? (ci / 10000).to_s + " W " + (ci - ((ci / 10000)*10000)).to_s : ci.to_s self.contents.draw_text(65, 35, 120, 32,text) end end
class Window_Bianliangci < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(0, 0, 300, 100)
self.contents = Bitmap.new(width - 32, height - 32)
self.windowskin = Bitmap.new(1,1)
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 35, 120, 32, "银两:")
self.contents.font.color = normal_color
#self.contents.draw_text(105, 35, 120, 32, $game_variables[61].to_s)
ci = $game_variables[61]
text = ci >= 10000 ? (ci / 10000).to_s + " W " + (ci - ((ci / 10000)*10000)).to_s : ci.to_s
self.contents.draw_text(65, 35, 120, 32,text)
end
end
这个是61号变量的脚本。 |
评分
-
查看全部评分
|