What I am trying to achieve.... When a token is reduced to Zero HP, change Tint to White and disable Nameplate. I currently do this with !Tokenmod by using the following Macro: !token-mod --off showname --set tint_color|#ffffff But what I'm trying to achieve is to integrate these changes into the existing API script I use which automatically applies Death status when HP <= 0. I know about 0.001% on how to script and was hoping someone could point me in the right direction on how that change script should look. Here's the current script... on('ready', () => { const HPBarNum = 1; const bar = `bar${HPBarNum}_value`; const max = `bar${HPBarNum}_max`; const constrainHPBarToMax = (obj) => { const hpMax = parseInt(obj.get(max),10); if(!isNaN(hpMax) && 'token' === obj.get('subtype') && !obj.get('isdrawing') ){ let hp = parseInt(obj.get(bar),10); let changes = {}; if(hp > hpMax) { hp = hpMax; changes[bar] = hp; changes.status_dead = false; } else if(hp <= 0) { hp=0; changes[bar] = hp; changes.status_dead = true; // THIS IS WHERE THE NEW CODE GOES BUT WHAT DO I PUT HERE ? } else { changes.status_dead = false; } obj.set(changes); } };