Values["vvvv"].Int = 100
getObject("Values[vvvv]"):setValue(VValueInt, 100)
getObject("Scenes[bedroom].SceneValues[vvvv]"):setValue(VValueInt, 100)
Scenes["000_Options"].SceneValues["vvvv"].Int = 25
local val = getObject("Scenes[000_Options].SceneValues[vvvv]"):getInt(VValueInt)
print( Values["value_name"].Int ) -- print value to log
if Values["value_name"].Int == 10 then
-- do something
end
local x = Values["value_name"].Int
Works too :Scenes["000_Options"].SceneValues["vvvv"].Int = 25
Characters["char_hans"].CharacterValues["money"].ValueInt = 20
Characters["char_hans"].CharacterValues["money"].Int = 20
Scenes["room_title"].SceneValues["score"].Int = 20
-- works:
local char = getObject("Characters[char_hans]")
char:setValue(VCharacterPosition, {x=100,y=300})
-- works (same above with direct method):
local char = Characters["char_hans"]
char:setValue(VCharacterPosition, {x=100,y=300})
-- works:
local money = getObject("Characters[char_hans].CharacterValues[money]")
money:setValue(VValueInt, 20)
-- don't work (same above with direct method):
local money = Characters["char_hans"].CharacterValues["money"]
money:setValue(VValueInt, 20)