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!
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!