Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

GroupCheck & GroupIntitiative not working

Both API don't seem to be reading NPC modifiers.  Using Jumpgate. And I'm using the Experimental Mod library. I have both 2014 and 2024 sheets in game, though I'm trying to phase out the old ones in the hopes of getting token actions soon.  When I use GroupCheck or GroupInitiative on 2024 NPC sheets the rolls don't seem to include the monster's modifiers. Here is the readout for groupInit: The Flaming Skeleton in question has a +2 to Initiative, which is not being added. I don't know what "no matching rule" means. I'm having trouble viewing the GroupCheck formula read-out, but I know its wrong because even when an NPC with +5 to a Strength save rolls a 20, it only says 20 instead of 25. I know there are different API's but it feels like the issue is related. 
1743978761
The Aaron
Roll20 Production Team
API Scripter
Can you show the output for your GroupInitiative configuration?  Also, can you verify the log message in the API Server says Experimental?  There is a bug where you have to cycle it back and forth between Experimental and Default multiple times to get the server to switch to Experimental.
Not sure if this helps ... I just tested Group Initiative on a 2024 sheet (with 2024 player character sheets and 2014 NPC sheets), using the Experimental Sandbox. In this case, the bonus wasn't added for the 2014 NPCs.  This gives repeated errors in the Sandbox of "ERROR: getComputed() is only available for character sheets using Beacon SDK." This aligns with m y understanding that the 2014 sheets don't perform properly when using the Experimental Sandbox. I repeated the test on a 2014 sheet  (with 2024 player character sheets and 2014 NPC sheets), using the Experimental Sandbox. This time, the bonus isn't added to the 2024 PCs sheets, with Sandbox error messages of  "ERROR: Invalid character_id undefined for getAttrByName()" . As expected, doing this using the Default Sandbox also gives the same results, with no error message. These tests with in JumpGate
The Aaron said: Can you show the output for your GroupInitiative configuration?  Also, can you verify the log message in the API Server says Experimental?  There is a bug where you have to cycle it back and forth between Experimental and Default multiple times to get the server to switch to Experimental. Just now, when I opened the Mods Scripts page in Settings it had reverted to Default, so I switched it back to Experimental, and did confirm it says experimental in the API Server log message. I then checked to see if GroupInitiative was now working, but still getting no inititive mod added to the roll. Here's what I think you are asking for as far as the configuration: Configuration Roller Options The Roller determines how token rolls are performed for groups of tokens. Selected Individual-Roll  -- Sets the initiative individually for each member of the group. Use Least-All-Roll Least-All-Roll  -- Sets the initiative to the lowest of all initiatives rolled for the group. Use Mean-All-Roll Mean-All-Roll  -- Sets the initiative to the mean (average) of all initiatives rolled for the group. Use Constant-By-Stat Constant-By-Stat  -- Sets the initiative individually for each member of the group to their bonus with no roll. Sorter Options The Sorter is used to determine how to reorder entries in the Turn Order whenever GroupInitiative performs a sort. Sorting occurs when the sort command ( !group-init --sort ) is issued, when stack entries are merged into the current Turn Order, and when new entries are added to the Turn Order with a GroupInitiative command (like  !group-init ). Use None None  -- No sorting is applied. Use Ascending Ascending  -- Sorts the Turn Order from highest to lowest Selected Descending  -- Sorts the Turn Order from lowest to highest. Preserve First on Sorted Add This option causes GroupInitiative to preserve the first Turn Order entry when sorting the Turn Order after adding creatures. Disable Preserve First on Sorted Add is currently  On . Initiative Die Size The Initiative Die sets the size of the die that GroupInitiative will roll for each initiative value. Set Die Size Initiative Die Size is currently set to  20 . Initiative Dice Count The Initiative Dice Count sets the number of dice GroupInitiative will roll for each initiative value. You can set this number to 0 to prevent any dice from being rolled. Set Dice Count Initiative Dice Count is currently set to  1 . Dice Count Attribute If this attribute is set, it will be used to determine the number of dice to roll for each initiatitve value. If the value is not set, or not a valid number, the Intiative Dice Count is used instead. Set Attribute Dice Count Attribute is currently set to  DISABLED . Dice Modifier String The Dice Modifier String is appended to the roll made by GroupInitiative for each Initiative. It can be used for rerolling 1s or dropping the lower roll, etc. Set Dice Modifiers Dice Modifier String is currently set to  DISABLED . Maximum Decimal Places This is the Maximum number of decimal places to show in the Initiative when Tie-Breakers are rolled. Set Max Decimal Maximum Decimal Places is currently set to  2 . Auto Open Turn Order This option causes GroupInitiative to open the Turn Order whenever it makes an initiative roll. Disable Auto Open Turn Order is currently  On . Replace Roll This option causes GroupInitiative to replace a roll in the Turn Order if a token is already present there when it makes a roll for it. Otherwise, the token is ignored and the current roll is retained. Enable Replace Roll is currently  Off . Check For No Configuration This option causes GroupInitiative to prompt with standard configuration options when it starts up and there are no Stat Groups. You can suppress it by turning it off, in the case that your game is just dice and you don't need Stat Groups. Disable No Configuration Checking is currently  On . Announcer Options The Announcer controls what is shown in chat when a roll is performed. Use None None  -- Shows nothing in chat when a roll is made. Use Hidden Hidden  -- Whispers all rolls to the GM, regardless of who controls the tokens. Selected Partial  -- Character rolls are shown in chat (Player controlled tokens), all others are whispered to the GM. Use Visible Visible  -- Rolls for tokens on the Objects Layer are shown to all in chat. Tokens on the GM Layer have their rolls whispered to the GM. Bonus Stat Groups ( initiative_bonus ) tie-breaker( initiative_bonus ) ⮙ 🚫 moreVertical
When I install Group Initiative from the drop down Mod library, it seems to be broken.  I get this message: Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your script's code and click the "Save Script" button. We will then attempt to start running the scripts again.  More info...  If this script was installed from the Mod Library, you might find help in the Community API Forum. For reference, the error message generated was:  TypeError: Cannot read properties of undefined (reading 'length') TypeError: Cannot read properties of undefined (reading 'length') at new hidden_roll_messages.roll_controller (apiscript.js:60:48) at apiscript.js:396:22 at /home/node/d20-api-server/pubsub.js:63:16 at Object.publish (/home/node/d20-api-server/pubsub.js:68:8) at /home/node/d20-api-server/api.js:1745:14 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) I don't know anything about making or modifying scripts unfortunately so I'm not sure how to fix it. I am using Jumpgate with the 2014 D&D sheet if that helps.