So, for a game I'm working on, let's say I put a bit of text in the comment box of a spell:
<secondary effects: [["Flame", 15, true], ["Poison", 0.08, true]]>
By using the slice feature, I can reduce the text down to:
[["Flame", 15, true], ["Poison", 0.08, true]]
and then store it in the data variable, so
data = "[["Flame", 15, true], ["Poison, 0.08, true]]"
Now, how could I convert this text into code, so I could make a condition during the spell's damage process such as:
if data[0][2] == true then *something* end
Obviously, I can't use eval on the text in order to make it into data.