Template:Qud dialogue:choice row: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(added syntax highlight)
(added an option that lets you show if the dialogue choice ends in a fight)
Line 1: Line 1:
<includeonly>| style="padding: 10px 10px; text-align:left; background: #103837;" |{{Qud text|&amp;W{{{number}}}&amp;y) {{#if: {{{acceptquest|}}}{{{quest|}}}{{{end|}}}|{{{text|{{{tonode}}}}}}|[[{{FULLPAGENAME}}#{{{tonode}}}|{{{text|{{{tonode}}}}}}]]}}}}
<includeonly>| style="padding: 10px 10px; text-align:left; background: #103837;" |{{Qud text|&amp;W{{{number}}}&amp;y) {{#if: {{{acceptquest|}}}{{{quest|}}}{{{end|}}}|{{{text|{{{tonode}}}}}}|[[{{FULLPAGENAME}}#{{{tonode}}}|{{{text|{{{tonode}}}}}}]]}}}}
| style="padding: 10px; width:30%;"|{{#if: {{{comment|}}}{{{acceptquest|}}}{{{quest|}}}{{{step|}}}{{{end|}}} |{{{comment|}}}}}{{#if: {{{acceptquest|}}}|{{Color | W |[Accept Quest:[[{{{acceptquest}}}]]]}}}}{{#if: {{{quest|}}}|{{Color | K |[{{#ifeq: step | reward |Receive Quest Rewards: [[{{{quest}}}#Rewards]]|Complete Quest Step: [[{{{quest}}}{{#if: {{{step|}}}|\#{{{step}}}{{!}}{{{step}}}}}]]}}]}}}}{{#if: {{{end|}}}|{{Color | K |[End]}}}}
| style="padding: 10px; width:30%;"|{{#if: {{{comment|}}}{{{acceptquest|}}}{{{quest|}}}{{{step|}}}{{{end|}}} |{{{comment|}}}}}{{#if: {{{acceptquest|}}}|{{Color | W |[Accept Quest:[[{{{acceptquest}}}]]]}}}}{{#if: {{{quest|}}}|{{Color | K |[{{#ifeq: step | reward |Receive Quest Rewards: [[{{{quest}}}#Rewards]]|Complete Quest Step: [[{{{quest}}}{{#if: {{{step|}}}|\#{{{step}}}{{!}}{{{step}}}}}]]}}]}}}}{{#ifeq: {{{end|}}} | fight |{{Color | R |[Fight]}}|{{Color | K |[End]}}}}
</includeonly><noinclude>[[Category:Templates]]for use in [[Template:Qud dialogue:choice]] only.  
</includeonly><noinclude>[[Category:Templates]]for use in [[Template:Qud dialogue:choice]] only.  
{| class="wikitable"
{| class="wikitable"
Line 16: Line 16:
|-
|-
! end
! end
| set end to something if the choice ends the dialogue.
| set end to something if the choice ends the dialogue. if end= fight, this changes to [Fight]
|-
|-
! acceptquest
! acceptquest

Revision as of 14:04, 4 July 2019

for use in Template:Qud dialogue:choice only.

number choice number
tonode the next node this points to. case sensitive
text the text that is actually shown. defaults to tonode if not specified.
comment any additional notes.
end set end to something if the choice ends the dialogue. if end= fight, this changes to [Fight]
acceptquest adds [accept quest] to the comments. takes title of quest
quest same thing. takes title of quest.
step takes the quest step id associated with it. if step = reward, links to the rewards section of the page and changes [Complete Quest Step] to [Recieve Quest Rewards]. Don't set this to anything if you already have acceptquest set to something.

Example

{{Qud dialogue:choice|
{{Qud dialogue:choice row|number=1|tonode=A|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here!}}
{{!}}-
{{Qud dialogue:choice row|number=2|tonode=B|quest=What's Eating the Watervine?|step=Retrieve a girshling corpse}}}}
1) yadayadaydadayda blah blah blah blah blah any comment here![End]
2) B [Complete Quest Step: Retrieve a girshling corpse][End]