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

What am I doing wrong?

This is the error I'm getting:        TypeError: Cannot read property 'substring' of undefined &{template:default} {{name= @{selected|token_name}'s SKILL CHECK}} {{Roll: = Effect [[2d6 +?{Task difficulty?|MODERATE (+0), 0 [Moderate task]|Simple (+6), 6 [Simple task]|Easy (+4), 4 [Easy task]|Routine (+2), 2 [Routine task] |Difficult (-2), -2 [Difficult task] |Very Difficult (-4), -4 [V Difficult task]|Formidable (-6), -6 [Formidable task]} +?{Ability|STRENGTH, @{Strength} [STR]|DEXTERITY, @{Dexterity} [DEX]|ENDURANCE, @{Endurance} [END]|INTELLIGENCE, @{Intelligence} [INT]|EDUCATION, @{Education} [EDU]|SOCIAL, @{Social} [SOC]|} +?{Skill Level?|NO SKILL, -3 [No skill] |0,0 [skill]|1,1[skill]|2,2 [skill]|3,3 [skill]|4,4 [skill]|5,5 [skill]|6,6 [skill]|} ?{Other Modifiers|0}[DMs] -8 [to find effect] ]]}}
1500009376
vÍnce
Pro
Sheet Author
You may have to make some html substitutions for special characters in your queries. ie substitute " } " for any closing curly bracket used outside of an attribute call.  More info on the wiki:  Advanced Usage for Roll Queries . I would also suggest adding padding (space) before and after any double square brackets used for inline rolls.
1500010283

Edited 1500068506
vÍnce
Pro
Sheet Author
See if this works Updated: Silvyre's helpful insight. (added "selected|" to the attribute calls) &{template:default} {{name= @{selected|token_name}'s SKILL CHECK}} {{Roll: = Effect [[ 2d6 +?{Task difficulty?|MODERATE (+0), 0 [Moderate task]|Simple (+6), 6 [Simple task]|Easy (+4), 4 [Easy task]|Routine (+2), 2 [Routine task] |Difficult (-2), -2 [Difficult task] |Very Difficult (-4), -4 [V Difficult task]|Formidable (-6), -6 [Formidable task]} +?{Ability|STRENGTH, @{selected|Strength} [STR]|DEXTERITY, @{selected|Dexterity} [DEX]|ENDURANCE, @{selected|Endurance} [END]|INTELLIGENCE, @{selected|Intelligence} [INT]|EDUCATION, @{selected|Education} [EDU]|SOCIAL, @{selected|Social} [SOC]|} +?{Skill Level?|NO SKILL, -3 [No skill] |0,0 [skill]|1,1[skill]|2,2 [skill]|3,3 [skill]|4,4 [skill]|5,5 [skill]|6,6 [skill]|} ?{Other Modifiers|0}[DMs] -8 [to find effect] ]]}}
KenB said: TypeError: Cannot read property 'substring' of undefined @{Strength} From the Wiki: Attribute calls (e.g. @{AC}) that are not placed within one of tabs of a Character Window (e.g. within a field on the Character Sheet Tab or within an Ability on the Attributes & Abilities Tab ) must use a keyword to let the parser know which Character you intend to call that Attribute from (e.g. @{selected|AC}). Using a Selected Token with a Macro Using a Targeted Token with a Macro