But you need a different range of numbers for a animation elsewhere in the skin (0-255), but synced to the first measure.
Instead of creating measures for each and every little thing, you can convert (1-100) to (0-255) with a formula.
The formula:
((x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min)
And this is how it looks with the values inserted.
(([YourRangeMeasure] - 1) * (255 - 0) / (100 - 1) + 1)
Here i used the new range to control the alpha value of an image meter:
And we can round the number for accuracy. (Thank balala ;P)
Code: Select all
[MeterImage]
Meter=Image
ImageName=#@#Images\GradientPolar.png
ImageTint=255,0,0,(Round(([YourRangeMeasure] - 1) * (255 - 0) / (100 - 1) + 1))
DynamicVariables=1
And in the example skin i used the new range for the alpha value in the text meter. (20-255)
Download it and play with the values in the variables section.