I may be misunderstanding some Screen Language syntax.
Thing is, I have a nice object defined in script.rpy, and I'd like one of its attributes, a value, to be adjusted by a bar defined on a screen in screens.rpy.
So.
Defining object in script.rpy.
Calling screen with parameter containing, amongst other things, a number of said objects.
Iterating over the objects, doing things with each.
And one of the things to happen being to define a bar for each.
I try variations of
Code: Select all
vbar:
value FieldValue(object=item, field="measure", range=item.size)
I get a TypeError from an internal function apparently trying to subtract an 'instancemethod' from an 'int'.
Obviously I'm not using SL as intended :]
How am I supposed to do it?
I've used a ui.adjustment before, but that looks like deprecated code vs the new and shiny SL.
I might be able to get around this by defining screen variables and using those for the bar, but that is supposed to be done in an init -2 block, where I don't have my paramenter available and can't initialize the values correctly. Also then there'd be the transferring of screen variable values to script object values which sounds problematic if not impossible.