Template:Dialogue/doc: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Expand examples)
mNo edit summary
 
(4 intermediate revisions by one other user not shown)
Line 4: Line 4:


;[[Template:Dialogue start]]
;[[Template:Dialogue start]]
: Starts a dialogue
: Starts a dialogue. Also tags a page as a transcript.
;[[Template:Dialogue end]]
;[[Template:Dialogue end]]
: Ends a dialogue
: Ends a dialogue
Line 12: Line 12:
: 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]]
;[[Template:dact]]
: Indicates some kind of action. Includes the following:
: Indicates some kind of action, optionally with a link to an anchor on the same page. Includes the following:
{| class="wikitable"
{| class="wikitable"
!action!!arguments!!result
!action!!arguments!!result
Line 36: Line 36:


== Example ==
== Example ==
<templatestyles src="Template:Dialogue/testcss.css"/>
== Introduction ==
{{Dialogue start}}
{{Dialogue start}}
'''Nettie:''' Give me a moment. I'll be right with you.
'''Nettie:''' Give me a moment. I'll be right with you.
Line 47: Line 45:
*** '''Nettie:''' Now, what -
*** '''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.
*** '''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?}}
**** {{dopt|'''Player''': Where did you see another drow?}}
***** '''Nettie:''' That's neither here nor there.
***** '''Nettie:''' That's neither here nor there.
***** Look, you obviously want something. What is it?
***** Look, you obviously want something. What is it?
*** {{dact|continues|initial-dialogue}}
***** {{dact|continues|initial-dialogue}}
**** {{dopt|'''Player:''' Enough. I need your abilities.}}
**** {{dopt|'''Player:''' Enough. I need your abilities.}}
***** '''Nettie:''' Just be glad my bedside manner's better than yours.
***** '''Nettie:''' Just be glad my bedside manner's better than yours.
***** Come here. Let's have a look at you.
***** Come here. Let's have a look at you.
*** {{dact|continues|initial-dialogue}}
***** {{dact|continues|initial-dialogue}}
**** {{dopt|'''Player:''' That depends. How good of a healer are you?}}
**** {{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.
***** '''Nettie:''' A grey dwarf. Never thought I'd meet a decent one, but I heard what you did at the gates.

Latest revision as of 18:30, 24 February 2024


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. Also tags a page as a transcript.
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, optionally with a link to an anchor on the same page. 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

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.
        • 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)