I have this working as intended here. I used a slider to set the value of the manually-changing progress bar with a float variable saving its previous value so the difference can be calculated. Once the difference is determined, that can be split between the three other bars to affect their values. In the case of one of the bars dropping below 0, the negative value is split between the remaining bars again, so the total remains 1. As noted in the image, as the main progress value approaches 1, the divided float’s rounded decimal places will rebound off each other, creating an infinite loop, so I blocked the value from getting too close to 1 without being exactly 1.
This is only working with user access to one of the bars, but of course an event could be made for each bar to allow for them all to be altered manually. The only things that would need to change are:
- Each bar would need its own float variable
- The bar percentage set by the event would need to match the current bar
- The progress bars that make up the array would need to exclude the current bar and include the others
I’m probably too late for morglion, but being able to do this is really convenient if anyone else is trying this.
