Template:Dialogue option: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
(Test changing to advantage icon)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#arraydefine:tags|{{{tags|}}}|,}}{{#if:{{{tags|}}}|{{#arrayprint:tags||@|[{{uc:@}}]}}}}{{#if:{{{roll|}}}|[{{uc:{{{roll}}}}}]}}{{#if:{{{tags|}}}|&nbsp;}}{{{1|}}}{{#if:{{{dc|}}}|&nbsp;(DC {{{dc}}})}}</includeonly><noinclude>{{documentation|content=Used to Visually represent an in-game dialogue option.
<includeonly>{{#arraydefine:tags|{{{tags|}}}|,}}<span style="color: var(--fg-dark)">{{#if:{{{tags|}}}|{{#arrayprint:tags||@|[{{uc:@}}]&nbsp;}}}}{{#if:{{{roll|}}}|[{{uc:{{{roll}}}}}]&nbsp;}}</span>{{{1|}}}{{#if:{{{dc|}}}|&nbsp;(DC {{{dc}}}{{#if:{{{advantage|}}}|&nbsp;{{icon|Advantage Icon.png|20}}}})}}</includeonly><noinclude>{{documentation|content=Used to Visually represent an in-game dialogue option.


== Usage ==
== Usage ==
<pre>{{Dialogue option|<dialogue text>|tags=<tags>|roll=<roll type>|dc=<difficulty class>}}</pre>
<pre>{{Dialogue option|<dialogue text>|tags=<tags>|roll=<roll type>|dc=<difficulty class>|advantage=<yes or blank>}}</pre>


=== Examples ===
=== Examples ===
{{Template demo
{{Template demo
| style = table
| style = list
| caption 1 = Basic usage
| caption 1 = Basic usage
| <nowiki>{{Dialogue option|I am confident you will survive this!|tags=bard|roll=deception|dc=15}}</nowiki>
| <nowiki>{{Dialogue option|I am confident you will survive this!|tags=bard|roll=deception|dc=15}}</nowiki>
| caption 2 = Multiple tags
| caption 2 = Multiple tags
| <nowiki>{{Dialogue option|Let me sing about our history|tags=Githyanki, Bard|roll=Performance|dc=10}}</nowiki>
| <nowiki>{{Dialogue option|Let me sing about our history|tags=Githyanki, Bard, Cleric|roll=Performance|dc=10}}</nowiki>
| caption 3 = Advantage on roll
| <nowiki>{{Dialogue option|I did what you asked. I killed Gortash, so let him go.|roll=Persuasion|dc=25|advantage=y}}</nowiki>
}}
}}


Line 45: Line 47:
"type": "string",
"type": "string",
             "example": "2, 10, 15, 20",
             "example": "2, 10, 15, 20",
"required": false,
"suggested": true
},
        "advantage": {
"label": "Advantage",
            "description": "If the roll has advantage, usually for contextual reasons",
"type": "string",
            "example": "y, yes",
"required": false,
"required": false,
"suggested": true
"suggested": true

Latest revision as of 19:52, 2 August 2024

Template documentation

Used to Visually represent an in-game dialogue option.

Usage

{{Dialogue option|<dialogue text>|tags=<tags>|roll=<roll type>|dc=<difficulty class>|advantage=<yes or blank>}}

Examples

Basic usage

Markup
{{Dialogue option|I am confident you will survive this!|tags=bard|roll=deception|dc=15}}
Renders as
[BARD] [DECEPTION] I am confident you will survive this! (DC 15)

Multiple tags

Markup
{{Dialogue option|Let me sing about our history|tags=Githyanki, Bard, Cleric|roll=Performance|dc=10}}
Renders as
[GITHYANKI] [BARD] [CLERIC] [PERFORMANCE] Let me sing about our history (DC 10)

Advantage on roll

Markup
{{Dialogue option|I did what you asked. I killed Gortash, so let him go.|roll=Persuasion|dc=25|advantage=y}}
Renders as
[PERSUASION] I did what you asked. I killed Gortash, so let him go. (DC 25 Advantage Icon.png)

Used to Visually represent an in-game dialogue option.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Dialogue text1

The text for the dialogue option

Stringrequired
Tagstags

Comma separated list of the tags you need to have to choose the dialogue option

Example
Barbarian, Bard, Githyanki
Stringsuggested
Roll typeroll

What skill or ability the dice roll is, if there is one

Example
Charisma, Wisdom, Persuasion, Deception, Intimidation
Stringsuggested
Difficulty Classdc

The Difficulty Class of the dice roll is, if there is one

Example
2, 10, 15, 20
Stringsuggested
Advantageadvantage

If the roll has advantage, usually for contextual reasons

Example
y, yes
Stringsuggested