8,756
edits
(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|&W{{{number}}}&y) {{#if: | <includeonly>| style="padding: 10px 10px; text-align:left; background: #103837;" |{{Qud text|&W{{{number}}}&y) {{#if: {{{quest|}}}{{{end|}}}|{{{text|{{{tonode}}}}}}{{{step|}}} |[[{{FULLPAGENAME}}#{{{tonode}}}|{{{text|{{{tonode}}}}}}]]}}}} | ||
| style="padding: 10px; width:30%;"|{{#if: {{{comment | | 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] | ||
|- | |- | ||
! quest | ! 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] | ||
|} | |} | ||