
Hi everyone, I'm working on a sheet for Blue Planet v2 and have problems with the syntax of skill rolls. Three factors come into play: Attributes, like Build, Fitness, Agility, etc. Abilities, which are in fact the names of skillgroups, and take the value 1, 2, or 3, which is the number of dice to roll for all dependent skills. The skills themselves, which have a score, like 0, 1, 2, etc. The difficulty is that much like in WoD games, the Attribute associated with the skill roll is chosen for each roll, dependent on the situation. Skills are not dependent on a single attribute. However, skills are always dependent on the same ability. The basic formula is: Roll @{Ability} d10, keep lowest 1, < (@{Selected attribute} + @{Skill score}) = success I have two variations of the formula, neither works as intended. For the test I just used the first two Attributes, build and fitness. Btw the @{ADMINISTRATION} bit works correctly, returning 1, 2 , or 3 as is set in the ability "Administration". <button type='roll' value="/roll @{ADMINISTRATION}d10kl1<[[?(Choose an attribute:|"Build",@{BUILD}|"Fitness",@{FITNESS})+@{BUREAUCRACY} ]] " name="roll_bureaucracy"></button>
This returns in the chat: Tomaxx (GM):rolling 3d10kl1<[[?(Choose an attribute:| 3 = 3 <button type='roll' value="/roll @{ADMINISTRATION}d10kl1<[[?(Choose an attribute:|Build, @{BUILD}|Fitness, @{FITNESS})+@{BUREAUCRACY} ]] " name="roll_bureaucracy"></button>
This returns an error message: SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "?" found. I'd be very grateful for help with a correct formula for the Attribute selection part. Thanks in advance :)