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

Tokens, Init, and a full Bio

Hello All, Thought I would drop this and since I don't see it clearly posted here I am. OS: Windows Browser: Firefox character sheet: Shaped 5E v19.3.0 Error in chat log: SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "s" found. Possible console error (I'm not sure when this showed up): Assertion failed: Input argument is not an HTMLInputElement My character sheet has the "bio and info" tab filled out > Clicked on the token the DM made > Init char is up > Error mentioned in chat log. This only happened with Init, all the other sheet macros rolled. After I removed the bio I was able to roll init. Thanks
1587520907
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Does the character name contain any odd characters: Tim "The Tool Man" Taylor. Clark (Superman) Kent Character @{me} are all examples of names that could cause problems with some APIs and commands.
1587522765

Edited 1587522827
Nope. It's just Jun. Unless that fits the Character example.
1587548359
Ziechael
Forum Champion
Sheet Author
API Scripter
That kind of error usually comes from an incorrectly filled out field, often some rolling syntax in a field that can't handle it or text in a numerical field. Check all the fields that relate to initiative for something 'off' specifically something starting/involving the letter 's'.
I'll check and let you know later.
this is the macro under "abilities and attributes" tab for initiative: @{selected|initiative_roll}@{d20_mod} &{tracker} + 4[dex] It does start with an s, but I don't understand how this with a filled bio would not allow me to roll init. So I'm guessing the first part reads "selected and clicked initiative_roll" since you have to select your token otherwise it doesn't work.
1587590195
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
@{selected|initiative_roll} returns "d20" What is d20mod? It returns "" 4[dex] doesn't do anything. in this context, since it is not part of a die roll. So when sent to the chat, the macro returns d20 &{tracker} + 4[dex] Which is not a properly formatted command. Is there a specific reason you do not wish to use the built in macro?: %{selected|shaped_initiative}
That's the macro from the sheet. I haven't made any customizations.
1587598931
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
%{selected|shaped_initiative} is the name of the built-in macro. The shaped macro for initiative once it is expanded is: @{selected|initiative_output_option} &{template:5e-shaped} {{ability=1}} {{character_name=@{selected|character_name}}} @{selected|show_character_name} {{title=^{INITIATIVE}}} {{@{selected|initiative_roll}=1}} {{roll1=[[@{selected|initiative_formula}]]}} @{selected|attacher_initiative} How are you getting the code from the sheet?
So if I go to my character sheet > go to attributes & abilities > scroll down to initiative_formula. The only other initiative item in that list is the modifier. Screenshot just for reference, if it helps.