Template:Qud dialogue:choice row: Difference between revisions

Jump to navigation Jump to search
Got rid of end and put its functionality in tonode like in game
mNo edit summary
(Got rid of end and put its functionality in tonode like in game)
Line 1: Line 1:
<includeonly>| style="padding: 10px 10px; text-align:left; background: #103837;" |{{Qud text|&amp;W{{{number}}}&amp;y) {{#if: {{{quest|}}}{{{end|}}}|{{{text|}}}|[[{{FULLPAGENAME}}#{{{tonode}}}|{{{text|{{{tonode}}}}}}]]}}}}
<includeonly>| style="padding: 10px 10px; text-align:left; background: #103837;" |{{Qud text|&amp;W{{{number|1}}}&amp;y) {{#if: {{{quest|}}}{{{end|}}}|{{{text|}}}|
| style="padding: 10px; width:35%;"|{{#if: {{{comment|}}}{{{quest|}}}{{{step|}}}{{{end|}}}|{{{comment|}}}{{#ifeq: {{{step|0}}} | accept |{{Color | W |[Accept Quest:[[{{{quest}}}]]]}}|
{{#ifeq:{{{tonode|}}}| end |{{{text|}}}| {{#ifeq:{{{tonode|}}}| endfight | {{{text|}}} |[[{{FULLPAGENAME}}#{{{tonode}}}|{{{text|{{{tonode}}}}}}]]}} }}}}}}
{{#if: {{{quest|}}} |{{Color | K |[{{#ifeq: step | reward |Receive Quest Rewards: [[{{{quest}}}#Rewards]]|Complete Quest Step: [[{{{quest}}}{{#if: {{{step|}}}|\#{{{step}}}{{!}}{{{step}}}}}]]}}]}}}}}}{{#if: {{{end|}}}|{{#ifeq: {{{end|}}} | fight |{{Color | R |[Fight]}}|{{Color | K |[End]}}}}}}
| style="padding: 10px; width:39%;"|{{#if: {{{comment|}}}{{{quest|}}}{{{step|}}}{{{end|}}}|{{{comment|}}}{{#ifeq: {{{step|0}}} | accept |{{Color | W |[Accept Quest:[[{{{quest}}}]]]}}|
{{#if: {{{quest|}}} |{{Color | K |[{{#ifeq: step | reward |Receive Quest Rewards: [[{{{quest}}}#Rewards]]|Complete Quest Step: [[{{{quest}}}{{#if: {{{step|}}}|\#{{{step}}}{{!}}{{{step}}}}}]]}}]}}}}}}{{#if: {{{tonode|}}}|{{#ifeq: {{{tonode|}}} | endfight |{{Color | R |[Fight]}}|{{#ifeq: {{{tonode|}}} | end |{{Color | K |[End]}}}}}}}}
{{#ifeq: {{{step2|0}}} | accept |{{Color | W |[Accept Quest:[[{{{quest2}}}]]]}}|
{{#ifeq: {{{step2|0}}} | accept |{{Color | W |[Accept Quest:[[{{{quest2}}}]]]}}|
{{#if: {{{quest2|}}} |{{Color | K |[{{#ifeq: step2 | reward |Receive Quest Rewards: [[{{{quest2}}}#Rewards]]|Complete Quest Step: [[{{{quest2}}}{{#if: {{{step2|}}}|\#{{{step2}}}{{!}}{{{step2}}}}}]]}}]}}}}}}{{#if: {{{end2|}}}|{{#ifeq: {{{end2|}}} | fight |{{Color | R |[Fight]}}|{{Color | K |[End2]}}}}
{{#if: {{{quest2|}}} |{{Color | K |[{{#ifeq: step2 | reward |Receive Quest Rewards: [[{{{quest2}}}#Rewards]]|Complete Quest Step: [[{{{quest2}}}{{#if: {{{step2|}}}|\#{{{step2}}}{{!}}{{{step2}}}}}]]}}]}}}}}}}}
}}}}
</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"
! number
! number
| choice number
| choice number. defaults to 1 if not specified.
|-
|-
! tonode
! tonode
| the next node this points to. case sensitive
| the next node this points to. case sensitive. if tonode = end or endfight, changes the link what it should be
|-
|-
! text
! text
Line 18: Line 18:
! comment
! comment
| any additional notes.
| any additional notes.
|-
! end
| set end to something if the choice ends the dialogue. if end= fight, this changes to [Fight]
|-
|-
! quest
! quest
Line 30: Line 27:
! quest2
! quest2
| for a second quest argument
| for a second quest argument
|-
! end2
|
|-
|-
! step2
! step2
Line 41: Line 35:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
{{Qud dialogue:choice|
{{Qud dialogue:choice|
{{Qud dialogue:choice row|number=1|tonode=A|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here! |quest=quest 1|step=accept|quest2=quest 2|step2 = step 2|end2=fight}}
{{Qud dialogue:choice row|number=1|tonode=end|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here! |quest=quest 1|step=accept|quest2=quest 2|step2 = step 2}}
{{!}}-  
{{!}}-  
{{Qud dialogue:choice row|number=2|tonode=B|comment = Another comment! |quest=What's Eating the Watervine?|step=Retrieve a girshling corpse}}}}
{{Qud dialogue:choice row|number=2|tonode=endfight|text = Text here!|comment = Another comment! Your mother smelled of elderberries.|}}}}
</syntaxhighlight>
</syntaxhighlight>


{{Qud dialogue:choice|
{{Qud dialogue:choice|
{{Qud dialogue:choice row|number=1|tonode=A|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here! |quest=quest 1|step=accept|quest2=quest 2|step2 = step 2|end2=fight}}
{{Qud dialogue:choice row|number=1|tonode= end |text=yadayadaydadayda blah blah blah blah blah|comment=any comment here! |quest=quest 1|step=accept|quest2=quest 2|step2 = step 2}}
{{!}}-  
{{!}}-  
{{Qud dialogue:choice row|number=2|tonode=B|comment = Another comment! |quest=What's Eating the Watervine?|step=Retrieve a girshling corpse}}}}
{{Qud dialogue:choice row|number=2|tonode=endfight|text = Text here!|comment = Another comment! Your mother smelled of elderberries.|}}}}

Navigation menu