☺️ the d+ part of the match is looking for number(s). $gameVariables.value(1) is a string when you're checking it so isn't what the match is looking for. you could just call $gameVariables.value(1) and convert the result to a string since you're using javascript at the moment, something like this:
let text = "yay! again! \SW[" + $gameVariables.value(1) + ">true]...\!\SW[1>0] YAY!";
notice that we excluded $gameVariables.value(1) from the string and had to use plus signs to concatenate it (basically, check the actual value and add the result into the string).
Yeah sounds good
🙂 I get whatcha mean.. the issue with doing it that way is the first part is going to be a javascript evaluated code that ends up being a switchID and the second part is javascript that determines whether or not it is set to "on" or "off"
I think
Tea might be on to something.. looks like she got it
:popcorn:
Thanks again for all the advice
☺️
Whew! That was quite the challenge but I think I got it?
Yay! Thanks for making me feel better for not being able to crack the code
At least I know it wasn't just something simple and was actually a challenge
Whew! That was quite the challenge but I think I got it?
Code:
(\w+)\[((\d+)*(\w+)*)|(\$(\w+)\.(\w+)\((\d+)\))?>(\d+)*(\w+)*\]
Also, this is a fabulous regex tool.
Bestest regex tool ever
View attachment 220926
OMG! Wow! That is amazing!
😮☺️👍
This all could definitely prove quite useful.
lol i see it does even my other messagebox escapecodes too...
sooo what would I add to this to just get the "\SW" ones?
PS. Thank you so much for the link to that site. That's gonna save me so much in the future. Playing around with it now.