this is the issue i encountered which i think is the same problem if not just say Matt var test = getAttrByName(targetCharacter, "ac");
log(test); //"@{ac-ten}+@{ac-ability}+@{ac-armor}+@{ac-class}+@{ac-feat}+@{ac-enh}+@{ac-misc}+@{ac-misc2}"
test = getAttrByName(targetCharacter, "ac-ability");
og(test); //"@{ac-highest}"
test = getAttrByName(targetCharacter, "ac-highest");
log(test); //""
test = getAttrByName(targetCharacter, "ac-ten");
log(test); //"10+@{halflevel}"
test = getAttrByName(targetCharacter, "halflevel");
log(test); //"floor(@{level}/2)"
test = getAttrByName(targetCharacter, "level");
log(test); //"5"
As you can see "ac-highest" is the only one thing that retuns a null value irelevent of its cotent