okay more specific again…
I have, in the module editor under GamePiecePrototypeDefinition, edited my definition “CombatUnit” to include 3 dymanic properties (Strength, Morale, Movement) each numeric with increment/decrement controls on the right-click menu, for now.
I also have, in this same prototype definition, three Text Labels (StrengthLabel, MoraleLabel, MovementLabel) which I was using with fixed text fields (well, with user-editable strings via the right-click menu) and had these text labels with string fields working but with no connection to the properties.
Now I have tried to connect them, by (a) removing the commands for the user to edit the label strings on the right-click menu, and (b) using $Strength$, $Morale$, $Movement$ as the text field for the respective labels. Just in case, I have placed each dynamic property immediately above its respective text label in the prototype’s trait list.
This causes nothing to display. Actually, at various points during the process (after I started trying to connect the properties to the labels) the string for the property “Strength” or the initial value of the dynamic property “0” would be displayed (ie sometimes the property name would display in the pallete and would change to the initial 0 value when dragged onto the map), but now nothing. The good news is that I am not getting null pointer exceptions which was happening at those same interim points (after I started trying to connect properties to the labels) at various times on a module save, a module load, dragging the piece onto the map, or incrementing/decrementing the property from the right-click menu.
IMPORTANT EDIT - changed the order of traits, put dynamic property immediately below the respective text label. Now they show, and Movement (the bottom one of the three in the trait list in the prototype) works ie I can change by right-click. However, Strength and Morale do not update at least on the piece, not sure about in the innards.
So… (whew)…
How do I get the dynamic properties to be displayed by my text labels? Or is there something much better to do that I am completely missing here?
btw - happy to take a look at an example of this and try to figure it out - but the modules I am using for playing mostly do not do this kind of thing or do it using graphic layers of different images. so I would need a pointer to a module that using dynamic properties for variables shown on the counter (ie with text labels or somehow otherwise).
Thx.