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

Group initiative error

Hi, I am trying to get group initiative API script running, but it keeps popping up this error Could not determine result type of: [{"type":"M","expr":"(-1.94+(0.01*(-1.94)))"},{"type":"C","text":" + (1d20stat-DnD)"}] undefined anybody have any idea what's going wrong here? Aaron.
1592864341
The Aaron
Roll20 Production Team
API Scripter
Can you post the output of !group-init --help Just the config part  It looks like you have something weird in there for dice modifiers.
Configuration Standard Configurations give you some quick options for certain character sheets. If you're using one of these sheets in a pretty standard game, look no further than one of these options. Available Standard Configuration Options: Apply Config D&D 5E by Roll20 This is standard Roll20 provided 5th edition character sheet. It is the one used by default in most 5th edition Modules and all Official Dungeons and Dragons Modules and Addons. Apply Config D&D 5e Shaped Sheet This is the high-powered and very customizable Dungeons and Dragons 5e Shaped Sheet. You'll know you're using it because you had to manually install it (probably) and it has a nice heart shaped hit-point box. This is not the default sheet for DnD Modules on Roll20, if you aren't sure if you're using this sheet, you aren't. 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 Sorting adjusts the order of entries in the Turn Order when the Sort command is issued. 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. Enable Preserve First on Sorted Add is currently  Off . 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  stat-DnD . 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. Use Partial Partial  -- Character rolls are shown in chat (Player controlled tokens), all others are whispered to the GM. Selected 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 + X initiative_bonus|current  +  tie-breaker( initiative_bonus|current )
sorted it. 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  stat-DnD . I disabled this.
1592938228
The Aaron
Roll20 Production Team
API Scripter
Woot.  yeah, that's for things like "kh1" or "r1" or the like.
yeah, not sure where the stat-DnD even came from, i didn't input it lol
I am getting this error in my game that uses 5e Shaped character sheet. It use to work before we took a break because of Covid-19 and when we first started tonight and I was showing the GM how to use it, it was working but later on when it was time to do a battle we kept getting this error. I have tried in another game that uses the 5e OGL sheet and have no problem.
1593407573
The Aaron
Roll20 Production Team
API Scripter
Snow, is that only on a particular character, or any token?  Can you post your settings?
1593408456

Edited 1593420909
I've done some more testing and it is happening on some tokens but not all. (2 PC and 1 NPC) Configuration Standard Configurations give you some quick options for certain character sheets. If you're using one of these sheets in a pretty standard game, look no further than one of these options. Available Standard Configuration Options: Apply Config D&D 5E by Roll20 This is standard Roll20 provided 5th edition character sheet. It is the one used by default in most 5th edition Modules and all Official Dungeons and Dragons Modules and Addons. Apply Config D&D 5e Shaped Sheet This is the high-powered and very customizable Dungeons and Dragons 5e Shaped Sheet. You'll know you're using it because you had to manually install it (probably) and it has a nice heart shaped hit-point box. This is not the default sheet for DnD Modules on Roll20, if you aren't sure if you're using this sheet, you aren't. 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 Sorting adjusts the order of entries in the Turn Order when the Sort command is issued. 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. Enable Preserve First on Sorted Add is currently  Off . 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  0 . 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 + X initiative_formula|current
1593434262
The Aaron
Roll20 Production Team
API Scripter
On the ones that it happens for, what are the contents of the attribute "initiative_formula"?
@{selected|initiative_roll}@{d20_mod} &{tracker} + 2[dex]
1593457470

Edited 1593457504
The Aaron
Roll20 Production Team
API Scripter
What is the content of initiative_roll? And d20_mod?
I could not find what the content of those two are on the sheet, so I checked a player sheet that works and can not find those 2 either in the attributes & abilities tab.
1593466415
The Aaron
Roll20 Production Team
API Scripter
If you select the token and put this in chat, it should print it out: Initiative roll: @{selected|initiative_roll} d20 mod: @{selected|d20_roll}
The first 2 rows is from a token that causes the error, the next 2 rows are from a token that doesn't cause the error. One different between the 2 was the token that causes the error did the que for normal,advantage,disadvantage roll and the second token did not do the que. So I was thinking and switch the character sheet from queing to just normal roll and this time there was no error. So I check the other tokens that caused the error and they were all set to que normal,advantage,disadvantage roll, I switch them to normal roll and they are working too.
1593468449
The Aaron
Roll20 Production Team
API Scripter
AH!  That's what I was what I was looking for.  I figured there was a roll query in there somewhere (because of the "?" part in the error) but didn't think about the query for advantage option.  GroupInitiative won't be compatible with that, you'll either need to set advantage or disadvantage (or the double of each), or normal.  At the point where the API sends the roll to be processed, there is no way to prompt for which one to use and it causes that error.
Thanks for helping me figure it out.