Template:Qud dialogue:choice row: Difference between revisions

Jump to navigation Jump to search
removed acceptquest and added its function to step
(broke some logic. it's fixed now)
(removed acceptquest and added its function to step)
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: {{{quest|}}}{{{end|}}}|{{{text|{{{tonode}}}}}}{{{step|}}} |[[{{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|}}}|{{#ifeq: {{{end|}}} | fight |{{Color | R |[Fight]}}|{{Color | K |[End]}}}}}}
| style="padding: 10px; width:30%;"|{{#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: {{{end|}}}|{{#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 17: Line 18:
! end
! end
| set end to something if the choice ends the dialogue. if end= fight, this changes to [Fight]
| 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
! quest
| same thing. takes title of quest.
| takes title of quest.
|-
|-
! step
! 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.
| 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. if step = accept, just links to the main quest page and changes the message to [Accept Quest]
|}
|}


Navigation menu