Yup, I see the issue as well.
Both "perception_attribute" and "perception_prof_exp" are empty
"perception_attribute"
[{"who":"","type":"general","content":"[[]]","playerid":"API","avatar":false,"inlinerolls":{}}]
"perception_prof_exp"
[{"who":"","type":"general","content":"[[]]","playerid":"API","avatar":false,"inlinerolls":{}}]
This is what a working roll looks like:
"wisdom_mod"
[{"who":"","type":"general","content":"$[[1]]","playerid":"API","avatar":false,"inlinerolls":{"1":{"expression":"(floor((13-10)/2))","results":{"type":"V","rolls":[{"type":"M","expr":"(floor((13-10)/2))"}],"resultType":"M","total":1},"signature":"03b4ca6ab4325c0788c57a51fb8ae2b2587e69d99dcc81685e0113106233ac0278998908c74845f8d077cd8e1bbb1faa44ad03779f4e1476260078fd7219a925","rollid":"-JnjoDVH_CC3bd1gLgoO"}}}]
Coincidentally both "perception_attribute" and "perception_prof_exp" are selects that have not been manually edited (therefore creating an attribute)
<select name="attr_perception_attribute" class="sheet-skills-attribute-selector">
<option value="@{strength_mod}">Str</option>
<option value="@{dexterity_mod}">Dex</option>
<option value="@{constitution_mod}">Con</option>
<option value="@{intelligence_mod}">Int</option>
<option value="@{wisdom_mod}" selected="selected">Wis</option>
<option value="@{charisma_mod}">Cha</option>
</select>
<select name="attr_perception_prof_exp">
<option value="@{jack_of_all_trades}">— Unproficient</option>
<option value="@{PB}"> + Proficient</option>
<option value="@{exp}">++ Expertise</option>
</select>
So it looks like a select does not have a default value. If I manually edit them then it gets the values without issue. Maybe there is something wrong with how I've setup the select? It follows normal convention and works for everything else.
It also seems like a checkbox is not working as well:
"TypeError: Object 1 has no method 'replace'"
when only testing
sendChat('', '[[@{Ankheg|is_npc}]]',function(msg){
log('is_npc');
log(msg);
});
which is defined on the sheet as
<input class="sheet-tab-is-npc" type="checkbox" name="attr_is_npc" value="1">
It prints out fine when I try it in roll20 itself.
It still fails even if I manually define it.
Conclusion: If I manually edit the selects to have a value and avoid using a checkbox in formulas it works without a problem.