Project1

标题: 怒气槽-__-~~ [打印本页]

作者: zhong    时间: 2007-1-31 02:38
标题: 怒气槽-__-~~
注:这帖基本与高手无关,请无视之!

其实这东西源自这个教学http://rpg.blue/web/htm/news534.htm,就是给它加了个怒气槽!当角色挨打时怒气就会上升,如图:



其实黑暗圣剑里也有类似的东西,不过当时我看不懂没学,最近刚弄懂了怎么绘画血条,所以就试了下!这个纯属瞎弄,绝对可以无视,应该没什么bug吧{/gg}。。。。。
范例下载地址:http://rpg.blue/upload_program/files/怒气槽.rar(貌似过期了,再上传一次~~~)

上面的两幅图,一个是我自己绘的,一个是仿那个桜雅 & 和希的,默认的是仿桜雅 & 和希的,如果要看那个我自绘的可以把Window_BattleStatus里
draw_hp_store_bar2(actor, actor_x-40,113)
2去掉!

{/gg}其实这个范例就是在window_Base里加了这么一段
#---------------------------------------------------------------------------
#★描绘怒气槽
#--------------------------------------------------------------------------
def draw_hp_store_bar(actor,x,y)
  width = 100
  w = actor.hp_store
  white = Color.new(225,225,225,225)
  black = Color.new(0,0,0,200)
  self.contents.font.color = Color.new(225,-215,-225,200)
  #描绘白色框条
  self.contents.fill_rect(x+40,y,width,1,white)
  self.contents.fill_rect(x+40,y+12, width, 1,white)
  self.contents.fill_rect(x+40,y,1,12,white)
  self.contents.fill_rect(x+139,y,1,12,white)
#描绘黑色条
    self.contents.fill_rect(x+42,y+2,width-4,10,black)
#描绘怒气槽
    val = 245*actor.hp_store/100
    green = 255 - val
    blue = 255 - val
    color = Color.new(255,green,blue,200)
    top_color = Color.new(255,green+10,blue+20,200)
    back_color = Color.new(255,green-10,blue-10,200)
    self.contents.fill_rect(x+41,y+5,w-2,3,color)
    self.contents.fill_rect(x+41,y+1,w-2,4,top_color)
    self.contents.fill_rect(x+41,y+7,w-2,5,back_color)
    #描绘文字
    self.contents.draw_text(x+120,y-10,20,20,"怒")
end
#-------------------------------------------------------------------------
#★描绘怒气槽·版本2(仿桜雅)
#--------------------------------------------------------------------------
def draw_hp_store_bar2(actor,x,y)
  width = 100
  w = actor.hp_store
  #描绘白色框条
  self.contents.fill_rect(x+39,y,width+1,1,Color.new(225,225,225,200))
  self.contents.fill_rect(x+39,y+5,width+2,1,Color.new(225,225,225,200))
  self.contents.fill_rect(x+39,y,1,5,Color.new(225,225,225,200))
  self.contents.fill_rect(x+140,y,1,5,Color.new(225,225,225,200))
  #描绘黑色条
    self.contents.fill_rect(x+40,y+1,width,4,Color.new(0,0,0,200))
  #描绘怒气槽
  self.contents.fill_rect(x+40, y+1, w,1, Color.new(255, 96, 96, 255))
  self.contents.fill_rect(x+40, y+2, w,1, Color.new(255, 0, 0, 255))
  self.contents.fill_rect(x+40, y+3, w,1, Color.new(128, 0, 0, 255))
  self.contents.fill_rect(x+40, y+4, w,1, Color.new(0, 0, 0, 255))
  
end  
,然后在Window_BattleStatus里加个draw_hp_store_bar2(actor, actor_x-40,113)就行了!!!
作者: zhong    时间: 2007-1-31 02:38
标题: 怒气槽-__-~~
注:这帖基本与高手无关,请无视之!

其实这东西源自这个教学http://rpg.blue/web/htm/news534.htm,就是给它加了个怒气槽!当角色挨打时怒气就会上升,如图:



其实黑暗圣剑里也有类似的东西,不过当时我看不懂没学,最近刚弄懂了怎么绘画血条,所以就试了下!这个纯属瞎弄,绝对可以无视,应该没什么bug吧{/gg}。。。。。
范例下载地址:http://rpg.blue/upload_program/files/怒气槽.rar(貌似过期了,再上传一次~~~)

上面的两幅图,一个是我自己绘的,一个是仿那个桜雅 & 和希的,默认的是仿桜雅 & 和希的,如果要看那个我自绘的可以把Window_BattleStatus里
draw_hp_store_bar2(actor, actor_x-40,113)
2去掉!

{/gg}其实这个范例就是在window_Base里加了这么一段
#---------------------------------------------------------------------------
#★描绘怒气槽
#--------------------------------------------------------------------------
def draw_hp_store_bar(actor,x,y)
  width = 100
  w = actor.hp_store
  white = Color.new(225,225,225,225)
  black = Color.new(0,0,0,200)
  self.contents.font.color = Color.new(225,-215,-225,200)
  #描绘白色框条
  self.contents.fill_rect(x+40,y,width,1,white)
  self.contents.fill_rect(x+40,y+12, width, 1,white)
  self.contents.fill_rect(x+40,y,1,12,white)
  self.contents.fill_rect(x+139,y,1,12,white)
#描绘黑色条
    self.contents.fill_rect(x+42,y+2,width-4,10,black)
#描绘怒气槽
    val = 245*actor.hp_store/100
    green = 255 - val
    blue = 255 - val
    color = Color.new(255,green,blue,200)
    top_color = Color.new(255,green+10,blue+20,200)
    back_color = Color.new(255,green-10,blue-10,200)
    self.contents.fill_rect(x+41,y+5,w-2,3,color)
    self.contents.fill_rect(x+41,y+1,w-2,4,top_color)
    self.contents.fill_rect(x+41,y+7,w-2,5,back_color)
    #描绘文字
    self.contents.draw_text(x+120,y-10,20,20,"怒")
end
#-------------------------------------------------------------------------
#★描绘怒气槽·版本2(仿桜雅)
#--------------------------------------------------------------------------
def draw_hp_store_bar2(actor,x,y)
  width = 100
  w = actor.hp_store
  #描绘白色框条
  self.contents.fill_rect(x+39,y,width+1,1,Color.new(225,225,225,200))
  self.contents.fill_rect(x+39,y+5,width+2,1,Color.new(225,225,225,200))
  self.contents.fill_rect(x+39,y,1,5,Color.new(225,225,225,200))
  self.contents.fill_rect(x+140,y,1,5,Color.new(225,225,225,200))
  #描绘黑色条
    self.contents.fill_rect(x+40,y+1,width,4,Color.new(0,0,0,200))
  #描绘怒气槽
  self.contents.fill_rect(x+40, y+1, w,1, Color.new(255, 96, 96, 255))
  self.contents.fill_rect(x+40, y+2, w,1, Color.new(255, 0, 0, 255))
  self.contents.fill_rect(x+40, y+3, w,1, Color.new(128, 0, 0, 255))
  self.contents.fill_rect(x+40, y+4, w,1, Color.new(0, 0, 0, 255))
  
end  
,然后在Window_BattleStatus里加个draw_hp_store_bar2(actor, actor_x-40,113)就行了!!!
作者: 神思    时间: 2007-1-31 05:00
呵呵`支持一下``~~``````
作者: 絮儿    时间: 2007-1-31 05:14
好棒好棒~LZ进步好快哒~ (画圈圈ing)

同支持呀~{/tp}
作者: 风雪优游    时间: 2007-1-31 05:24
虽然看了但还是不会的人支持一个 !
作者: ⑩字绯影    时间: 2007-1-31 18:55
嗯~战士用怒气槽 贼用能量槽 其他的用蓝槽....谢谢
作者: K’    时间: 2007-1-31 18:58
以下引用⑩字绯影于2007-1-31 10:55:09的发言:

嗯~战士用怒气槽 贼用能量槽 其他的用蓝槽....谢谢

教学里有说到按职业的属性有效度来分开不同的槽的{/wx}
作者: え影の騲葉    时间: 2007-1-31 19:01
提示: 作者被禁止或删除 内容自动屏蔽
作者: 嫁衣    时间: 2007-1-31 20:03
以下引用风雪优游于2007-1-30 21:24:22的发言:

虽然看了但还是不会的人支持一个 !

很好的效果~~楼主辛苦鸟~~~
作者: zhong    时间: 2007-2-1 01:26
{/pz}其实这东西没什么技术含量,只是在那篇教学的基础上绘画了个槽(也就是刚学的胡弄一下)~~~~看到大家的话,真的惭愧万分~~~~~~{/gg}
作者: 火鸡三毛老大    时间: 2007-3-13 03:46
这个不错
作者: yukimura    时间: 2007-3-14 10:16
提示: 作者被禁止或删除 内容自动屏蔽
作者: 沉默的米饭团    时间: 2007-3-14 16:54
這個好東西{/tp}
作者: 西门吹雪    时间: 2007-3-15 23:47
恩,不错,也可以愤怒到头直接暴击,再恢复
作者: gpra8764    时间: 2007-3-16 03:33
提示: 作者被禁止或删除 内容自动屏蔽
作者: zhong    时间: 2007-3-16 03:49
以下引用gpra8764于2007-3-15 19:33:18的发言:
楼主不用谦虚啦,至少这也是要付出心血的,鼓励下。

呵呵~~~这东西已经沉底了很长时间~~{/pz}想不到~~多谢版主的鼓励~~~{/gg}惭愧惭愧~~~~~~
作者: 废柴废柴君    时间: 2007-3-18 04:14
提示: 作者被禁止或删除 内容自动屏蔽
作者: 十二月夜    时间: 2007-3-18 20:31
似乎已经下载不能了~~
作者: 子阳    时间: 2008-5-3 01:06
提示: 作者被禁止或删除 内容自动屏蔽
作者: 西江月    时间: 2008-5-3 02:22
谢谢楼主~~这个系统加上去之后战斗就没那么单调了!
作者: 莱恩哈特    时间: 2008-5-24 00:10
提示: 作者被禁止或删除 内容自动屏蔽
作者: holy    时间: 2009-8-27 18:04
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1