Quick question, Aaron. Am I not separating the character Ids properly because it fires for the first character, but doesn't fire for the second one? This is what I have: on('ready',()=>{
const cids=['-MSdHhHvsg7NvrW0lDS7','-MS_WOvdwoOAw29bjwri'];
const attrnames = ['hp'];
////////////////////////////////////////////////////////////
const handleHPChange = (obj,prev)=>{
if(cids.includes(prev._characterid) && attrnames.includes(obj.get('name').toLowerCase())){
if(parseFloat(obj.get('current'))<parseFloat(prev.current)){
let c = getObj('character',prev._characterid);
if(c){
sendChat('',`/w "${c.get('name')}" You appear to have taken damage, should you use Shield?`);
}
}
}
};
on('change:attribute',handleHPChange);
});