Skip to the *** if you don't want to read what this patch does in context. After the *** will explain what I need done to the patch.
In my latest project, we built 2 robots who will help each other stay alive over a network. their life force starts out at 100% each, while events like interactions with the robots will increase its life, and events like stealing his toy and just plain passing of time will decrease its life.
in order to help each other stay alive, if one robot looses more life than the other, the other robot will give up some of its own life to pass over to the robot in need. this is done pretty much by averaging out their life numbers, and reassigning the averaged life to both robots.
This averaging happens at 40%, 30%, 20%, 10% and 5%.
When this averaging happens, some life is added to the robot with lesser life.... but on the next decrease in life, it's as if the add never happened.
If "His Life" remains at 100 the entire time, by the time "My Life" hits 40%, the averaging would make His Life 70% as well as My Life to 70%. But after that 70%, it just jumps back down to 39 instead of 69!!
Try this: open the patch, and make sure that you click the big green ON bang in the Life Sharing section. Also make sure that you click the 100 beside the "Make life equal to 100" on BOTH sides. Don't start the 2 metros near the top.
Now start with the left one, My Life. Right above the slider and the word LIFE, take that number box that says 100, and scroll it down. At 40, it will jump back up to 70. Then as you scroll down more, it goes to 69, 68. THIS IS WHAT I WANT IT TO DO ALL THE TIME!!
But, clearly I can't be scrolling the number box while the thing is running, so I figured I'd just add a metro that would decrease that number for me. But when the metro does it instead of me manually scrolling, after 40, it jumps up to 70, THEN BACK DOWN TO 39!!!! WHY??? It works when I do it manually, but not when the metro does it.
PLEASE, can you please give me any advice, or even try to fix the patch with your own additions that will make my patch behave with the metro as it does when you scroll it manually.
I will attach the patch as well as the TXT for it. If you played around with it and have any additions that make it work, please attach the new patch or TXT.
THANK YOU SO MUCH TO ANYONE WHO TRIES!!!!