查看: 1502|回复: 1

[已经过期] 谁来帮个忙,转换一下脚本?

  [复制链接]
梦石
0
星屑
50
在线时间
5 小时
注册时间
2007-12-15
回帖
40
发表于 2009-8-10 10:54:57 | 显示全部楼层 |阅读模式

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

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

×
#==============================================================================
# ■ Window_Gold
#------------------------------------------------------------------------------
#  显示金钱的窗口。
#==============================================================================

class Window_Gold < Window_Base
  #--------------------------------------------------------------------------
  # ● 初始化窗口
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 160, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def money(n)
    gold =  n/100
    silver = (n%100)/10
    copper = n%10
    return gold, silver, copper
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.color = normal_color
    main_money = money($game_party.gold)
    text = main_money[2].to_s + "铜"
    text = main_money[1].to_s + "银" + text if main_money[1] > 0 and main_money[0] > 0
    text = main_money[0].to_s + "金" + text if main_money[0] > 0
    self.contents.draw_text(4, 0, 120-2, 32, text, 2)
  end
end



把它转换成VX的

八云紫的式神<

梦石
0
星屑
833
在线时间
1260 小时
注册时间
2008-1-1
回帖
3889

烫烫烫

发表于 2009-8-10 12:12:37 | 显示全部楼层
好象没有什么地方需要转换的样子……
嗯……Game_Party里应该还有一部分定义
rm for linux(wine)制作中,期待夏娜SAMA能实现到webrm上
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部