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

[RWBY][Testing][Character Sheet Creation][Help Needed] Macro troubles

First, man my topic titles are needlessly long... Okay, with that out of the way. I have to state that I am no genius when it comes to macros. I have some knowledge, but only basic. What I need to accomplish is this: You press the roll button for attack damage, it asks if you are applying extra damage dice and if so, how many extra die to roll. It then takes everything into account and rolls it. I would like to believe this is possible because it sounds straight-forward, but I've only met with failure. I've accomplished it in macros while in-game, but not on a character sheet so I'm starting to doubt if I can get it working. If I've made sense, I would really appreciate it if someone could help me out. Regardless, thank you for your time. I'll leave the code here as well. I know this isn't what the end code would/should look like. This is just what I left it as so I could remember what I was doing when I got back to it. value="/me inflicts [[(1d6+@{RoC}d6)+(?{Bonus Damage|No,[[0]]|Yes,?{Number of Dice|1}d6}}]] damage"
1475051887
Havoc
Sheet Author
API Scripter
This won't work, since it will check every ? for the user to answer. Better have it "/me inflicts [[(1d6+@{RoC}d6)+?{Bonus Damage Dice|0}d6]] damage"
1475051933
Tetsuo
Forum Champion
Raire R. said:  [[(1d6+@{RoC}d6)+(?{Bonus Damage|No,[[0]]|Yes,?{Number of Dice|1}d6}}]] damage" This should look something like this: [[ [[1+@{RoC}]]d6 + [[?{Bonus damage|No, 0| Yes, ?{Number of Dice& #124;1& #125;}]]d6 ]] Delete the spaces between & and #. These are html escape characters. If you use the plaintext symbols, the ?{Bonus damage} query will end at the first } inside the ?number of dice query.  the | inside the number of dice query will also trigger a separate drop down option for the Bonus damage query. Basically, the only way to use a query inside of a query is to use html escape characters. Alternatively, you can do it like this: [[ [[1+@{RoC}]]d6 + [[?{Bonus Damage Dice|0}]]d6 ]] Or even simpler: [[ [[1 + @{RoC} + ?{Bonus Damage Dice|0}]]d6]]
Thank you guys! I was making that needlessly complicated, haha.