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 .
×
May your rolls be merry + bright! 🎄
Create a free account

3.5 Character sheet Initiative problem.

I'm having a problem with the 3.5 character sheet. Every time we click Initiative we get this error.  SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "s" found. The s in the error report is the first selected in the code. Here is the code: &{template:DnD35Initiative} {{name=@{selected|character_name} }} {{check=Initiative:}} {{checkroll= [[ 1d20 + [[ @{selected|init} ]] + ( [[ (@{selected|init}) ]] /100) &{tracker} ]] }}
1557610344
Ziechael
Forum Champion
Sheet Author
API Scripter
This usually happens when there is an incorrect value in one of the sheets attributes. Is it all sheets displaying this issue or just one? Could you supply a screenshot of the initiative/attributes area of one of the sheets? Also, something that comes up from time to time, have you set up a token action called 'initiative' in addition to the existing one, renaming that often helps if you have :)
The only thing that shows up in the sheet attributes is initmacro which displays the same text as the box next to initiative. It also says that there is no character selected even though I have a character token selected. The same thing is happening on other character sheets.  This is all the error messages produced by the code. I don't know if the 3 No character was found for 'selected' is important. I did try to link tokens to the character sheets, but I'm not sure if they are linked properly as the HP doesn't autofill on the tokens. No character was found for 'selected' No character was found for 'selected' No character was found for 'selected' SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "s" found.
Does no one have any other ideas? I have a game tomorrow and I was planning combat.
1557691652

Edited 1557691816
vÍnce
Pro
Sheet Author
If you select a token and enter " @{selected|character_name} " in chat, do you get the character's name?  If not, y our token probably isn't linked properly to the sheet. (this may help: link token's to journals )  If the token is properly linked, I would test @{selected|init} to see if you get the expected value.
Thanks, it appears that linking the tokens made the initiative in the character sheets work.
1557714794
vÍnce
Pro
Sheet Author
No worries.  That's a common oversight.