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

Using an input modifier for multiple rolls for Warhammer-Fantasy-Roleplay-2nd-Edition

1501966290

Edited 1501966738
Is there a way to do this without the API Here's the problem On a roll of a 10, a crit (fury), you need to make a reroll with the same modifier as your attack: {{target=[[@{meleetohit1}+?{Modifier|0}]]}} But the sheet has {{furytarget=[[@{meleetohit1}]]}} in the damage roll. It needs to have the same modifier input (?{Modifier|0})  in the earlier attack roll. Is there a way to carry that over?
1501966865

Edited 1501967080
vÍnce
Pro
Sheet Author
Not sure if you can work it into your macro... but if you use the same query within the same macro, you only have to answer it once. Unfortunately you can't carry a result from a previous macro roll without an api script (powercards can do this I believe...)
1502316590

Edited 1502317455
Can you set the value of a character sheet attribute in a roll?' Because, basically the solution to this problem is to put an attribute for modifier in the character sheet, instead of adding afterwards when you click attack roll.
1502317067

Edited 1502317127
Ziechael
Forum Champion
Sheet Author
API Scripter
Not without the API (a pro subscriber perk) sorry However, if the games creator is a pro subscriber they could use  ChatSetAttr
1502335736
Zargon
Sheet Author
Well, Technically you could implement the specific behavior you want without using Pro features, it just isn't something I would advise doing. As Vince mentioned as long as you are making all the rolls at the same time, you don't need to actually store the modifier anywhere, and then using a Roll Template you can display the results.  The issue is that if you use the Default Roll template all of the roll results will display every time you make the roll even if you don't trigger Ulric's Fury.  Now if you were using a custom Roll Template it is actually possible to have the the rolls display based on the results.  Generally speaking you would need to be a Pro user to edit the Character sheet's code to add it for your campaign, however if the change is generally applicable to all users you could submit your changes to the publicly selectable sheet and use it from there however actually writing the changes will be difficult as you won't actually be able to test them.
1502340450

Edited 1502340604
The reason you don't roll them at the same time in this system (WFRP2) is because the target has a chance to dodge/block all damage after the attack roll is made, and showing the damage roll could affect the decision of whether or not to dodge/block. My solution is to not use the modifier popup, but to instead use the box normally reserved for setting the magic weapon bonus. That attribute is used in the calculation for the hit target in both rolls on the custom roll template (meleetohit1) I would edit the custom sheet and add a box on the attack roll page labelled "modifier", set as an attribute and added to the rolls as in the magic weapon bonus, and would remove the dynamic input modifier from the attack rolls. However, I don't want to push this to github as I am unsure of the original author's intentions and preferences.