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 4E] Adding Karma step

May 12 (7 years ago)
Dougansf
Pro
Sheet Author
Thanks to Silvyre, we have this great macro to roll Earthdawns step chart.

--Rolled|**[[ [[{1e3, 8}<[[{?{Step} - 11, 0}kh1 % 11]] + floor([[{?{Step} - 11, 0}kh1]] / 11)]]d20! + [[{2, 4, 5, 6, 7}=[[{?{Step}, 0}kh1 % 11]] + {1, 3}=[[{?{Step}, 0}kh1]] + {1e3, 3}=[[{?{Step} - 11, 0}kh1 % 11]] * 2]]d[[{{(?{Step} - 1) * 2, 4}kh1, {12}}kl1]]! + [[{1e3, 8}<[[{?{Step}, 0}kh1]] * (1 - {3, 6, 10}=[[{?{Step}, 0}kh1 % 11]] + {1, 4, 8}=[[{?{Step}, 0}kh1 % 11]])]]d[[10 - {4, 5, 8, 9}=[[{?{Step}, 0}kh1 % 11]] * 4]]! + [[{1e3, 8}<[[{?{Step}, 0}kh1]] * ({0, 5, 7, 9}=[[{?{Step}, 1}kh1 % 11]] + 2 * {6, 10}=[[{?{Step}, 0}kh1 % 11]])]]d8! - [[{1, 2}=[[{?{Step}, 0}kh1]] * (3 - [[{?{Step}, 0}kh1]])]] + ?{Karma #}d@{KarmaDie}! ]]**

I've found that some creatures have a Karma Step that includes more than one die.  I was wondering if there was a way to change it to rolling the Karma step (therefor rolling on the step chart again) and adding it to the base roll.  It still needs to be able to spend multiple Karma at once.
May 12 (7 years ago)
Something like this?
[[ [[{1e3, 8}<[[{?{Step} - 11, 0}kh1 % 11]] + floor([[{?{Step} - 11, 0}kh1]] / 11)]]d20! + [[{2, 4, 5, 6, 7}=[[{?{Step}, 0}kh1 % 11]] + {1, 3}=[[{?{Step}, 0}kh1]] + {1e3, 3}=[[{?{Step} - 11, 0}kh1 % 11]] * 2]]d[[{{(?{Step} - 1) * 2, 4}kh1, {12} }kl1]]! + [[{1e3, 8}<[[{?{Step}, 0}kh1]] * (1 - {3, 6, 10}=[[{?{Step}, 0}kh1 % 11]] + {1, 4, 8}=[[{?{Step}, 0}kh1 % 11]])]]d[[10 - {4, 5, 8, 9}=[[{?{Step}, 0}kh1 % 11]] * 4]]! + [[{1e3, 8}<[[{?{Step}, 0}kh1]] * ({0, 5, 7, 9}=[[{?{Step}, 1}kh1 % 11]] + 2 * {6, 10}=[[{?{Step}, 0}kh1 % 11]])]]d8! - [[{1, 2}=[[{?{Step}, 0}kh1]] * (3 - [[{?{Step}, 0}kh1]])]] + [[{1e3, 8}<[[{?{Karma|0} - 11, 0}kh1 % 11]] + floor([[{?{Karma} - 11, 0}kh1]] / 11)]]d20! + [[{2, 4, 5, 6, 7}=[[{?{Karma}, 0}kh1 % 11]] + {1, 3}=[[{?{Karma}, 0}kh1]] + {1e3, 3}=[[{?{Karma} - 11, 0}kh1 % 11]] * 2]]d[[{{(?{Karma} - 1) * 2, 4}kh1, {12} }kl1]]! + [[{1e3, 8}<[[{?{Karma}, 0}kh1]] * (1 - {3, 6, 10}=[[{?{Karma}, 0}kh1 % 11]] + {1, 4, 8}=[[{?{Karma}, 0}kh1 % 11]])]]d[[10 - {4, 5, 8, 9}=[[{?{Karma}, 0}kh1 % 11]] * 4]]! + [[{1e3, 8}<[[{?{Karma}, 0}kh1]] * ({0, 5, 7, 9}=[[{?{Karma}, 1}kh1 % 11]] + 2 * {6, 10}=[[{?{Karma}, 0}kh1 % 11]])]]d8! - [[{1, 2}=[[{?{Karma}, 0}kh1]] * (3 - [[{?{Karma}, 0}kh1]])]] ]]
May 12 (7 years ago)
Dougansf
Pro
Sheet Author
Thanks.  That has allowed for karma to be a Step value.

How can we make it so that you can choose to use multiple Karma?
May 12 (7 years ago)

Edited May 12 (7 years ago)
Would multiplying the number of dice typically rolled by the amount of Karma spent work?
[[ [[{1e3, 8}<[[{?{Step} - 11, 0}kh1 % 11]] + floor([[{?{Step} - 11, 0}kh1]] / 11)]]d20! + [[{2, 4, 5, 6, 7}=[[{?{Step}, 0}kh1 % 11]] + {1, 3}=[[{?{Step}, 0}kh1]] + {1e3, 3}=[[{?{Step} - 11, 0}kh1 % 11]] * 2]]d[[{{(?{Step} - 1) * 2, 4}kh1, {12} }kl1]]! + [[{1e3, 8}<[[{?{Step}, 0}kh1]] * (1 - {3, 6, 10}=[[{?{Step}, 0}kh1 % 11]] + {1, 4, 8}=[[{?{Step}, 0}kh1 % 11]])]]d[[10 - {4, 5, 8, 9}=[[{?{Step}, 0}kh1 % 11]] * 4]]! + [[{1e3, 8}<[[{?{Step}, 0}kh1]] * ({0, 5, 7, 9}=[[{?{Step}, 1}kh1 % 11]] + 2 * {6, 10}=[[{?{Step}, 0}kh1 % 11]])]]d8! - [[{1, 2}=[[{?{Step}, 0}kh1]] * (3 - [[{?{Step}, 0}kh1]])]] + [?{Karma Spent|0} Karma spent] [[?{Karma Spent} * ({1e3, 8}<[[{@{karma_step} - 11, 0}kh1 % 11]] + floor([[{@{karma_step} - 11, 0}kh1]] / 11))]]d20! + [[?{Karma Spent} * ({2, 4, 5, 6, 7}=[[{@{karma_step}, 0}kh1 % 11]] + {1, 3}=[[{@{karma_step}, 0}kh1]] + {1e3, 3}=[[{@{karma_step} - 11, 0}kh1 % 11]] * 2)]]d[[{{(@{karma_step} - 1) * 2, 4}kh1, {12} }kl1]]! + [[?{Karma Spent} * ({1e3, 8}<[[{@{karma_step}, 0}kh1]] * (1 - {3, 6, 10}=[[{@{karma_step}, 0}kh1 % 11]] + {1, 4, 8}=[[{@{karma_step}, 0}kh1 % 11]]))]]d[[10 - {4, 5, 8, 9}=[[{@{karma_step}, 0}kh1 % 11]] * 4]]! + [[?{Karma Spent} * ({1e3, 8}<[[{@{karma_step}, 0}kh1]] * ({0, 5, 7, 9}=[[{@{karma_step}, 1}kh1 % 11]] + 2 * {6, 10}=[[{@{karma_step}, 0}kh1 % 11]]))]]d8! - [[?{Karma Spent} * ({1, 2}=[[{@{karma_step}, 0}kh1]] * (3 - [[{@{karma_step}, 0}kh1]]))]] ]]
May 12 (7 years ago)
Dougansf
Pro
Sheet Author
That seems to do it!

Thanks again!

(Now to replace every roll on my character sheet again...)
May 12 (7 years ago)
Great, happy to help!