赞 | 406 |
VIP | 0 |
好人卡 | 11 |
积分 | 390 |
经验 | 242285 |
最后登录 | 2024-11-15 |
在线时间 | 5717 小时 |
Lv5.捕梦者
- 梦石
- 0
- 星屑
- 39016
- 在线时间
- 5717 小时
- 注册时间
- 2006-11-10
- 帖子
- 6619
|
很好,我又漏了一个地方没填,难怪敌人看不到三个豆....
战斗时敌HP、MP显示 这个脚本,用下面的覆盖掉就解决了
- #==============================================================================
- # 本脚本来自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)
- carol3_draw_hp_bar(actor, 284, 0)
- carol3_draw_sp_bar(actor, 378, 0)
- if $game_switches[TP_VISIBLE] and ENEMY_TP
- 添槽("TP血条",actor.tp % 1000,1000,500,14)
- 添槽("水晶体3",actor.tp / 1000,3,456,14)
- end
- @text = nil
- self.visible = true
- end
- def carol3_draw_hp_bar(actor, x, y, width = 64) #宽度可调
- 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,1].max
- 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-24,y,128,32,$data_system.words.hp)
- self.contents.font.color = normal_color
- end
- def carol3_draw_sp_bar(actor, x, y, width = 64)
- 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,1].max
- 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-24,y,128,32,$data_system.words.sp)
- self.contents.font.color = normal_color
- end
- end
- #==============================================================================
- # 本脚本来自www.66RPG.com,使用和转载请保留此信息
- #==============================================================================
-
复制代码 |
|