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

Old Problem, new Topic

April 20 (7 years ago)

Edited April 20 (7 years ago)
Hi all,
I have a Problem regarding some Macros. What I want to do is this:
@{selected|?{AttributeName}}

My Macro so far looks like this here:

&{template:default} {{name=Ritualkenntnis Probe}} {{Ritualkenntnis=[[?{Ritualkenntnis}]]}} {{Attribut 1=?{Attribut 1|MU|KL|IN|CH|FF|GE|KO|KK}}} {{Attribut 2=?{Attribut 2|MU|KL|IN|CH|FF|GE|KO|KK}}} {{Attribut 3=?{Attribut 3|MU|KL|IN|CH|FF|GE|KO|KK}}} {{Probe 1=[[1d20]] < [[@{selected|?{Attribut 1|MU|KL|IN|CH|FF|GE|KO|KK}}]]}} {{Probe 2=[[1d20]] < [[@{selected|?{Attribut 2|MU|KL|IN|CH|FF|GE|KO|KK}}]]}} {{Probe 3=[[1d20]] < [[@{selected|?{Attribut 3|MU|KL|IN|CH|FF|GE|KO|KK}}]]}}


I always get the Error "No attribute was found for @{selected|?{Attribut 1}"

Is there a way to fix this?
April 20 (7 years ago)
[Deleted]
Sheet Author
I'm not sure if this would help, but would changing Attribut to Attribute make the difference?
April 20 (7 years ago)
I notice that you're trying to place Roll Queries within Attribute calls (e.g. @{selected|?{Attribute Name|STR|DEX|...}}).

This can't really work because of how the Order of Operations plays out.

To work with the Order of Operations, you'll need to instead place your Attribute calls within Roll Queries. (e.g. ?{Attribute|STR, @{selected|strength}|DEX, ...}):
&{template:default} {{name=Ritualkenntnis Probe
}} {{Ritualkenntnis=[[?{Ritualkenntnis}]]
}} {{Attribut 1=?{Attribut 1|
   MU, [MU](@{selected|MU}) |
   KL, [KL](@{selected|KL}) |
   IN, [IN](@{selected|IN}) |
   CH, [CH](@{selected|CH}) |
   FF, [FF](@{selected|FF}) |
   GE, [GE](@{selected|GE}) |
   KO, [KO](@{selected|KO}) |
   KK, [KK](@{selected|KK}) 
} 
}} {{Attribut 2=?{Attribut 2|
   MU, [MU](@{selected|MU}) |
   KL, [KL](@{selected|KL}) |
   IN, [IN](@{selected|IN}) |
   CH, [CH](@{selected|CH}) |
   FF, [FF](@{selected|FF}) |
   GE, [GE](@{selected|GE}) |
   KO, [KO](@{selected|KO}) |
   KK, [KK](@{selected|KK}) 
} 
}} {{Attribut 3=?{Attribut 3|
   MU, [MU](@{selected|MU}) |
   KL, [KL](@{selected|KL}) |
   IN, [IN](@{selected|IN}) |
   CH, [CH](@{selected|CH}) |
   FF, [FF](@{selected|FF}) |
   GE, [GE](@{selected|GE}) |
   KO, [KO](@{selected|KO}) |
   KK, [KK](@{selected|KK}) 
} 
}} {{Probe 1=[[ 1d20 ]] < ?{Attribut 1} [[ ?{Attribut 1} + {0} ]]
}} {{Probe 2=[[ 1d20 ]] < ?{Attribut 2} [[ ?{Attribut 2} + {0} ]]
}} {{Probe 3=[[ 1d20 ]] < ?{Attribut 3} [[ ?{Attribut 3} + {0} ]]
}}
April 20 (7 years ago)

Edited April 21 (7 years ago)
Thanks a Lot! This worked for me. The Macro now looks like this:

&{template:default} {{name=Ritualkenntnis Probe
}} {{Ritualkenntnis=[[?{Ritualkenntnis}]]
}} {{Attribut 1=?{Attribut 1|
   MU, [MU] [[@{selected|MU}]] |
   KL, [KL] [[@{selected|KL}]] |
   IN, [IN] [[@{selected|IN}]] |
   CH, [CH] [[@{selected|CH}]] |
   FF, [FF] [[@{selected|FF}]] |
   GE, [GE] [[@{selected|GE}]] |
   KO, [KO] [[@{selected|KO}]] |
   KK, [KK] [[@{selected|KK}]] 
} 
}} {{Attribut 2=?{Attribut 2|
   MU, [MU] [[@{selected|MU}]] |
   KL, [KL] [[@{selected|KL}]] |
   IN, [IN] [[@{selected|IN}]] |
   CH, [CH] [[@{selected|CH}]] |
   FF, [FF] [[@{selected|FF}]] |
   GE, [GE] [[@{selected|GE}]] |
   KO, [KO] [[@{selected|KO}]] |
   KK, [KK] [[@{selected|KK}]] 
} 
}} {{Attribut 3=?{Attribut 3|
   MU, [MU] [[@{selected|MU}]] |
   KL, [KL] [[@{selected|KL}]] |
   IN, [IN] [[@{selected|IN}]] |
   CH, [CH] [[@{selected|CH}]] |
   FF, [FF] [[@{selected|FF}]] |
   GE, [GE] [[@{selected|GE}]] |
   KO, [KO] [[@{selected|KO}]] |
   KK, [KK] [[@{selected|KK}]] 
} 
}} {{Probe 1=[[ 1d20 ]] < [[ ?{Attribut 1} + {0} ]]
}} {{Probe 2=[[ 1d20 ]] < [[ ?{Attribut 2} + {0} ]]
}} {{Probe 3=[[ 1d20 ]] < [[ ?{Attribut 3} + {0} ]]
}}