I have two local scripts that I am using to interact with a dialog. The first(OpenGuardStatus.txt) is located in the root of the project and opens the dialog based on the value of two variables. The second(CloseGuardStatus.txt) is located inside the dialog and sets one of the aforementioned variables to 1 when the dialog is opened and 0 when the dialog is closed.
When I add either of the local scripts to the projects individually, they work as intended. However when they are both added, they only work a single time. After that the dialog no longer opens and I can't change the value of one of the variables.
For reference, I'm currently using two virtual variables but I will eventually migrate to PLC variables after I get this working. I have both of the variables tied to toggle buttons so I can set/observe value changes.
Any advice would be greatly appreciated.