Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:Wild Dice"

From Roll20 Wiki

Jump to: navigation, search
(Added description of wild die, links)
m
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
{{revdate}}Implements the [https://en.wikipedia.org/wiki/D6_System#The_Wild_Die Wild Dice] rolling mechanic. Used in various d6 systems like [[Star Wars D6]].
 +
<br>
 +
<br>
 
{{script overview
 
{{script overview
 
|name=WildDice
 
|name=WildDice
 
|author={{user profile|104025|Aaron C. M.}}
 
|author={{user profile|104025|Aaron C. M.}}
|version=0.3.2
+
|version=0.3.4
 
|dependencies={{api repository link|IsGM}}
 
|dependencies={{api repository link|IsGM}}
|lastmodified=2017-03-30}}
+
|lastmodified=2020-03-30}}
{{stub}}
+
  
Implements the [https://en.wikipedia.org/wiki/D6_System#The_Wild_Die Wild Dice] rolling mechanic. Used in various d6 systems like [[Star Wars WEG D6 character sheet| Star Wars D6]].
 
<br>
 
<br>
 
 
It replaces one d6 in a given roll with an exploding die, and in the special case of the exploding die rolling a 1, it removes the 1 and the highest die roll from the roll total.
 
It replaces one d6 in a given roll with an exploding die, and in the special case of the exploding die rolling a 1, it removes the 1 and the highest die roll from the roll total.
  
<br clear="all">
+
'''Commands:'''
 +
 
 +
* '''<code><nowiki>!wd [[dice expression]]</nowiki></code>''' example: <code><nowiki>!wd [[4d6+2]]</nowiki></code> rolls 3 normal d6s, and one Wild Die
 +
* '''<code><nowiki>!wwd [[dice expression]]</nowiki></code>''' command to whisper rolls to [[GM]]
 +
* '''<code><nowiki>!wd --help</nowiki></code>''' posts the help menu in the chat.
 +
<br><br>
 +
{{apiboxRec}}
 +
[[File:Wild-Dice-result-v3-4.png]]
 +
=== Examples ===
 +
You can reference character stats in your rolls.
 +
 
 +
{{ex}}
 +
Using the [[SWD6|Star Wars D6]] character sheet, this API command makes a Dexterity roll for character "Bob".
 +
<pre style="overflow:auto;white-space:pre-wrap;">!wd [[(@{Bob|dexterity} -@{Bob|WoundMod} +@{Bob|Force_Up} + ?{Dice mods|0})d6 + @{Bob|dexteritypip} + ?{Other Mods(pip)|0}]]</pre>
 +
 
 +
The dice expression is based on the sheet's original macro for making a dexterity roll:
 +
<pre style="overflow:auto;white-space:pre-wrap;">&{template:swd6} {{name=Dexterity}} {{Roll=[[(@{Bob|dexterity} -@{Bob|WoundMod} +@{Bob|Force_Up} + ?{Dice mods|0} -1)d6cf0cs7 + @{Bob|dexteritypip} + ?{Other Mods(pip)|0} + 1d6@{Bob|wilddie}]]}}</pre>
  
 
=== Changelog ===
 
=== Changelog ===
 +
{{changelog version|0.3.5|2020-06-08|* {{repo|Roll20/roll20-api-scripts/pull/992 update}} }}
 +
{{changelog version|0.3.4|2020-03-30|* bugfix}}
 
{{changelog version|0.3.2|2017-03-30|* Updated}}
 
{{changelog version|0.3.2|2017-03-30|* Updated}}
 
{{changelog version|0.2|2015-02-28|* Added pips}}
 
{{changelog version|0.2|2015-02-28|* Added pips}}
 
{{changelog version|0.1|2015-02-28|* Release}}
 
{{changelog version|0.1|2015-02-28|* Release}}

Latest revision as of 09:56, 18 February 2022

Implements the Wild Dice rolling mechanic. Used in various d6 systems like Star Wars D6.



API ScriptAuthor: Aaron C. M.
Version: 0.3.4
Last Modified: 2020-03-30
Code: WildDice
Dependencies: IsGM
Conflicts: None

It replaces one d6 in a given roll with an exploding die, and in the special case of the exploding die rolling a 1, it removes the 1 and the highest die roll from the roll total.

Commands:

  • !wd [[dice expression]] example: !wd [[4d6+2]] rolls 3 normal d6s, and one Wild Die
  • !wwd [[dice expression]] command to whisper rolls to GM
  • !wd --help posts the help menu in the chat.



Wild-Dice-result-v3-4.png

[edit] Examples

You can reference character stats in your rolls.


Example:

Using the Star Wars D6 character sheet, this API command makes a Dexterity roll for character "Bob".

!wd [[(@{Bob|dexterity} -@{Bob|WoundMod} +@{Bob|Force_Up} + ?{Dice mods|0})d6 + @{Bob|dexteritypip} + ?{Other Mods(pip)|0}]]

The dice expression is based on the sheet's original macro for making a dexterity roll:

&{template:swd6} {{name=Dexterity}} {{Roll=[[(@{Bob|dexterity} -@{Bob|WoundMod} +@{Bob|Force_Up} + ?{Dice mods|0} -1)d6cf0cs7 + @{Bob|dexteritypip} + ?{Other Mods(pip)|0} + 1d6@{Bob|wilddie}]]}}

[edit] Changelog

v0.3.5 (2020-06-08)


v0.3.4 (2020-03-30)

  • bugfix


v0.3.2 (2017-03-30)

  • Updated


v0.2 (2015-02-28)

  • Added pips


v0.1 (2015-02-28)

  • Release