Ed F. said: No. Like the example above, how would one reduce 10 damage points without having to open in the character sheet? Maybe a chat command or an API, I do not aware of? Ah! That much lower level than I thought you were asking. To do that, you have to get the Attribute object. How you do that depends on what you have. Assuming you have a token ID, and it represents a character, you can use it to find a particular attribute. Let's assume you have a command named !decrement-delta' which finds the delta attribute on a character based on a given token ID, which my might call like: !decrement-delta @{target|token_id} Here's how the code might work: on('ready',function() {
'use strict';
on('chat:message', function(msg) {
var args,token,attr;
if (msg.type !== "api" ) {
return;
}
args = msg.content.split(/\s+/);
switch(args[0]) {
case '!decrement-delta':
token=getObj('graphic',args[1]);
if(token) {
attr=findObjs({
type: 'attribute',
characterid: token.get('represents'),
name: 'delta'
})[0];
if(attr) {
attr.set('current', attr.get('current') - 1);
}
}
break;
}
});
});