class Scene_Map
Window_HUD_SWITCH_ID = 150 ############################开关,打开时显示窗口
alias raz_hud_main main
alias raz_hud_update update
def main
@hud_window = Window_HUD.new
raz_hud_main
@hud_window.dispose
end
def update
@hud_window.visible = $game_switches[Window_HUD_SWITCH_ID] ? true : false
actor = $game_actors[5]#######################角色ID
actor = $game_actors[1]#######################角色ID
maptemp = [actor.hp,actor.str,actor.dex,actor.class_id]
for i in 4..5
if $hudtemp != maptemp then
@hud_window.refresh
@hud_window.update
end
end
raz_hud_update
end
end