赞 | 5 |
VIP | 620 |
好人卡 | 38 |
积分 | 69 |
经验 | 125468 |
最后登录 | 2015-7-27 |
在线时间 | 1666 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 6875
- 在线时间
- 1666 小时
- 注册时间
- 2008-10-29
- 帖子
- 6710
|
有颜色的地方是需要自己修改的!
class Game_Battler
def hp=(hp)
@hp = [[hp, maxhp].min, 0].max
# 解除附加的战斗不能状态
for i in 1...$data_states.size
if $data_states.zero_hp
if self.dead?
add_state(i)
if self.is_a?(Game_Actor)
if self.id != 1
character_name = ""
character_hue = 0
battler_name = ""
battler_hue = 0
self.set_graphic(character_name, character_hue,
battler_name, battler_hue)
$game_player.refresh
end
end
else
remove_state(i)
if self.is_a?(Game_Actor)
if self.id != 1
character_name = $data_actors[self.id].character_name
character_hue = $data_actors[self.id].character_hue
battler_name = $data_actors[self.id].battler_name
battler_hue = $data_actors[self.id].battler_hue
self.set_graphic(character_name, character_hue,
battler_name, battler_hue)
$game_player.refresh
end
end
end
end
end
end
end
class Scene_Battle
alias hzhj_start_phase5 start_phase5
def start_phase5
hzhj_start_phase5
for actor in $game_party.actors
if actor.id == 1
if actor.dead?
for i in actor.states
if $data_states.zero_hp
actor.remove_state(i)
actor.hp = 1
end
end
end
end
end
end
end 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|