Members
# constant YZUR
All constants used by YZUR which are stored in Foundry's CONFIG.YZUR
.
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
game |
string
|
The identifier for the game |
||
Chat |
Object
|
Options for the chat |
||
showInfos |
boolean
|
<optional> |
true | Whether to show the additional information under the roll result |
diceSorting |
Array.<DieTypeString>
|
<optional> |
['base', 'skill', 'neg', 'gear', 'arto', 'loc', 'ammo'] | Defines the default order |
Roll |
Object
|
Options for the YearZeroRoll class |
||
chatTemplate |
string
|
Path to the chat template |
||
tooltipTemplate |
string
|
Path to the tooltip template |
||
infosTemplate |
string
|
Path to the infos template |
||
Dice |
Object
|
Options for the YearZeroDie class |
||
localizeDieTypes |
boolean
|
<optional> |
true | Whether to localize the type of the die |
DIE_TYPES |
Array.<DieTypeString>
|
An array of YearZeroDie types |
||
DIE_TERMS |
Object.<DieTermString, class>
|
An enumeration of YearZeroDie classes |
||
Icons |
Object
|
Options for the icons and what's on the die faces |
||
getLabel |
function
|
<optional> |
getLabel( type: DieTypeString, result: number ) | A customizable helper function for creating the labels of the die. Note: You must return a string or DsN will throw an error. |
yzGame |
Object.<DieTypeString, Object.<string, (string|number)>>
|
Defines the labels for your dice. Change |
Type Definitions
Object
# DieClassData
An object that is used to build a new class that extends the YearZeroDie class.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string
|
The name of the new Die class |
|
denomination |
DieDeno
|
The denomination of the new Die class |
|
faces |
faces
|
The number of faces of the new Die class |
|
type |
DieTypeString
|
<optional> |
The type of the new Die class |
lockedValues |
Array.<number>
|
<optional> |
An array of values that disallow the die to be pushed |
string
# DieTermString
Defines a term of a YZ die. It's a shortcut to its class.
base
: Base Die (locked on 1 and 6, trauma on 1)skill
: Skill Die (locked on 6)gear
: Gear Die (locked on 1 and 6, gear damage on 1)neg
: Negative Die (locked on 6, negative success)stress
: Stress Die (locked on 1 and 6, stress, panic)artoD8
: D8 Artifact Die (locked on 6+, multiple successes)artoD10
: D10 Artifact Die (locked on 6+, multiple successes)artoD12
: D12 Artifact Die (locked on 6+, multiple successes)a
: Twilight 2000's D12 Die (locked on 1 and 6+, multiple successes)b
: Twilight 2000's D10 Die (locked on 1 and 6+, multiple successes)c
: Twilight 2000's D8 Die (locked on 1 and 6+)d
: Twilight 2000's D6 Die (locked on 1 and 6+)ammo
: Twilight 2000's Ammo Die (locked on 1 and 6, not success but hit)loc
: Twilight 2000's Location DiebrD12
: Blade Runner's D12 Die (locked on 1 and 10+)brD10
: Blade Runner's D10 Die (locked on 1 and 10)brD8
: Blade Runner's D8 Die (locked on 1 and 6+)brD6
: Blade Runner's D6 Die (locked on 1 and 6)
string
# DieTypeString
Defines a type of a YZ die, its generic role and function.
base
: Base Dieskill
: Skill Diegear
: Gear Dieneg
: Negative Diestress
: Stress Diearto
: Artifact Dieammo
: Ammo Dieloc
: Location Die
string
# GameTypeString
Defines a Year Zero game.
myz
: Mutant Year Zerofbl
: Forbidden Landsalien
: Alien RPGcor
: Coriolis The Third Horizontales
: Tales From the Loop & Things From the Floodvae
: Vaesent2k
: Twilight 2000br
: Blade Runner RPG
Object
# TermBlok
An object that is used to define a YearZero DieTerm.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
term |
DieDeno
|
The denomination of the dice to create |
|
number |
number
|
The quantity of those dice |
|
flavor |
string
|
<optional> |
(optional) Any flavor tied to those dice |
maxPush |
number
|
<optional> |
(optional) Special maxPush modifier but only for the those dice |
Object
# YearZeroDieTermResult
Result of a rolled YearZero DieTerm.
Properties:
Name | Type | Description |
---|---|---|
result |
number
|
The numeric result |
active |
boolean
|
Is this result active, contributing to the total? |
count |
number
|
A value that the result counts as, otherwise the result is not used directly as |
success |
boolean
|
Does this result denote a success? |
failure |
boolean
|
Does this result denote a failure? |
discarded |
boolean
|
Was this result discarded? |
rerolled |
boolean
|
Was this result rerolled? |
exploded |
boolean
|
Was this result exploded? |
pushed |
boolean
|
✨ Was this result pushed? |
hidden |
boolean
|
✨ Hides the die for DsN |
indexResult |
number
|
✨ Index of the result, and column position in the chat tooltip |
indexPush |
number
|
✨ Index of the push, and row position in the chat tooltip |
- See:
-
- ✨ Extra features added by the override.
- (FoundryVTT) DieTermResult