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

Shadowrun 3E Macro for Falling question

Is it at all possible to create a macro that involves two dice rolls such that the # of successes of the first dice roll determines the Target Number of the second dice roll?  What I'm trying to do is create a macro that rolls a character's Athletics vs Total Height Fallen, then the number of successes from that roll would then reduce the Power of the fall you roll against with the character's Body. For example, Bob falls 6 meters The Power of the fall is 3 (1/2 total distance) Bob rolls his Athletics vs 6 (total distance) and gets 1 success which reduces the Power of the fall by 1 Bob rolls his Body vs a Power of 2 I can't figure out how to work # of successes into another function or how to get it to affect anything.
1442874996

Edited 1442875131
Provided my understanding of the ruleset isn't flawed, I'd probably recommend something like this: /r ?{Body|3}d6>[[ [[ceil(?{Total Height Fallen|6}/2)]] [Power] - ?{Athletics|3}d6>?{Total Height Fallen}!!k[[ceil(?{Total Height Fallen}/2)]] ]]!! The k[[ceil(?{Total Height Fallen}/2)]] part ensures that the resultant target number is nonnegative.
That's great!  Thanks!
One more question.  How would you work in variables for the Adept Power: Free Fall (subtracts from Total Height) and Impact Armor Rating/2 (subtracts from Power)?
/r ?{Body|3}d6>[[ [[{ceil((?{Total Height Fallen|6} - ?{Free Fall (Adept Power) Rating|0})/2) - ceil(?{Impact Armor Rating|0}/2), 0}k1}]] [Power] - ?{Athletics|3}d6>[[{?{Total Height Fallen} - ?{Free Fall (Adept Power) Rating}, 0}k1]]!!k[[{ceil((?{Total Height Fallen} - ?{Free Fall (Adept Power) Rating})/2) - ceil(?{Impact Armor Rating}/2), 0}k1}]] ]]!!