Refresh Choices

Hi everyone.


Here's what's happening now:


- I've created a choices window that players can open at any time by pressing E using YEP Button Common Events.


- The choices are populated using the show/hide choice parameters from YEP Extended Message Pack 1 and switches.


- I've written a plugin that allows the player to move around while a choices window is open


- If the player triggers an event that turns on a switch attached to a new choice, it won't show up until the choices window is closed and reopened


What I want to make happen:


- Refresh the choices window if the player currently has it open after triggering a switch that enables a new choice.


I'm just not sure how to go about this. My first thought was to have any event that triggers a new choice to also close the choices and call the common event to open it again, but I can't seem to get the script syntax right.


Thank you in advance!
This might help you out http://mvplugins.com/plugin/HimeWorks/HimeWorks%20-%20Hidden%20Choice%20Conditions
I could give it a try, but I worry I'll have the same problem. The issue isn't the ability to hide and show choices. That I've got covered.


It's making the new choices show up while the choice window is still open.

Original thread: https://forums.rpgmakerweb.com/threads/refresh-choices.61127/