After I checked some RPG maker's plot editing solutions, and they didn't bring about huge changes, I finally realized what we needed.
https://forums.rpgmakerweb.com/index.php?threads/ink-integration.125857/
https://silentbalanceyh.itch.io/rpg-maker-mz-smart-playbook-plugin
A visual, intuitive, automatic storyline generation solution. By checking the "Transfer player" event command, you can find out which variable switches are preventing players from seeing the final boss.