```js function setState(actor, state, hp, success, failure){ actor.update({ "flags.dc-death-wis

function setState(actor, state, hp, success, failure){
actor.update({
"flags.dc-death-wish": {state: state},
// todo fix string instead of number
"data.attributes": {hp: {value: hp}, death: {success: success, failure: failure}}
});
}
function setState(actor, state, hp, success, failure){
actor.update({
"flags.dc-death-wish": {state: state},
// todo fix string instead of number
"data.attributes": {hp: {value: hp}, death: {success: success, failure: failure}}
});
}
no need to use a string template, you can simply pass the value as it is directly into these fields
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?