I would recommend swapping them, that is the simplest solution. API Script for this would be overkill unless you have 3 resources that need to be in all 3 bars. As for how to do it using API scripts, you'd need a script to push the value to an attribute. Then you use that attribute for the bar. Then when the bar changes you'd have to have an API Script push the value back to the resource. Might be able to skip the attribute step and push it straight from bar to resource and resource to bar, but really, I wouldn't do it this way unless as stated, you need 3 resources in 3 bars. Note: I am not an API Script guru, I am sure one of them will come along and show you how to do this. My point is to show that it can be done more simply. API Scripts are not always the best answer. :)