sr5: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created stub for Shadowrun 5th edition dice roll function)
 
m (Replaced source tages with syntaxhighlight)
Line 6: Line 6:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
sr4(times)
sr5(times)
</source>
</syntaxhighlight>
<source lang="mtmacro" line>
 
sr4(times, gremlins)
<syntaxhighlight lang="mtmacro" line>
</source>
sr5(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.}}

Revision as of 17:55, 14 July 2022

 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.

sr5() Function

Generates random numbers to emulate dice rolls; the dice are rolled mimicking the dice procedure of Shadowrun 5th Edition.

Usage

sr5(times)
sr5(times, gremlins)

Parameters

  • times - The number of times to roll the dice.
  • gremlins - This number is subtracted from times when times is used to determine how many Ones are required for a Glitch or Critical Glitch, defaults to 0.


See Also

For another method of rolling dice, see Dice Expressions.