This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
tblViewConds = {}
tblViewConds[1] = getObject("Conditions[ViewingITM_Book10]")
...
tblViewConds[18] = getObject("Conditions[ViewingITM_Will]")
function ResetItemViews()
for k = 1,18 do
tblViewConds[k]:setValue(VConditionValue,false)
end
end
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 freefor k = 1,18 do
for k = 1,table.maxn(table/var name) do -- returns total entries of linked table
P.P.P.S: just remembered... definition scripts are loaded on game launch, so after loading from a save, you may need to reload the script. try setting it as an execution script & calling it after game load or as needed. if you plan on doing that then it might be a good idea to set your tables up as temporary tables.
booksol = "12345678910"
feedback = getObject("Values[PuzzleFeedback]")
allin = getObject("Conditions[B10Inserted]")
tblOuts = {}
tblOuts["one"] = getObject("Conditions[B1Out]") -- indices for testing, table has multiple entries
tblOuts[1] = getObject("Conditions[B1Out]")
testvar1 = getObject("Conditions[B1Out]")
Test1 -- 01:15:08: 12345678910 PuzzleFeedback (20,1) B10Inserted (10,33) B1Out (10,44) B1Out (10,44) B1Out (10,44) table: 128CC8E8
Test2 -- 01:15:53: 12345678910 PuzzleFeedback (20,1) B10Inserted (10,33) B1Out (10,44) B1Out (10,44) B1Out (10,44) table: 128CC8E8
Test3 -- 01:16:35: 12345678910 PuzzleFeedback (20,1) B10Inserted (10,33) nil nil B1Out (10,44) table: 128CE170
this...
t = {"something","something_else","other",2,6}
t = {}
t[1] = "something"
t[2] = "something_else"
t[3] = "other"
t[4] = 2
t[5] = 6
t = {a = 1, b = 2, c = 4, d = 8}
print("a + b = " .. t.a + t.b)
t = {"a" = 1, "b" = "yes", "c" = true}
print("c = " .. t["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.