I once got a huge amount of help from the amazing Jakob (who also co-wrote the Blades in the Dark sheet, which is fantastic) on crafting sheet workers that apply to several attributes. And now I am workign on a new sheet that could really use something like that. I would like the sheet worker to look at a select field (named whatever _attribute) to see what is selected, and put whatever is selected into a textbox (named whatever _attribute_name). I can do this with one skill per sheet worker, using the example below. Thank you to all would read this. //Attribute Showing
on("change:aim_attribute sheet:opened", function() {
getAttrs(['aim_attribute'], function(values) {
if (values.aim_attribute == '@{Intellect}' ) {
setAttrs({
'aim_attribute_name': 'Intellect'
})
}
else if (values.aim_attribute == '@{Cunning}' ) {
setAttrs({
'aim_attribute_name': 'Cunning'
})
}
else if (values.aim_attribute == '@{Resolve}' ) {
setAttrs({
'aim_attribute_name': 'Resolve'
})
}
else if (values.aim_attribute == '@{Might}' ) {
setAttrs({
'aim_attribute_name': 'Might'
})
}
else if (values.aim_attribute == '@{Dexterity}' ) {
setAttrs({
'aim_attribute_name': 'Dexterity'
})
}
else if (values.aim_attribute == '@{Stamina}' ) {
setAttrs({
'aim_attribute_name': 'Stamina'
})
}
else if (values.aim_attribute == '@{Presence}' ) {
setAttrs({
'aim_attribute_name': 'Presence'
})
}
else if (values.aim_attribute == '@{Manipulation}' ) {
setAttrs({
'aim_attribute_name': 'Manipulation'
})
}
else if (values.aim_attribute == '@{Composure}' ) {
setAttrs({
'aim_attribute_name': 'Composure'
})
}
else if (values.aim_attribute == 0 ) {
setAttrs({
'aim_attribute_name': 'None'
})
}
});
});