Project1
标题:
谁来帮个忙,转换一下脚本?
[打印本页]
作者:
hjkk
时间:
2009-8-10 10:54
标题:
谁来帮个忙,转换一下脚本?
#==============================================================================
# ■ 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的
作者:
zh99998
时间:
2009-8-10 12:12
好象没有什么地方需要转换的样子……
嗯……Game_Party里应该还有一部分定义
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1