
When setting a bar to an attribute, it does not update the _max correctly using say: var aSet = findObjs({_type: "attribute",name: 'Rifleammo',_characterid: who.id}); aSet = aSet[0].id; id.set("bar3_link", aSet); on a token does change the bar to the correct attribute of Rifleammo, but does not refresh whatever the max of that bar was correctly. For example say bar3 was set to Pistolammo, that was 10/10 and you use API to set it to Rifleammo, which is 40/40..bar 3 WAY overextends the bar and checking the token its 40/10 as values..picking something else, then RifleAmmo again in the dropdown corrects it.