sr4e: Difference between revisions
Jump to navigation
Jump to search
Bubblobill (talk | contribs) No edit summary |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
sr4e(times) | sr4e(times) | ||
</ | </syntaxhighlight> | ||
< | |||
<syntaxhighlight lang="mtmacro" line> | |||
sr4e(times, gremlins) | sr4e(times, gremlins) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|times|The number of times to roll the dice.}} | {{param|times|The number of times to roll the dice.}} | ||
Line 24: | Line 26: | ||
}} | }} | ||
[[Category:Dice Function]] | [[Category:Dice Function]] | ||
Latest revision as of 23:59, 9 February 2023
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
This article needs: Better explanation, examples of usage.
sr4e() Function
Generates random numbers to emulate dice rolls; the dice are rolled mimicking the dice procedure of Shadowrun 4th Edition exploded rolls.
Usage
sr4e(times)
sr4e(times, gremlins)
Parameters
times
- The number of times to roll the dice.gremlins
- This number is subtracted fromtimes
whentimes
is used to determine how many Ones are required for a Glitch or Critical Glitch, defaults to0
.
See Also
For another method of rolling dice, see Dice Expressions.