赞 | 0 |
VIP | 7 |
好人卡 | 0 |
积分 | 1 |
经验 | 1000 |
最后登录 | 2014-10-15 |
在线时间 | 82 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 82 小时
- 注册时间
- 2006-1-28
- 帖子
- 996
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
http://rpg.blue/web/htm/news842.htm
范例一里面描绘EXP有点问题,等级太高会报错,解决办法是:
window_Base下的EXPメーター の描画,改成以下内容
- #--------------------------------------------------------------------------
- # ● EXPメーター の描画
- #--------------------------------------------------------------------------
- def EXP(actor,x,y,w=96)
- if actor.next_exp != 0
- self.contents.fill_rect(x-2,y+20,w+4,11,Color.new(255,255,255,255))
- self.contents.fill_rect(x-1,y+21,w+2,9,Color.new(0,0,0,255))
- w1 = w * actor.now_exp/actor.next_exp
- self.contents.fill_rect(x-1,y+21,w1,1,Color.new(0,120,210,255))
- self.contents.fill_rect(x-1,y+22,w1,1,Color.new(0,120,230,255))
- self.contents.fill_rect(x-1,y+23,w1,1,Color.new(0,120,250,255))
- self.contents.fill_rect(x-1,y+24,w1,1,Color.new(0,120,270,255))
- self.contents.fill_rect(x-1,y+25,w1,1,Color.new(0,125,290,255))
- self.contents.fill_rect(x-1,y+26,w1,1,Color.new(0,120,270,255))
- self.contents.fill_rect(x-1,y+27,w1,1,Color.new(0,120,250,255))
- self.contents.fill_rect(x-1,y+28,w1,1,Color.new(0,120,230,255))
- self.contents.fill_rect(x-1,y+29,w1,1,Color.new(0,120,210,255))
- else
- self.contents.fill_rect(x-2,y+20,w+4,11,Color.new(255,255,255,255))
- self.contents.fill_rect(x-1,y+21,w+2,9,Color.new(0,0,0,255))
- self.contents.fill_rect(x-1,y+21,w+2,1,Color.new(0,120,210,255))
- self.contents.fill_rect(x-1,y+22,w+2,1,Color.new(0,120,230,255))
- self.contents.fill_rect(x-1,y+23,w+2,1,Color.new(0,120,250,255))
- self.contents.fill_rect(x-1,y+24,w+2,1,Color.new(0,120,270,255))
- self.contents.fill_rect(x-1,y+25,w+2,1,Color.new(0,125,290,255))
- self.contents.fill_rect(x-1,y+26,w+2,1,Color.new(0,120,270,255))
- self.contents.fill_rect(x-1,y+27,w+2,1,Color.new(0,120,250,255))
- self.contents.fill_rect(x-1,y+28,w+2,1,Color.new(0,120,230,255))
- self.contents.fill_rect(x-1,y+29,w+2,1,Color.new(0,120,210,255))
- end
- end
复制代码 |
|