这个教程没有什么很复杂的地方,用到的脚本多为在论坛收集的,适合于我这样脚本入门者,对自己会写脚本的人没有什么价值。因为自己也是新手,所以有什么错误尽管提出,不要拍我T_T.里面的教程和教程1附送了两个菜单(请先看范例的文档,范例1的文档讲的比较粗),自己到现在就做过两菜单,结果都没用上,呵呵 看这篇教程之前建议先看一下这几个新手教程: 天狼星的赠于新手们的修改脚本的教程:http://bbs.66rpg.com/web/htm/news671.htm Frantice的跟我从头学脚本:http://bbs.66rpg.com/web/htm/news577.htm 小雨的血槽绘制:http://bbs.66rpg.com/web/htm/news756.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
QQ:406550835
图片:
范例
|