Hi! :hhappy:
I was wondering if there's a way after the player beats the final boss, if I can change the Swap enemies based on a switch or variable, so lets say:
<Swap: 5, 6, 7, 8, 9>
*Player defeats final boss*
Switch 200 Flips on
<Swap: 5, 6, 7, 8, 9, 10, 11, 12>
So I took a look at YEP_SwapEnemies and it looks like it loads all the notetag data once at game initialization and might not ever again after that. In that case, this is going to require a script to manually pass a new $dataEnemies object into the DataManager.processSwENotetagsE function when you flip your bossDefeated switch.
It's not clear to me from your first post exactly what you're trying to do.
Are you trying to change what will happen in the current battle if you defeat the boss first? Are you trying to make defeating the boss change what happens in other troops?
Either way, as AquaEcho said, notetags are tied to database entries. So you can't change them once a game has started, and if you do overwrite the values they'll reset when you launch the game again.
A better way is to change the actual enemies being used once that switch is flipped. If that's during the boss battle you can transform the enemies to another version. If it's something that happens in the game after the boss is defeated, you can use conditional encounters to change which troops/enemies get loaded.