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

[Earthdawn] Calling a macro help

I run a earthdawn game and I have created macros for each dice roll and named them 1, 2 , 3, etc where it rolls the appropriate dice for a step 1 roll etc. My issue is that you can take modifiers in the game dont add directly to a dice roll but change the type of dice being rolled so a +1 modifer to a normal 6 macro actual calls for you to roll the 5 macro. I have tried to have the macro roll the appropriate step roll for example in the following  macro  &{template:default} {{name=Melee Weapons}} {{ #9}} but i need a way for the 9 to be a variable so I can have the right dice rolled. 
I am not 100% on what the final idea is but having something as a choice, try &{template:default} {{name=Melee Weapons}} {{ ?{Roll|1,#1 |2,#2 } }} For a drop down box to select the roll type For more, look into roll queries&nbsp; <a href="https://wiki.roll20.net/Dice_Reference#Roll_Querie" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Roll_Querie</a>... <a href="https://wiki.roll20.net/Macros#Nesting_in_a_Roll_Q" rel="nofollow">https://wiki.roll20.net/Macros#Nesting_in_a_Roll_Q</a>...
Thanks, that gives me a way to make the macro functional. I was ultimately looking for a way to put in modifiers to the roll, but I may have to make a custom character sheet or write a script to handle that.
1458325827

Edited 1458326693
What are the values (i.e. the contents of the Actions field within the Edit Macro window) of the macros #1, #2, etc.? It may be easier to concatenate them into a single macro using a Roll Query.
1458448601

Edited 1458448674
Step Dice &nbsp; &nbsp; &nbsp; &nbsp; Step Dice 1 d4-2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 21 d20+d10+d6 2 d4-1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 22 d20+d10+d8 3 d4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;23 d20+2d10 4 d6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;24 d20+d12+d10 5 d8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;25 d20+d10+d8+d4 6 d10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;26 d20+d10+d8+d6 7 d12 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;27 d20+d10+2d8 8 2d6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;28 d20+2d10+d8 9 d8+d6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;29 d20+d12+d10+d8 10 d10+d6 &nbsp; &nbsp; &nbsp; &nbsp;30 d20+d10+d8+2d6 11 d10+d8 &nbsp; &nbsp; &nbsp; &nbsp; 31 d20+d10+2d8+d6 12 2d10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 32 d20+2d10+d8+d6 13 d12+d10 &nbsp; &nbsp; &nbsp; 33 d20+2d10+2d8 14 d20+d4 &nbsp; &nbsp; &nbsp; &nbsp; 34 d20+3d10+d8 15 d20+d6 &nbsp; &nbsp; &nbsp; &nbsp; 35 d20+d12+2d10+d8 16 d20+d8 &nbsp; &nbsp; &nbsp; &nbsp; 36 2d20+d10+d8+d4 17 d20+d10 &nbsp; &nbsp; &nbsp; 37 2d20+d10+d8+d6 18 d20+d12 &nbsp; &nbsp; &nbsp; 38 2d20+d10+2d8 19 d20+2d6 &nbsp; &nbsp; &nbsp; 39 2d20+2d10+d8 20 d20+d8+d6 &nbsp; 40 2d20+d12+d10+d8 A + or minus mod moves you up and down the step chart and then you roll the dice listed with the step number. With roughly the average result being a +1 or -1 modifier resulting in a average result of +1 or -1. But dice rolls are exploding so &nbsp;you can't just add the modifier as a straight result bonus since it may add or subtract a dice and hence the chance of explosion changing.I built macros for the first 24 steps already but can build the others without a problem its just how to make it easy for the players to enter a modifier &nbsp;and have it roll the right dice for the resulting step.
1458454428

Edited 1458457776
I used&nbsp; Target Number / Successes to write a macro for the first 40 entries in the Step Table. The macro sums an input (e.g. ?{Step|5+4+3}) and rolls the corresponding dice (e.g. 2d10). To demonstrate how the macro works, let's take ?{Step} to be 5+4+3 Then, {?{Step}+d0}=12 evaluates to 1 Likewise, {?{Step}+d0, ?{Step}+d0}=12 evaluates to 2 So, [[ ... +&nbsp;{?{Step}+d0, ?{Step}+d0}=12 + ... ]]d10 evaluates to [[ 0 + ... + 0 + 2 + 0 + ... + 0 ]]d10 = 2d10 Step [[ ?{Step|5+4+3} ]]&nbsp;&nbsp;&nbsp;&nbsp; ⇒&nbsp;&nbsp;&nbsp;&nbsp; [[&nbsp; [[ {?{Step}+d0}&gt;14 + {?{Step}+d0}&gt;36 ]]d20!&nbsp;&nbsp;&nbsp;&nbsp; +&nbsp;&nbsp;&nbsp;&nbsp; [[ {?{Step}+d0}=7 + {?{Step}+d0}=13 + {?{Step}+d0}=18 + {?{Step}+d0}=24 + {?{Step}+d0}=29 + {?{Step}+d0}=35 + {?{Step}+d0}=40 ]]d12!&nbsp;&nbsp;&nbsp;&nbsp; +&nbsp;&nbsp;&nbsp;&nbsp; [[ {?{Step}+d0}=6 + {?{Step}+d0}=10 + {?{Step}+d0}=11 + {?{Step}+d0,?{Step}+d0}=12 + {?{Step}+d0}=13 + {?{Step}+d0}=17 + {?{Step}+d0}&gt;21 + {?{Step}+d0}=23 + {?{Step}+d0}=28 + {?{Step}+d0}=32 + {?{Step}+d0}=33 + {?{Step}+d0,?{Step}+d0}=34 + {?{Step}+d0}=35 + {?{Step}+d0}=39 ]]d10!&nbsp;&nbsp;&nbsp;&nbsp; +&nbsp;&nbsp;&nbsp;&nbsp; [[ {?{Step}+d0}=5 + {?{Step}+d0}=9 + {?{Step}+d0}=11 + {?{Step}+d0}=16 + {?{Step}+d0}=20 + {?{Step}+d0}=22 + {?{Step}+d0}&gt;25 + {?{Step}+d0}=27 + {?{Step}+d0}=31 + {?{Step}+d0}=33 + {?{Step}+d0}=38 ]]d8!&nbsp;&nbsp;&nbsp;&nbsp; +&nbsp;&nbsp;&nbsp;&nbsp; [[ {?{Step}+d0}=4 + {?{Step}+d0,?{Step}+d0}=8 + {?{Step}+d0}=9 + {?{Step}+d0}=10 + {?{Step}+d0}=15 + {?{Step}+d0,?{Step}+d0}=19 + {?{Step}+d0}=20 + {?{Step}+d0}=21 + {?{Step}+d0}=26 + {?{Step}+d0,?{Step}+d0}=30 + {?{Step}+d0}=31 + {?{Step}+d0}=32 + {?{Step}+d0}=37 ]]d6!&nbsp;&nbsp;&nbsp;&nbsp; +&nbsp;&nbsp;&nbsp;&nbsp; [[ {?{Step}+d0}&lt;3 + {?{Step}+d0}=14 + {?{Step}+d0}=25 + {?{Step}+d0}=36 ]]d4!&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp; [[ {?{Step}+d0}&lt;2 * (3 - ?{Step}) ]]&nbsp; ]]
1458459717

Edited 1458459885
That is great Silvyre. I knew there had to be a way to do that, but I would have never figured it out. I tried to follow the logic. I get it at a meta level, but trying to actually understand how the nuts and the bolts of it is beyond me. It seems to be working right but at step 4 it should be rolling just 1d6 and it seems to be rolling a d6 and a d4. I couldn't figure out how to fix that bit.&nbsp; Here is what I had come up with before as a macro.&nbsp;&{template:default} {{name=Default}} {{ ?{Roll |Base,#11 |1,#1 |2,#2 |3,#3 |4,#4 |5,#5 |6,#6 |7,#7 |8,#8 |9,#9 |10,#10 |11,#11 |12,#12 |13,#13 l|14,#14 |15,#15 |16,#16 |17,#17 |18,#18 |19,#19 |20,#20 |21,#21 |22,#22 |23,#23 |24,#24 } }} I like that I can set a base number and the players can just hit enter if there are no mods. I prefer the ability to actually input the modified step number instead of having to select it from the drop down. Is there a way to combine the preset number and the enter the modified number if their is one?
1458460905

Edited 1458461537
Mark L. said: It seems to be working right but at step 4 it should be rolling just 1d6 and it seems to be rolling a d6 and a d4. I couldn't figure out how to fix that bit. For some reason, I had accidentally left "{?{Step}+d0}=4" in the "d4 section". Now fixed. Mark L. said: I like that I can set a base number and the players can just hit enter if there are no mods. I prefer the ability to actually input the modified step number instead of having to select it from the drop down. Is there a way to combine the preset number and the enter the modified number if their is one? Sure; you could replace the 5+4+3 in ?{Step|5+4+3} with 11 or 11+0. Alternatively, you could use a text editor's Find/Replace All function to replace every instance of "?{Step}" with something like "11 + ?{Mod|0}" Or, if you're using Attributes to track steps/ranks, you could replace the 5+4+3 in ?{Step|5+4+3} with "@{Dexterity} + @{Melee_Weapons}" (or append a +0 to that) Alternatively, you could use a text editor's Find/Replace All function to replace every instance of "?{Step}" with something like "@{Dexterity} + @{Melee_Weapons} + ?{Mod|0}"
Okay I got the step 4 problem fixed. Was a cut and paste error on my part. I finally figured out why it was working and had a I am a idiot moment.
I eventually would like to go to actually calculating things by adding the stat attributes and talent ranks. But getting everyone on the same page for that is like herding cats. What you have done here has helped immensely. Here is a copy of my default macro in case its useful to someone else out there. As I work on getting it to add karma dice in I'll post back with that &nbsp;later also. Thank you again for the help. &{template:default} {{name=Talent}} {{Step [[ ?{Step|11} ]] [[ [[ {?{Step}+d0}&gt;14 + {?{Step}+d0}&gt;36 ]]d20! + [[ {?{Step}+d0}=7 + {?{Step}+d0}=13 + {?{Step}+d0}=18 + {?{Step}+d0}=24 + {?{Step}+d0}=29 + {?{Step}+d0}=35 + {?{Step}+d0}=40 ]]d12! + [[ {?{Step}+d0}=6 + {?{Step}+d0}=10 + {?{Step}+d0}=11 + {?{Step}+d0,?{Step}+d0}=12 + {?{Step}+d0}=13 + {?{Step}+d0}=17 + {?{Step}+d0}&gt;21 + {?{Step}+d0}=23 + {?{Step}+d0}=28 + {?{Step}+d0}=32 + {?{Step}+d0}=33 + {?{Step}+d0,?{Step}+d0}=34 + {?{Step}+d0}=35 + {?{Step}+d0}=39 ]]d10! + [[ {?{Step}+d0}=5 + {?{Step}+d0}=9 + {?{Step}+d0}=11 + {?{Step}+d0}=16 + {?{Step}+d0}=20 + {?{Step}+d0}=22 + {?{Step}+d0}&gt;25 + {?{Step}+d0}=27 + {?{Step}+d0}=31 + {?{Step}+d0}=33 + {?{Step}+d0}=38 ]]d8! + [[ {?{Step}+d0}=4 + {?{Step}+d0,?{Step}+d0}=8 + {?{Step}+d0}=9 + {?{Step}+d0}=10 + {?{Step}+d0}=15 + {?{Step}+d0,?{Step}+d0}=19 + {?{Step}+d0}=20 + {?{Step}+d0}=21 + {?{Step}+d0}=26 + {?{Step}+d0,?{Step}+d0}=30 + {?{Step}+d0}=31 + {?{Step}+d0}=32 + {?{Step}+d0}=37 ]]d6! + [[ {?{Step}+d0}&lt;3 + {?{Step}+d0}=14 + {?{Step}+d0}=25 + {?{Step}+d0}=36 ]]d4! - [[ {?{Step}+d0}&lt;2 * (3 - ?{Step}) ]] ]] }} {{Notes: Replace the Talent with your talent or skill name.Replace the number 11 in the ?Step|11 with your talents normal step number. Delete everything else between these braces and add any other notes like strain or effects here. }}
Great! Happy rolling!
1458506215
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator
I have been using the API to do all of the above. I have also been working on an Earthdawn character sheet for a very long time.&nbsp; I will eventually release it to general use, but for right now I am distributing it upon request (PM to me). The character sheet needs the API, and you need to be a Pro user to use the API.
1458637928
Gen Kitty
Forum Champion
Technically speaking, the creator of the game in which you use the character sheet needs to be the Pro user :)