本帖最后由 chen12311 于 2024-7-9 16:37 编辑
代码如下
module Zhen SWITCH=19 end class Scene_Battle < Scene_Base alias zhen_update update def update if $game_switches[Zhen::SWITCH] if Graphics.frame_count % 1 == 0 $game_party.members.each do |actor| actor.hp -= 50 end @status_window.refresh end zhen_update end end end
module Zhen
SWITCH=19
end
class Scene_Battle < Scene_Base
alias zhen_update update
def update
if $game_switches[Zhen::SWITCH]
if Graphics.frame_count % 1 == 0
$game_party.members.each do |actor|
actor.hp -= 50
end
@status_window.refresh
end
zhen_update
end
end
end
|