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
srwjrevenger 发表于 2024-7-29 11:57
应该是你把 each do 的end当成 if的end,
少了一个end后导致开关关闭时刷新没有内容可执行,
试试在zhen_upd ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |