查看: 1366|回复: 1

帮忙在我这个教程的发布页里面加个说明,谢谢

  [复制链接]
梦石
0
星屑
50
在线时间
82 小时
注册时间
2006-1-28
回帖
852
发表于 2008-10-5 18:34:21 | 显示全部楼层 |阅读模式

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

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

×
http://rpg.blue/web/htm/news842.htm
范例一里面描绘EXP有点问题,等级太高会报错,解决办法是:
window_Base下的EXPメーター の描画,改成以下内容


  1.   #--------------------------------------------------------------------------
  2.   # ● EXPメーター の描画
  3.   #--------------------------------------------------------------------------
  4.   def EXP(actor,x,y,w=96)
  5.     if actor.next_exp != 0
  6.   self.contents.fill_rect(x-2,y+20,w+4,11,Color.new(255,255,255,255))
  7.   self.contents.fill_rect(x-1,y+21,w+2,9,Color.new(0,0,0,255))
  8.     w1 = w * actor.now_exp/actor.next_exp
  9.   self.contents.fill_rect(x-1,y+21,w1,1,Color.new(0,120,210,255))
  10.   self.contents.fill_rect(x-1,y+22,w1,1,Color.new(0,120,230,255))
  11.   self.contents.fill_rect(x-1,y+23,w1,1,Color.new(0,120,250,255))
  12.   self.contents.fill_rect(x-1,y+24,w1,1,Color.new(0,120,270,255))
  13.   self.contents.fill_rect(x-1,y+25,w1,1,Color.new(0,125,290,255))
  14.   self.contents.fill_rect(x-1,y+26,w1,1,Color.new(0,120,270,255))
  15.   self.contents.fill_rect(x-1,y+27,w1,1,Color.new(0,120,250,255))
  16.   self.contents.fill_rect(x-1,y+28,w1,1,Color.new(0,120,230,255))
  17.   self.contents.fill_rect(x-1,y+29,w1,1,Color.new(0,120,210,255))
  18. else
  19.   self.contents.fill_rect(x-2,y+20,w+4,11,Color.new(255,255,255,255))
  20.   self.contents.fill_rect(x-1,y+21,w+2,9,Color.new(0,0,0,255))
  21.   self.contents.fill_rect(x-1,y+21,w+2,1,Color.new(0,120,210,255))
  22.   self.contents.fill_rect(x-1,y+22,w+2,1,Color.new(0,120,230,255))
  23.   self.contents.fill_rect(x-1,y+23,w+2,1,Color.new(0,120,250,255))
  24.   self.contents.fill_rect(x-1,y+24,w+2,1,Color.new(0,120,270,255))
  25.   self.contents.fill_rect(x-1,y+25,w+2,1,Color.new(0,125,290,255))
  26.   self.contents.fill_rect(x-1,y+26,w+2,1,Color.new(0,120,270,255))
  27.   self.contents.fill_rect(x-1,y+27,w+2,1,Color.new(0,120,250,255))
  28.   self.contents.fill_rect(x-1,y+28,w+2,1,Color.new(0,120,230,255))
  29.   self.contents.fill_rect(x-1,y+29,w+2,1,Color.new(0,120,210,255))
  30.   end
  31. end
复制代码
头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-2-20
回帖
75
发表于 2008-10-5 18:39:33 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部