
I am trying to access character sheet attributes from a Mod Script for Demiplane Pathfinder2e characters.
I have tried:
- getAttrByName
- works fine with the Roll20 "pathfinder2eofficial" sheets
- returns undefined for Demiplane "nexus_pathfinder2e" sheets
- findObjs({_type: 'attribute', _characterid: c.id})
- works fine with the Roll20 "pathfinder2eofficial" characters
- returns a list of attributes akin to a token with no character sheet for the "nexus_pathfinder2e" characters
- even though c.get("charactersheetname") returns "nexus_pathfinder2e"
- getSheetItem(c.id, "fortitude", function(item) { });
- crashes out the script with a "
TypeError: Cannot read properties of undefined (reading 'fortitude')"
- I tried a version of Lord Farquaad's test script for getSheetItem
- responds with "Error fetching hit_points: TypeError: Cannot read properties of undefined (reading 'hit_points')"
- I am running "##########> Sandbox [EXPERIMENTAL 2025-04-09] : Ready fired after 5.15s, 22 objects."
- I have logged into Demiplane in another tab
- I can also see the Demiplane sheet inside Roll20 attached to the token
- I can attach attribute links to the bars
- I can use @{attribute} in macros
Am I missing something? Is this feature in flux? I have seen references from Aaron and Keith regarding work on Mod compatibility with Beacon sheets, are the Pathfinder2e Demiplane ones also part of the Beacon sheets? I haven't seen any reference to using getSheetItem() for Demiplane Pathfinder2e or Starfinder2e sheets. Any help is welcome.