This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Until 1 Dec 2026 all licenses are 30 % off, for example the Indie Bundle for €69.30 instead of €99. The code BLACKFRIDAY is applied automatically at checkout.
See licenses Try it for freelocal result = "" -- create an empty string
-- * function for adding text to end of variable * --
function inputChar(c)
result = result .. c -- add text to end of result
end
-- * function which compares the string value of the result variable with the string value you include with the function * --
function checkInput(r)
if r == result then print("true") else print("false") end
result = "" -- reset result back to default value
end
inputChar("a") -- adds a to the variable
checkInput("tom") -- checks if variable returns tom
getObject("Values[name]"):getStr(VValueString)
getObject("Values[name]"):setValue(VValueString, "")
local obj = getObject("Values[name]")
local str = obj:getStr(VValueString)
str = str.."_test"
obj:setValue(VValueString, str)
Values.name.String = Values.name.String.."_test"
result = result .. c
inputChar("a")
inputChar("y"); inputChar("e"); inputChar("s") -- we've just added string "yes" to result variable
checkInput("yes") -- if result = yes then do some action else do some negative action
Strings in lua can't be added, you need to use the concatenate operator (+ is a operator, concatenate is putting a string together), that operator has 2 points, so "result .. c" is result and c.
This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.
New threadDeponia, The Whispered World and more than 160 other games were made with Visionaire Studio. The free version covers up to 25 scenes. For more scenes there is Visionaire Studio PRO from €75, and to sell your game the Indie Bundle for €99.
Through December 1: all licenses 30% off, for example the Indie Bundle for €69.30 instead of €99. Applied automatically at checkout.