Hi folks, I'm currently working on a custom sheet for my group but I cant't get the sheet worker to run. I searched already in the wiki and other forum post, but the examples presented there won't work either for me. The last example is reduced to just one displayed attribute line for testing. Currently the code looks like the one below and in the css section is some stuff. Also tried to put this in the api section, but with no success. Can anyone tell me what I do wrong? Did I overread something? <div class="sheet-overall-wrapper">
<table class="sheet-SM-data-table">
<tr>
<th colspan=2>Attribute</th>
<th width="6%">Start</th>
<th width="6%">Value</th>
<th width="6%">mod</th>
</tr>
<tr>
<td>Mystik</td>
<td>MYS</td>
<td><input type="number" name="attr_MYSTIK_Start" value="0" /></td>
<td class="sheet-SM-highlightedField"><input type="number" name="attr_MYSTIK" value="0" /></td>
<td><input type="number" name="attr_MYSTIK_mod" value="0" /></td>
</tr>
</table>
</div>
<!-- Scrips -->
<script type="text/worker">
on("change:mystik_start", function() {
sendChat("Test Modul", " MYS changed!");
getAttrs(["MYSTIK_Start", "MYSTIK_mod"], function(values) {
setAttrs({
MYSTYK: values.MYSTYK_Start + MYSTYK_MOD
});
});
});
</script>