Is it possible to store a string in a variable and if not are their alternatives?

1661985068483.png

when I do this I get an error, am i doing something wrong or is this just not possible?
Hi there!
It should work...
When the error happens, can you press F8 or F12 and take a screenshot of the CONSOLE tab?
Put it in single quotation 'Old Fashioned'
EDIT: Not the case 😀
Hi there!
It should work...
When the error happens, can you press F8 or F12 and take a screenshot of the CONSOLE tab?
just looked at it and it was a really stupid mistake involving a self switch, sorry for the trouble
Just as an FYI, you can also do this using the Control Variables event command. Just go to Control Variables, select your variable, tick the radio button that says Script, and then type your string (making sure to surround it with quotes) inside the box.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-store-a-string-in-a-variable-and-if-not-are-their-alternatives.150974/