if you’re doing the string conversions (ie the parsing of one script language to another) then why not just “wrap” the output script using conversion functions of your own making?
input: Kronqueste
old output: storyVariables[“Kronqueste”]
new output: tobool(storyVariables[“Kronqueste”])
local function tobool(v) if (type(v) == "number") then return (v~=0) end return (not not v) end