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

I need HELP

hi there, I'm calamity GM and manage a french game "cat's la mascarade" ther's no charactere sheet in roll20 so I've completed the "Attributes" & "Abilities" I crated this: /me utilise un talent /r ?{Nv Talent}*2+5 /roll ?{CHANCE}d10k1 + {@{G'Raw ( Mac Giver )|VIGUEUR}*2} + ?{Héroïsme|0} and that works pretty whel but I need a second to use attributes with request. right now this is what I have: /me utilise un Attribut /roll ?{Chance}d10k1 + {?{Attribut : @G'Raw ( Mac Giver )|FORCE::@G'Raw ( Mac Giver )|VIGUEUR : @G'Raw ( Mac Giver )|AGILITE:@G'Raw ( Mac Giver )|PRECISION : @G'Raw ( Mac Giver )|INTELLIGENCE : @G'Raw ( Mac Giver )|VOLONTE : @G'Raw ( Mac Giver )|INTUITION : @G'Raw ( Mac Giver )|SOCIABILITE}*2} + ?{Héroïsme|0} + ?{Bonus +/-|0} but doesn't work at all. that roll the number of dice (=Chance) and keep the higher that request for the Attribute to use but doesn't works after even it no more add the Héroïsme nor Bonus value I think I'm close to the succes but PLEASE HELP ME I don't anderstand the problem thank you for reading and helpping calamity
1613331657
GiGs
Pro
Sheet Author
API Scripter
Your code for the attribute calls is wrong, also the query. A query is in this form:  ?{query prompt|display text, value|display text,value} you have a bunch of colons (:) where commas should be, and the first line of the query looks like its missing the display text. Also, your attrubyte calls are missing the curly brackets { }, your example macro at the start is correct: @ { G'Raw ( Mac Giver )|VIGUEUR } It looks like you also have curly brackets around the query x2 value, which might cause an error. {} brackets there are expecting a group roll - that is more than than one value or roll.  Based on those, I think your roll should be /me utilise un Attribut /roll ?{Chance|1}d10k1 + ?{Attribut| FORCE, @{G'Raw ( Mac Giver )|FORCE}| VIGEUR, @{G'Raw ( Mac Giver )|VIGUEUR}| AGILITE, @{G'Raw ( Mac Giver )}|AGILITE}| PRECISION, @{G'Raw ( Mac Giver )|PRECISION}| INTELLIGENCE, @{G'Raw ( Mac Giver )|INTELLIGENCE}| VOLONTE, @{G'Raw ( Mac Giver )|VOLONTE}| INTUITION, @{G'Raw ( Mac Giver )|INTUITION}| SOCIABILITE, @{G'Raw ( Mac Giver )|SOCIABILITE} *2 + ?{Héroïsme|0} + ?{Bonus +/-|0} Note that you can put linebreaks after the | in a query, not an attribute , which makes it easier to read.
1613331778

Edited 1613481693
GiGs
Pro
Sheet Author
API Scripter
Also note: if you link the character to a token, you can reusie this macro for any character, by replacing the character name with selected , like so @{selected|character_name} utilises un Attribut /roll ?{Chance|1}d10k1 + ?{Attribut| FORCE, @{selected|FORCE}| VIGEUR, @{selected|VIGUEUR}| AGILITE, @{selected|AGILITE}| PRECISION, @{selected|PRECISION}| INTELLIGENCE, @{selected|INTELLIGENCE}| VOLONTE, @{selected|VOLONTE}| INTUITION, @{selected|INTUITION}| SOCIABILITE, @{selected|SOCIABILITE} *2 + ?{Héroïsme|0} + ?{Bonus +/-|0}
Hi GIGs thank you very much for helping that run better but for a mysterious stuff the macro cut after "AGILITE" so the menu that shows contain only 3 Attributes, that player can make his choice, pretty nice moreover, it doesn't multiplicate by 2 and no more add "Héroïsme" nor "Bonus"
1613454083
Oosh
Sheet Author
API Scripter
There's a typo there - the first } brace needs to be removed from @{selected } |AGILITE}|
1613481712
GiGs
Pro
Sheet Author
API Scripter
Well spotted, Oosh. I've corrected that.