TBC issue wasn’t that you were creating variables and setting their value separately, it’s that you created and set the value as a string by the use of quotation marks and trying to do numerical addition to it. Long story short don’t use quotation marks if the variable intended use is numeric.
You tell Choicescript what kind of variable you’re creating by what you initially create it as.
*create variable true
will create a Boolean (true/false) variable.
*create variable “”
(or with anything else in the quote marks) will create a string variable, i.e. a set of characters.
Either of those types of variable will give you the “not a number” error if you e.g. try to add to them or set them to a numeric value. When you created wealth as a string and then *set wealth “0”, it’s the same as if you’d *set wealth “zero” – a human reader understands it easily, but because of the variable type, for the computer it’s the same as setting wealth to “measureless” or “mothballs”.