I am trying to get a drop down menu to activate a checkbox. The drop down menu has three options, each with a value of "1", "2", and "3". And its all contained in a repeating field. This is what I got. //Torpedeo
on("change:repeating_shipweapon:shipweaponstyle1 sheet:opened", function() {
getAttrs(["repeating_shipweapon_shipweaponstyle1","repeating_shipweapon_torpedo_open"], function(values) {
if (values.repeating_shipweapon_shipweaponstyle1 == 3) {
setAttrs({
repeating_shipweapon_torpedo_open: 1
})
}
else {
setAttrs({
repeating_shipweapon_torpedo_open: 0
});
}
});
}); Any thoughts?