赞 | 7 |
VIP | 866 |
好人卡 | 185 |
积分 | 32 |
经验 | 130059 |
最后登录 | 2024-12-19 |
在线时间 | 3618 小时 |
Lv3.寻梦者 双子人
- 梦石
- 0
- 星屑
- 3195
- 在线时间
- 3618 小时
- 注册时间
- 2009-4-4
- 帖子
- 4154
|
tallboy8 发表于 2012-9-13 19:38
我是说。怎么样让我想要的一个敌人不显示血条 - # ————————————————————————————————————
- # 本脚本来自www.66rpg.com,转载请保留此信息
- # ————————————————————————————————————
- #==============================================================================
- # ■ Window_Help
- #------------------------------------------------------------------------------
- # 重新定义的内容,可以显示敌人的HP\MP百分比
- # 作者:carol3_柳柳
- #==============================================================================
- class Window_Help < Window_Base
- def set_enemy(actor)
- self.contents.clear
- draw_actor_name(actor, 4, 0)
- draw_actor_state(actor, 140, 0)
- if !actor.is_a(Game_Event) and !true_id(actor.id,[1,2])#这里表示1、2号怪物不显示血条
- carol3_draw_hp_bar(actor, 284, 0)
- carol3_draw_sp_bar(actor, 460, 0)
- end
- @text = nil
- self.visible = true
- end
- def true_id(var = 0,id = [])
- for i in id
- if var == id
- return true
- end
- end
- end
- def carol3_draw_hp_bar(actor, x, y, width = 128) #宽度可调
- self.contents.font.color = system_color
- self.contents.fill_rect(x-1, y+17, width+2,6, Color.new(0, 0, 0, 255))
- w = width * actor.hp / actor.maxhp
- self.contents.fill_rect(x, y+18, w,1, Color.new(255, 96, 96, 255))
- self.contents.fill_rect(x, y+19, w,1, Color.new(255, 0, 0, 255))
- self.contents.fill_rect(x, y+20, w,1, Color.new(128, 0, 0, 255))
- self.contents.fill_rect(x, y+21, w,1, Color.new(0, 0, 0, 255))
- self.contents.draw_text(x,y,128,32,$data_system.words.hp,1)
- self.contents.font.color = normal_color
- end
- def carol3_draw_sp_bar(actor, x, y, width = 128)
- self.contents.font.color = system_color
- self.contents.fill_rect(x-1, y+17, width+2,6, Color.new(0, 0, 0, 255))
- w = width * actor.sp / actor.maxsp
- self.contents.fill_rect(x, y+18, w,1, Color.new(128, 255, 255, 255))
- self.contents.fill_rect(x, y+19, w,1, Color.new(0, 255, 255, 255))
- self.contents.fill_rect(x, y+20, w,1, Color.new(0, 192, 192, 255))
- self.contents.fill_rect(x, y+21, w,1, Color.new(0, 128, 128, 255))
- self.contents.draw_text(x,y,128,32,$data_system.words.sp,1)
- self.contents.font.color = normal_color
- end
- end
复制代码 我稍微做了修改,满意了吧。
if !actor.is_a(Game_Event) and !true_id(actor.id,[1,2])#这里表示1、2号怪物不显示血条 |
评分
-
查看全部评分
|