Hi, I’m fairly new to but generally getting the hang of things. I’ve been looking around and I haven’t found quite what I’m looking for, which is taking the string value of one variable and using it to create a new variable.
I’m trying to create an npc builder/randomizer which takes a name entered into a textbox or from a list, converts that name into a variable of the same name, and then passes the variable to a class constructor.
So if <<$_tempName =‘John’>>, I then want it to create a new variable called $John.
Additionally, is there a way to set if statements with undefined or null variables, i.e <<if $_tempName == undefined>>
Thank you in advance.