This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
print( Characters["jacob"].CharacterValues["v_test"].Int ) -- returned 10
print( game.CurrentCharacter.CharacterValues["v_test"].Int ) -- returned 10
Characters["jacob"].CharacterValues["v_test"].Int = 20 -- updated value to 20
game.CurrentCharacter.CharacterValues["v_test"].Int = 20 -- same as above
getObject("Characters[char_hans].CharacterValues[money]"):setValue(VValueInt, 20)
Characters["char_hans"].CharacterValues["money"].Int = 20
The idea is to reduce the amount you need to type. To be honest the naming convention of data structure fields & tables is not that good. Most names could have been much shorter.
Then we have doubled words like...
getObject("ActiveActions[test]"):getInt(VActionActionPartIndex) -- I understand that it can't simply be PartIndex as that would not mean anything to anyone, but ActionAction?
This is only a couple of examples. The data structure is plagued by stuff like this though.
The idea is to reduce the amount you need to type.
getObject("Characters[jacob].CharacterValues[money]"):setValue(VValueInt, 20)
Characters["jacob"].CharacterValues["money"].Int = 20
Characters["jacob"].CharacterValues["money"].ValueInt = 20
Characters["jacob"].CharacterValues["money"].ValueString = "Euro"
Characters["jacob"].Values["money"].Int = 20
Characters["jacob"].Values["money"].String = "Euro"
Characters["jacob"].CharacterValues["money"].ValueInt = 20
Characters["jacob"].Values["money"].Int = 20
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.