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 .
×

SyntaxError: Expected ....Macro fail

1523182080

Edited 1523182109
Hello I try to make a Marco : &{template:default} {{name= Stats création investigateur 1}} {{Force= [[(3d6)*5]]}} {{Constitution= [[(3d6)*5]]}} {{Dexterité= [[(3d6)*5]]}} {{Apparence= [[(3d6*)5]]}} {{Pouvoir= [[(3d6)*5]]}} {{Chance= [[(3d6)*5]]}} when I try its works but players can't rolls dice its write, and after some minute its begin broken for me too  :  SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|-], [+|-|*|/|%] or [0-9] but ")" found. i dont understand where is the problem =/ can u help me pls <3
1523184943
Ziechael
Forum Champion
Sheet Author
API Scripter
You have a stray ): {{Apparence= [[(3d6* ) 5]]}} However you could drop all the () and it would function fine.
ow this is one error but still broken I dont have correctly a table =  &{template:default} {{name= Stats création investigateur 1}} {{Force= [[(3d6)*5]]}} {{Constitution= [[(3d6)*5]]}} {{Dexterité= [[(3d6)*5]]}} {{Apparence= [[(3d6)*5]]}} {{Pouvoir= [[(3d6)*5]]}} {{Chance= [[(3d6)*5]]}} normay i see that
There is a new line break between &{template:default} {{name= Stats création investigateur 1}} and the rest of the roll template. If you want to have line breaks between portions of a roll template, you must have the opening curly braces ( {{ ) be on the previous line. You will need to use one of these two macros to get it to work properly. &{template:default} {{name= Stats création investigateur 1}} {{Force= [[(3d6)*5]]}} {{Constitution= [[(3d6)*5]]}} {{Dexterité= [[(3d6)*5]]}} {{Apparence= [[(3d6)*5]]}} {{Pouvoir= [[(3d6)*5]]}} {{Chance= [[(3d6)*5]]}} or &{template:default} {{name= Stats création investigateur 1}} {{ Force= [[(3d6)*5]]}} {{ Constitution= [[(3d6)*5]]}} {{ Dexterité= [[(3d6)*5]]}} {{ Apparence= [[(3d6)*5]]}} {{ Pouvoir= [[(3d6)*5]]}} {{ Chance= [[(3d6)*5]]}}