查看: 1256|回复: 1

[已经解决] 求一个显血脚本貌似叫什么KW脚本以前电脑有的不知道怎么呢没呢

  [复制链接]
梦石
0
星屑
65
在线时间
10 小时
注册时间
2011-9-6
回帖
9
发表于 2011-11-21 14:33:31 | 显示全部楼层 |阅读模式

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

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

×
梦石
0
星屑
597
在线时间
374 小时
注册时间
2011-10-11
回帖
256
发表于 2011-11-21 14:39:12 | 显示全部楼层
  1. class Window_Help < Window_Base
  2. def set_enemy(actor)
  3.     self.contents.clear
  4.     draw_actor_name(actor, 4, 0)
  5.     draw_actor_state(actor, 140, 0)
  6.     carol3_draw_hp_bar(actor, 284, 0)
  7.     carol3_draw_sp_bar(actor, 460, 0)
  8.     @text = nil
  9.     self.visible = true
  10. end
  11. def carol3_draw_hp_bar(actor, x, y, width = 128) #宽度可调
  12.     self.contents.font.color = system_color
  13.     w = width * actor.hp / [actor.maxhp,1].max
  14.     if actor.maxhp != 0
  15.       rate = actor.hp.to_f / actor.maxhp
  16.     else
  17.       rate = 0
  18.     end
  19.     color1 = Color.new(240 - 72 * rate, 240 * rate, 62 * rate, 150)
  20.     self.contents.fill_rect(x+1, y+15, width+2,1, Color.new(0, 0, 0, 255))
  21.     self.contents.fill_rect(x+1, y+16, width+2,1, Color.new(255, 255, 192, 192))
  22.     self.contents.fill_rect(x+1, y+17, w,6,color1)
  23.     self.contents.fill_rect(x+1, y+23, width+2,1, Color.new(255, 255, 192, 192))
  24.     self.contents.fill_rect(x+1, y+24, width+2,1, Color.new(0, 0, 0, 255))
  25.     self.contents.fill_rect(x, y+16, 1,8, Color.new(255, 255, 192, 192))
  26.     self.contents.fill_rect(x-1, y+15, 1,10, Color.new(0, 0, 0, 255))
  27.     self.contents.fill_rect(x+129, y+16, 1,8, Color.new(255, 255, 192, 192))
  28.     self.contents.fill_rect(x+130, y+15, 1,10, Color.new(0, 0, 0, 255))
  29.     self.contents.draw_text(x-53,y,128,32,$data_system.words.hp,1)
  30.     if actor.hp>actor.maxhp/3
  31.       self.contents.font.color = Color.new(255, 255, 255, 250)
  32.     end
  33.     if actor.hp>=actor.maxhp/6 and actor.maxhp/3>actor.hp
  34.       self.contents.font.color = Color.new(200, 200, 0, 255)
  35.     end
  36.     if actor.maxhp/6>actor.hp
  37.       self.contents.font.color = Color.new(200, 0, 0, 255)
  38.     end
  39.     self.contents.draw_text(x+47,y,128,32,actor.hp.to_s,1)
  40. end
  41. def carol3_draw_sp_bar(actor, x, y, width = 128)
  42.     self.contents.font.color = system_color
  43.     if actor.maxsp != 0
  44.       rate = actor.sp.to_f / actor.maxsp
  45.     else
  46.       rate = 0
  47.     end
  48.     color2 = Color.new(62 * rate, 240 - 72 * rate, 240 * rate, 192)
  49.     w = width * actor.sp / [actor.maxsp,1].max
  50.     self.contents.fill_rect(x+1, y+15, width+2,1, Color.new(0, 0, 0, 255))
  51.     self.contents.fill_rect(x+1, y+16, width+2,1, Color.new(255, 255, 192, 192))
  52.     self.contents.fill_rect(x+1, y+17, w,6,color2)
  53.     self.contents.fill_rect(x+1, y+23, width+2,1, Color.new(255, 255, 192, 192))
  54.     self.contents.fill_rect(x+1, y+24, width+2,1, Color.new(0, 0, 0, 255))
  55.     self.contents.fill_rect(x, y+16, 1,8, Color.new(255, 255, 192, 192))
  56.     self.contents.fill_rect(x-1, y+15, 1,10, Color.new(0, 0, 0, 255))
  57.     self.contents.fill_rect(x+129, y+16, 1,8, Color.new(255, 255, 192, 192))
  58.     self.contents.fill_rect(x+130, y+15, 1,10, Color.new(0, 0, 0, 255))
  59.     self.contents.draw_text(x-53,y,128,32,$data_system.words.sp,1)
  60.     if actor.hp>actor.maxsp/3
  61.       self.contents.font.color = Color.new(255, 255, 255, 250)
  62.     end
  63.     if actor.hp>=actor.maxsp/6 and actor.maxsp/3>actor.sp
  64.       self.contents.font.color = Color.new(200, 200, 0, 255)
  65.     end
  66.     if actor.maxsp/6>actor.sp
  67.       self.contents.font.color = Color.new(200, 0, 0, 255)
  68.     end
  69.     self.contents.draw_text(x+47,y,128,32,actor.sp.to_s,1)
  70. end
  71. end
复制代码
你说的可是这段脚本?


月下黄昏于2011-11-21 17:01补充以下内容:
补充下:其实这段脚本你大可不必发帖提问。你只要在搜索栏上打关于血量的脚本就有大可不必如此动神
啊我多嘴啦!


LL0077330
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部