Hi Forum, I am completely new to this stuff, and I've been struggling with making a minor change with a custom sheet that already exists. So here's the thing: on("change:magic_02_name", function() {
getAttrs(["magic_02_name"], function(values) {
if(values.magic_02_name == "Whatever Magic Spell"){
setAttrs({magic_02_effect: "It will destroy the enemies"});
});
});
}); </script> Both attributes "magic_02_name" and "magic_02_effect" are text boxes. I want to let the sheet automatically show a built-in text content ("It will destroy the enemies" in this example) in the textbox "magic_02_effect" whenever player puts the magic spell name in the textbox "magic_02_name" ("Whatever Magic Spell" in the example). The script simply doesn't work. Any help would be appreciated.