赞 | 0 |
VIP | 1 |
好人卡 | 28 |
积分 | 10 |
经验 | 59980 |
最后登录 | 2024-10-19 |
在线时间 | 1685 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 951
- 在线时间
- 1685 小时
- 注册时间
- 2009-7-25
- 帖子
- 534
|
总感觉这脚本很眼熟=.=- class Scene_Map < Scene_Base
- alias hpmpwindow_start start
- def start
- hpmpwindow_start
- @hpmpwindow = Window_Base.new(0, 316, 544, 100) #变大点……
- end
- alias hpmpwindow_update update
- def update
-
- t_flag=0
-
- for i in 0..($game_party.members.size <= 4 ? $game_party.members.size-1: 3)
- actor = $game_party.members[i]
- if @temp_hp != actor.hp or @temp_mp != actor.mp
-
- t_flag = t_flag + 1
-
- end
-
- end
-
-
- if t_flag >0 #某人hp增减了
- @hpmpwindow.contents.clear #清空循环重画所有人的血条
-
- for i in 0..($game_party.members.size <= 4 ? $game_party.members.size-1: 3)
- actor = $game_party.members[i]
-
- @hpmpwindow.draw_actor_hp(actor, i*136, 17, width = 100)
- @hpmpwindow.draw_actor_mp(actor, i*136, 39, width = 100)
- @hpmpwindow.draw_actor_name(actor, i*136+20, 0)
-
- end
-
- t_flag = 0
-
- end
- @hpmpwindow.update
- hpmpwindow_update
- end
- alias hpmpwindow_terminate terminate
- def terminate
- @hpmpwindow.dispose
- hpmpwindow_terminate
- end
- end
复制代码 |
|