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

I *think* I'm looking for help with rolling with advantage...

Hi - any help is appreciated! I'm setting up a game with a homebrew system, and the mechanics are fairly simple, I think - it looks like I can get away with using built-in Attributes and Abilities, rather than creating a full character sheet template with coding and macros.  The system I'm using needs 10 or so attributes, and the player rolls under those attributes to succeed, so it seems that I can just list the attributes on the left of the basic character sheet, and I can set up 10 "abilities" on the right, with each one being "/roll 1d12<@Strength", or whatever that particular attribute is called. The complication is that the system will often call for Advantage or Disadvantage (i.e., best of two rolls or worst of two rolls).  I think setting up 3 abilities for each attribute ("Strength with advantage" "Strength straight" "Strength with disadvantage") will make the whole thing far too unwieldy on screen, so I'm wondering if there's an easy way to "toggle" advantage or disadvantage before someone rolls on the attribute? Or - if there's a more elegant way to do what I'm wanting here, I'd welcome suggestions!
1594842369
Finderski
Plus
Sheet Author
Compendium Curator
If it's the same exact roll, just done a second time so you can take the best/worst no need to double up on anything. You can set up your Ability macro to roll twice. On the second enter the exact roll as the first line.  or you can use inline rolls...something like: roll 1: [[1d12<@Strength]] roll 2: [[1d12<@Strength]]
1594842837

Edited 1594842969
not certain what you're aiming for... but you might try to work from something like this: &{template:default} {{Macro=Fortune D20}} {{r1=[[1d20]] | [[1d20]]  vs ?{attribute|strength @{Selected|strength}|Dexterity @{Selected|Dexterity}|Intelligence @{Selected|Intelligence}}} you could have multiple macros 1 for each die size, then call the attribute in a list for each if that is something you need
1594990335

Edited 1594990398
Thanks! In the end, I went with: Strength: /roll ?{Number of Dice}d12<@{Strength}cs@{Strength}cf12 ...so that it prompts the player to say whether it's one dice or two.  I might change it to rolling two dice and getting the player to ignore one if this ends up being invasive. (I also included the Crit success and Crit fail points, hence the  cs@{Strength}cf12  at the end)
1594993591

Edited 1594993742
Oosh
Sheet Author
API Scripter
You can get the Advantage query, plus an Attribute query all in one macro if you wish? /roll ?{Advantage?|Normal,1d12|Advantage,2d12kh1|Disadvantage,2d12kl1}<?{Attribute| Strength,@{Strength}cs@{Strength}cf12| Dexterity,@{dexterity}cs@{dexterity}cf12| Intelligence,@{intelligence}cs@{intelligence}cf12} There's only 3 Attributes in there, but you get the idea. Note that you can put the line breaks at the pipe | between query options, but nowhere else in the Query. It makes this kind of macro much easier to read. Edit - I think I have Advantage/Disadvantage the wrong way around... it looks like you want to roll LOW in this system, is that right? the kh1 and kl1 operators need to be switched around in that case, I would imagine: having Advantage would be roll twice, keep the lowest die?
Thanks very much! It's based on Whitehack (I'm changing the dice size to D12, it's usually a D20 system), so you're wanting to roll highest, under the stat.  So if you have a Strength of 8, rolling a 1-7 is a pass, and if it's relevant, the higher the roll, the better.  An 8 would be a critical success.  A 9-11 would be a fail, and a 12 is a critical fail.  So, you want to keep the highest dice, *unless* the highest dice is a failure.  As an additional note, if you're rolling with advantage, and pass both dice with the same number, it's even better than a critical success.  If you're rolling with disadvantage, and both rolls are a fail, it's worse than a critical fail. It's fairly intuitive in person, but for an online roll, it would need to decide how many dice to roll, determine which of the dice pass, which fail, and then which dice count as the result. I'm probably okay letting the players work out which of the dice to use as their result, and using the prompt - thanks so much for that! - to determine how many dice to use.
1595557275
Syd
Sheet Author
Hi David, I just added a Whitehack sheet to the Roll 20 sheets. Below I have my logic to do the checks, because these are roll templates it bloats a lot when you add advantage and disadvantage. for your example it would be (D1 = 1d12, D2 = "Nothing, I use it in advantage/dis advantage", D3 = Attr, D4 = 12)  <div class="sheet-template-container"> <div class="template-header">Whitehack</div> <div class="template-header">{{rollname}} Roll</div> <div class="sheet-rolltemplate-saveCheck-results"> <div class="sheet-template-row">Roll: {{D1}}</div> <div class="sheet-template-row">{{rollname}} Attribute {{D3}}</div> {{#rollLess() D1 D3}} <div class="sheet-template-row" style="color:green">Save Check Pass</div> {{/rollLess() D1 D3}} {{#rollTotal() D3 D1}} <div class="sheet-template-row" style="color:green">Save Check Crit Pass</div> {{/rollTotal() D3 D1}} {{#rollTotal() D4 D1}} <div class="sheet-template-row" style="color:red">{{rollname}} Save Check crit Fail</div> {{/rollTotal() D4 D1}} {{#^rollTotal() D4 D1}} {{#rollLess() D3 D1}} <div class="sheet-template-row" style="color:red">Save Check Fail</div> {{/rollLess() D3 D1}} {{/^rollTotal() D4 D1}} </div> </div>
1595557380
Syd
Sheet Author
<button class="genButton" type='roll' value="&{template:saveCheck} {{rollname=Strength}} {{D1=[[1d20]]}} {{D3=[[@{str}]]}} {{D4=[[20]]}}"></button>