Template:Dialogue/doc: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Initial docs)
 
(Expand examples)
Line 1: Line 1:
Set of templates used to aid in formatting transcribed [[dialogue]] trees.
<includeonly>''Transcluded from [[Template:Dialogue/doc]].''</includeonly>
 
Set of templates used to aid in formatting transcribed [[dialogue]] trees. Dialogue trees should exclusively use asterisks or <code><nowiki><ul>/<li></nowiki></code> elements.


;[[Template:Dialogue start]]
;[[Template:Dialogue start]]
Line 9: Line 11:
;[[Template:dcond]]
;[[Template:dcond]]
: Indicates a prerequisite for a dialogue option to be selected, or for a character to respond in a certain way.
: Indicates a prerequisite for a dialogue option to be selected, or for a character to respond in a certain way.
;[[Template:dact]]
: Indicates some kind of action. Includes the following:
{| class="wikitable"
!action!!arguments!!result
|-
|end || end || {{dact|end}}
|-
|previous || previous || {{dact|previous}}
|-
|initial || initial || {{dact|initial}}
|-
|other || other || {{dact|other}}
|-
|above || above || {{dact|above }}
|-
|seeabove || seeabove || {{dact|seeabove}}
|-
|seebelow || seebelow || {{dact|seebelow}}
|-
|continues || continues || {{dact|continues}}
|-
|pay || pay|gold=50 || {{dact|pay|gold=50}}
|}
== Example ==
<templatestyles src="Template:Dialogue/testcss.css"/>
== Introduction ==
{{Dialogue start}}
'''Nettie:''' Give me a moment. I'll be right with you.
* {{dopt|'''Player''': Is there anything I can do to help?}}
** '''Nettie:''' A moment!
** Vis medicatrix...
** There. It's up to her now. Life or death.
** {{dcond|If the player is a Drow or Duergar and has not exposed [[Kagha]]}}
*** '''Nettie:''' Now, what -
*** '''Nettie:''' Drow. Last time I saw one of you folk, he tried to slit me open. I hope you're more agreeable.
*** {{dact|continues|initial-dialogue}}
**** {{dopt|'''Player''': Where did you see another drow?}}
***** '''Nettie:''' That's neither here nor there.
***** Look, you obviously want something. What is it?
*** {{dact|continues|initial-dialogue}}
**** {{dopt|'''Player:''' Enough. I need your abilities.}}
***** '''Nettie:''' Just be glad my bedside manner's better than yours.
***** Come here. Let's have a look at you.
*** {{dact|continues|initial-dialogue}}
**** {{dopt|'''Player:''' That depends. How good of a healer are you?}}
***** '''Nettie:''' A grey dwarf. Never thought I'd meet a decent one, but I heard what you did at the gates.
***** {{dact|continues|initial-dialogue}}
** {{dcond|If the player is a Duergar and has exposed [[Kagha]]}}
*** '''Nettie:''' So. A grey dwarf. Never thought I'd meet a decent one, but I heard what you did out there.
*** {{dact|continues|initial-dialogue}}
** {{dcond|If the player is a Drow and has exposed [[Kagha]]}}
*** '''Nettie:''' So. The last time I saw a drow, he tried to slit me open. I hope you're more agreeable.
*** {{dact|continues|initial-dialogue}}
* {{dopt|'''Player:''' Wait patiently.}}
** {{dact|seebelow|initial-dialogue}}
* {{dopt|'''Player:''' Excuse me? I'm more important than some bird.}}
** '''Nettie:''' I don't care bout you.
** {{dact|continues|initial-dialogue}}
* {{dopt|Leave.}}
** {{dact|end}}
* {{anchor|initial-dialogue}}'''Nettie:''' Now, what was it you needed?
* {{anchor|initial-dialogue}}'''Nettie:''' I'm a busy woman who's here to chew bubblegum and heal birds, and I'm all outta birds.
* {{dact|end}}
{{Dialogue end}}
[[Category:Templates]]

Revision as of 18:16, 28 September 2023


Set of templates used to aid in formatting transcribed dialogue trees. Dialogue trees should exclusively use asterisks or <ul>/<li> elements.

Template:Dialogue start
Starts a dialogue
Template:Dialogue end
Ends a dialogue
Template:dopt
Indicates a (numbered in the game) player option in a dialogue. We don't have numbers because they can vary depending on player flags and dialogue progress.
Template:dcond
Indicates a prerequisite for a dialogue option to be selected, or for a character to respond in a certain way.
Template:dact
Indicates some kind of action. Includes the following:
action arguments result
end end (End of dialogue)
previous previous (Shows previous options)
initial initial (Shows initial options)
other other (Shows other options)
above above (Same as above)
seeabove seeabove (See above)
seebelow seebelow (See below)
continues continues (Continues below)
pay gold=50 (Player pays 50 gold.)

Example

Introduction

Nettie: Give me a moment. I'll be right with you.

  • Player: Is there anything I can do to help?
    • Nettie: A moment!
    • Vis medicatrix...
    • There. It's up to her now. Life or death.
    • (If the player is a Drow or Duergar and has not exposed Kagha)
      • Nettie: Now, what -
      • Nettie: Drow. Last time I saw one of you folk, he tried to slit me open. I hope you're more agreeable.
      • (Continues below)
        • Player: Where did you see another drow?
          • Nettie: That's neither here nor there.
          • Look, you obviously want something. What is it?
      • (Continues below)
        • Player: Enough. I need your abilities.
          • Nettie: Just be glad my bedside manner's better than yours.
          • Come here. Let's have a look at you.
      • (Continues below)
        • Player: That depends. How good of a healer are you?
          • Nettie: A grey dwarf. Never thought I'd meet a decent one, but I heard what you did at the gates.
          • (Continues below)
    • (If the player is a Duergar and has exposed Kagha)
      • Nettie: So. A grey dwarf. Never thought I'd meet a decent one, but I heard what you did out there.
      • (Continues below)
    • (If the player is a Drow and has exposed Kagha)
      • Nettie: So. The last time I saw a drow, he tried to slit me open. I hope you're more agreeable.
      • (Continues below)
  • Player: Wait patiently.
  • Player: Excuse me? I'm more important than some bird.
  • Leave.
    • (End of dialogue)
  • Nettie: Now, what was it you needed?
  • Nettie: I'm a busy woman who's here to chew bubblegum and heal birds, and I'm all outta birds.
  • (End of dialogue)