Hello, i'm trying to do something apparently simple, but it's not working i want one attribute to contain only text and to be updated based on the vulnerabilities of the character. the player can chose a vulnerability, like this: <select style="margin-left: -30px;" type="select" name='attr_deb' class='dtype2'>
<OPTION value="no"></OPTION>
<OPTION value="(d)fuoco">&#128293;</OPTION>
<OPTION value="(d)acqua">&#128167;</OPTION>
<OPTION value="(d)natura">&#127793;</OPTION>
<OPTION value="(d)ghiaccio">&#10052;&#65039;</OPTION>
<OPTION value="(d)elettrico">&#9889;</OPTION>
<OPTION value="(d)luce">&#127775;</OPTION>
<OPTION value="(d)oscurità">&#127761;</OPTION>
<OPTION value="(d)impatto">&#129354;</OPTION>
<OPTION value="(d)taglio">&#128298;</OPTION>
<OPTION value="(d)perforante">&#128165;</OPTION>
<OPTION value="(d)energia">&#10024;</OPTION>
</SELECT> and a resistence and an immunity like this: <select style="margin-left: -30px;" type="select" name='attr_res' class='dtype2'>
<OPTION value="no"></OPTION>
<OPTION value="(r)fuoco">&#128293;</OPTION>
<OPTION value="(r)acqua">&#128167;</OPTION>
<OPTION value="(r)natura">&#127793;</OPTION>
<OPTION value="(r)ghiaccio">&#10052;&#65039;</OPTION>
<OPTION value="(r)elettrico">&#9889;</OPTION>
<OPTION value="(r)luce">&#127775;</OPTION>
<OPTION value="(r)oscurità">&#127761;</OPTION>
<OPTION value="(r)impatto">&#129354;</OPTION>
<OPTION value="(r)taglio">&#128298;</OPTION>
<OPTION value="(r)perforante">&#128165;</OPTION>
<OPTION value="(r)energia">&#10024;</OPTION>
</SELECT> now i want an attribute called: "debolezze" to be updated with the choises in text format, and the output should look like this: "debolezze": (d)fuoco(r)acqua(i)luce. the sheet worker i tried to use is this: on("change:deb change:res change:imm sheet:opened", function() {
getAttrs(["deb","res","imm"], function(values) {
let deb = parseInt(values.deb)||0;
let res = parseInt(values.res)||0;
let imm = parseInt(values.imm)||0;
var dri = deb,res,imm;
setAttrs({
debolezze: dri
});
});
}); but the output stays "0" and not something like (d)fuoco(r)acqua(i)luce. Do any of you have an idea? thank you so much!