查看: 2070|回复: 4

[已经解决] 求教关于第二货币。。。

[复制链接]
梦石
0
星屑
50
在线时间
102 小时
注册时间
2013-10-12
回帖
8
发表于 2014-5-3 12:55:56 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
[pre lang="ruby" line="1"]#==============================================================================
# ■ Window_Gold
#------------------------------------------------------------------------------
#  显示金钱的窗口。
#==============================================================================

class Window_Gold < Window_Base
#--------------------------------------------------------------------------
# ● 初始化窗口
#--------------------------------------------------------------------------
def initialize
   #===========================================
   # ★ 修改过的地方
   #===========================================
   super(0, 0, 160, 96)
   #===========================================
   # ★ 修改过的地方完
   #===========================================
   self.contents = Bitmap.new(width - 32, height - 32)
   refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
   self.contents.clear
   cx = contents.text_size($data_system.words.gold).width
   self.contents.font.color = normal_color
   self.contents.draw_text(4, 0, 120-cx-2, 32, $game_party.gold.to_s, 2)
   self.contents.font.color = system_color
   self.contents.draw_text(124-cx, 0, cx, 32, $data_system.words.gold, 2)
   #===========================================
   # ★ 修改过的地方
   #===========================================
   cx = contents.text_size("灵魄").width
   self.contents.font.color = normal_color
   self.contents.draw_text(4, 32, 120-cx-2, 32, $game_variables[44].to_s, 2)
   self.contents.font.color = system_color
   self.contents.draw_text(124-cx, 32, cx, 32, "灵魄" , 2)
   #===========================================
   # ★ 修改过的地方完
   #===========================================
end
end[/pre]


设置了之后怎么才能在游戏中得到和使用这种货币呢。
梦石
0
星屑
50
在线时间
102 小时
注册时间
2013-10-12
回帖
8
 楼主| 发表于 2014-5-3 15:47:17 | 显示全部楼层
啊,明白了。谢谢
回复

使用道具 举报

梦石
0
星屑
50
在线时间
102 小时
注册时间
2013-10-12
回帖
8
 楼主| 发表于 2014-5-3 15:46:07 | 显示全部楼层
天地有正气 发表于 2014-5-3 14:02
第44号变量就是这个货币。

那怎么改呢
回复

使用道具 举报

○赛

梦石
0
星屑
1254
在线时间
1276 小时
注册时间
2013-1-22
回帖
2078

贵宾

发表于 2014-5-3 14:02:55 | 显示全部楼层
第44号变量就是这个货币。
回复

使用道具 举报

梦石
0
星屑
50
在线时间
102 小时
注册时间
2013-10-12
回帖
8
 楼主| 发表于 2014-5-3 13:15:26 | 显示全部楼层
初学脚本,就教。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部