设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1168|回复: 1
打印 上一主题 下一主题

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

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
5 小时
注册时间
2007-12-15
帖子
49
跳转到指定楼层
1
发表于 2009-8-10 10:54:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
#==============================================================================
# ■ 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的

Lv2.观梦者 (管理员)

八云紫的式神

梦石
0
星屑
549
在线时间
1243 小时
注册时间
2008-1-1
帖子
4282

烫烫烫

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

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-12 02:12

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表