sr4: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
sr4(times) | sr4(times) | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
sr4(times, gremlins) | sr4(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.}} |
Latest revision as of 17:39, 14 March 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.
sr4() Function
Generates random numbers to emulate dice rolls; the dice are rolled mimicking the dice procedure of Shadowrun 4th Edition.
Usage
sr4(times)
sr4(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.