Difference between revisions of "Script:Ars Magica 5e Stress Die"
From Roll20 Wiki
(Created page with "<div style="float: {{{1|right}}}; width: 200px; padding: 5px; border: 1px solid #777; margin: 0 15px 15px 15px; background-color: #efefef;"> <span style="text-align:center;dis...") |
Andreas J. (Talk | contribs) (update page with info from dropdown, add category) |
||
(One intermediate revision by one user not shown) | |||
Line 4: | Line 4: | ||
{{script version|1.0}}<br> | {{script version|1.0}}<br> | ||
{{script lastmodified date| 2016-5-26}}<br> | {{script lastmodified date| 2016-5-26}}<br> | ||
− | <span style="font-variant:small-caps">'''Code:''' | + | <span style="font-variant:small-caps">'''Code:''' [https://github.com/Roll20/roll20-api-scripts/tree/master/ArsMagica5eStressDie link] </span><br> |
<span style="font-variant:small-caps">'''Dependencies:''' None </span><br> | <span style="font-variant:small-caps">'''Dependencies:''' None </span><br> | ||
<span style="font-variant:small-caps">'''Conflicts:''' Unknown </span> | <span style="font-variant:small-caps">'''Conflicts:''' Unknown </span> | ||
</div> | </div> | ||
− | + | This allows players to enter <code>!st</code> or <code>!st , </code> (_nomod version: !st or !st ) to roll a stress die with modifier and optional botch dice count . | |
− | + | Botch dice count defaults to 1 when used with one argument. The _nomod version is designed for users who want to add their modifier separately. Multiple botches are possible, and will be reported in the case of a botch. | |
− | + | Note that a result of 1 in the code corresponds to a result of zero in the text, and a 10 in the code is a 1 described in the corebook's text. This does not bias results, as both are special cases. | |
− | + | Only results of 2-9 actually keep their numeric value. A macro for a stress die--modified or otherwise--can be easily made with syntax similar to <code>!st ?{Modifier|0}, ?{Botch Dice|1}</code> | |
− | + | <br> | |
− | + | [[Category:User API Scripts]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | { | + | |
− | + |
Latest revision as of 18:36, 2 May 2020
API Script
Author: Chris L.
Version: 1.0
Last Modified: 2016-5-26
Code: link
Dependencies: None
Conflicts: Unknown
This allows players to enter !st
or !st ,
(_nomod version: !st or !st ) to roll a stress die with modifier and optional botch dice count .
Botch dice count defaults to 1 when used with one argument. The _nomod version is designed for users who want to add their modifier separately. Multiple botches are possible, and will be reported in the case of a botch.
Note that a result of 1 in the code corresponds to a result of zero in the text, and a 10 in the code is a 1 described in the corebook's text. This does not bias results, as both are special cases.
Only results of 2-9 actually keep their numeric value. A macro for a stress die--modified or otherwise--can be easily made with syntax similar to !st ?{Modifier|0}, ?{Botch Dice|1}