-- set condition "TV is on" to true
local cond = getObject("Conditions[TV is on]")
cond:setValue(VConditionValue, true)
Var = getObject("Values[Test]")
Var:setValue(???????, 1) <---- was muss da rein??
Values["test"].Int = 1
Var = Values["test"]
Var.Int = 1
Maybe this could also work? Var:setValue(VValueInt, 1)
Values["test"].Int = 1
Var:setValue(VValueInt, 1)
game.CurrentScene.SceneValues["test"].Int = 1 -- set value "test" belonging to current scene to 1
Scenes["example"].SceneValues["test"].Int = 1 -- set value "test" belonging to scene "example" to 1
Scenes["example"].SceneObjects["some object"].ObjectConditions["test"].Int = 1 -- set value "test" belonging to scene object "some object" found on scene "example" to 1
as mentioned a lot to you lately you have to study the DataStucture to know which object types have which (accessible) fields ^__^Values["test"].Int = 1
That works. Thanks.
I don't know why, and what works and what not, because this Vis object thing isn't logical to me. I tried VValuesValue... (looks logical like the other constructs...)
I prefer (seems a little bit more logical)Var:setValue(VValueInt, 1)
but don't work.
... English isn't for me...
Var = getObject("Values[Test]") ; Var:setValue(VValueInt, 1)
getObject("Values[Test]"):setValue(VValueInt, 1)
Values["test"].Int = 1
Values["test"].String = "my text"
Scenes["example"].SceneObjects["some object"].ObjectConditions["test"].Int = 1 -- set value "test" belonging to scene object "some object" found on scene "example" to 1
@Sebastian: probably better off writing it in German for him.Thank you... Well I can understand most of it but sometimes ... I don't like English... Writing takes a long time... Years ago I wanted to write correct English but now I don't care if grammar or words are correct or not... I use the translation which is in my mind. I believe some native speakers smiles about it. I hope it's clear what I mostly want to say (if the problem is simple) but if the problem is heavy I prefer German.