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

Power Card problem...I've missed something basic I'm sure

Trying to make a power card Reflex Roll for my Car Wars game. Cannot get it to display my desired result. It's formatting correctly but not displaying the emote for the Roll Result. Any help or a pointer in the right direction will be much appreciated. FYI  @{selected |DRV } is the selected tokens driver skill. Thanks! !power {{ --name|Reflex Roll --erowbg|#dbd8d8 --orowbg|#b4b1b1 --leftsub|Drive --rightsub|Offensively --reflexroll| [[ [$rr] 1d6 + [[@{selected|DRV}]] ]] -- Roll Result| --?? $rr >5 ?? emote| 0 --?? $rr =5 ?? emote| 1 --?? $rr <=6 ?? emote| 2 }}
1497562809

Edited 1497563209
Ziechael
Forum Champion
Sheet Author
API Scripter
Don't have tags with the same name, you can use the hidden tag feature and formatting to replicate the effect though... also spaces between the syntax and target. Equals should also be '==' :) Your final condition is also likely to apply to a number of results since a roll can be both greater than 5 and equal to or less than 6 or equal to 5 and also less than 6... but i don't know the mechanics of your system so that might be desirable. !power {{ --name|Reflex Roll --erowbg|#dbd8d8 --orowbg|#b4b1b1 --leftsub|Drive --rightsub|Offensively --reflexroll| [[ [$rr] 1d6 + [[@{selected|DRV}]] ]] -- Roll Result| --?? $rr > 5 ?? !emote|**Emote** 0 --?? $rr == 5 ?? !emote2|**Emote** 1 --?? $rr <= 6 ?? !emote3|**Emote** 2 }}
OK so I see my first mistake...I had my greater than and less than conditions reversed....this part is formatted and working correctly: !power {{ --name| Reflex Roll --erowbg|#dbd8d8 --orowbg|#b4b1b1 --leftsub|Drive --rightsub|Offensively --Reflex Roll| [[ [$rr] 1d6 + [[@{selected|DRV}]] ]] The second part I'm still not getting the desired effect, of emote the result of the Reflex Roll....I'm sure it's something basic...any other ideas? --?? $rr <5 ?? emote| 0 --?? $rr ==5 ?? emote2| 1 --?? $rr >=6 ?? emote3| 2 }}
You need a space between the operands and target value such as: < 5 instead of <5
It's always the simplest things you don't see! Thank You!