Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Thanks, although that wasn't the answer I'm looking for.
What I am trying to do is convert a damage calculating formula for an rpg into a number.
The formulas would read something like "STREGTH+(3*DEFENSE)".
What I was trying to do is replace the stats like STRENGTH and DEFENSE with the player's stats. I got that far, but then I just had an equation in the form of the string which I couldn't evaluate.
Maybe I'm going about this the wrong way, but would there be a way to substitute in values and then evaluate the equation in Lua?