Something like < script type = "text/worker" >
on ( "change:wizard_level change:intelligence_mod" , function () {
getAttrs ([ "Intelligence_mod" , "wizard_level" ], function (values) {
//Do something with values.Strength and/or values[ "Level" ]
setAttrs({
calculatedstat: 2 * values.wizard_level + values.Intelligence_mod
});
});
});
</ script > Just replace "calculatedstat" with whatever the name of the attribute to hold the value will be.