Inverse Lua bool via trigger
Posted: Fri Jul 01, 2022 12:01 am
Hi, just a quick question.
I'm trying to do a multidirectional trigger for fading in and out audio and I am trying to get the Dialogue System Trigger to invert a boolean variable via Lua.
I've tried these methods in the run Lua code section but all of them don't seem to change the boolean:
I was wondering if there is another way for such a method to work?
I'm trying to do a multidirectional trigger for fading in and out audio and I am trying to get the Dialogue System Trigger to invert a boolean variable via Lua.
I've tried these methods in the run Lua code section but all of them don't seem to change the boolean:
Code: Select all
Variable["Astromall.DowntownBGM"] ~= Variable["Astromall.DowntownBGM"]
Code: Select all
Variable["Astromall.DowntownBGM"] = ~Variable["Astromall.DowntownBGM"]