Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Difference between revisions of "Template:EpicQuest2"

From DFO World Wiki
Jump to: navigation, search
m
m (Undo revision 157579 by Altair (talk))
(Tag: Undo)
 
(11 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | {{#subobject:quest{{#vardefineecho:questnumber|{{#expr:{{#var:questnumber|-1}}+1}}}}
 
{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | {{#subobject:quest{{#vardefineecho:questnumber|{{#expr:{{#var:questnumber|-1}}+1}}}}
 
| Has game context =Quest
 
| Has game context =Quest
| Has name = {{{Name|}}}
+
| Has name ={{{Name|}}}
 +
| Has level requirement = {{#if:{{{Level|}}}|{{{Level|1}}}|1}}
 +
| Has quest sort order = {{#var:questnumber}}
 +
| Has quest type ={{#if:{{{Type|}}}|{{{Type}}}|}}
 
| Has quest giver = {{{NPC|}}}
 
| Has quest giver = {{{NPC|}}}
 
| Has quest location = {{{Dungeon|}}}
 
| Has quest location = {{{Dungeon|}}}
 
| Has quest reward item = {{#arraymap:{{{RewardItem|}}}|;|@@@|{{#explode:@@@| |0}};{{#sub:@@@|{{#pos:@@@| }}}}|###}}|+sep=###
 
| Has quest reward item = {{#arraymap:{{{RewardItem|}}}|;|@@@|{{#explode:@@@| |0}};{{#sub:@@@|{{#pos:@@@| }}}}|###}}|+sep=###
 +
| Has quest reward item = {{#arraymap:{{{RewardItemChoice|}}}|;|@@@|{{#explode:@@@| |0}};{{#sub:@@@|{{#pos:@@@| }}}}|###}}|+sep=###
 +
| Has quest reward item = {{#arraymap:{{{ConditionalRewardItem|}}}|;|@@@|{{#explode:{{#explode:@@@|::|1}}| |0}};{{#sub:{{#explode:@@@|::|1}}|{{#pos:{{#explode:@@@|::|1}}| }}}}|###}}|+sep=###
 +
| Has quest reward item = {{#arraymap:{{{ConditionalRewardItemChoice|}}}|;|@@@|{{#explode:{{#explode:@@@|::|1}}| |0}};{{#sub:{{#explode:@@@|::|1}}|{{#pos:{{#explode:@@@|::|1}}| }}}}|###}}|+sep=###
 
| Has quest objective item = {{#arraymap:{{{ObjectiveItem|}}}|;|@@@|{{#explode:@@@| |0}};{{#sub:@@@|{{#pos:@@@| }}}}|###}}|+sep=###
 
| Has quest objective item = {{#arraymap:{{{ObjectiveItem|}}}|;|@@@|{{#explode:@@@| |0}};{{#sub:@@@|{{#pos:@@@| }}}}|###}}|+sep=###
 
}}
 
}}
 
}}
 
}}
  
|}}<table class=wikitable>
+
|}}<table class=wikitable id="quest{{#var:questnumber}}">
 
<tr>  
 
<tr>  
 
   <th style="width:100px">'''Level'''</th>
 
   <th style="width:100px">'''Level'''</th>
Line 53: Line 59:
 
   <th>'''Upon Completion'''</th>
 
   <th>'''Upon Completion'''</th>
 
   <td style="vertical-align:middle;padding:1em;">{{{Upon Completion}}}</td>
 
   <td style="vertical-align:middle;padding:1em;">{{{Upon Completion}}}</td>
</tr>}}
+
</tr>
 +
}}{{#if: {{{RewardEXP|}}}{{{RewardGold|}}}{{{RewardItem|}}}{{{RewardItemChoice|}}}{{{ConditionalRewardItem|}}}{{{ConditionalRewardItemChoice|}}}{{{RewardOther|}}} |
 
<tr>  
 
<tr>  
 
   <th>'''Rewards'''</th>
 
   <th>'''Rewards'''</th>
   <td>{{#if: {{{RewardEXP|}}} |*[[File:Expicon.png]] {{{RewardEXP}}} Exp}}
+
   <td>{{#if: {{{RewardEXP|}}} |<nowiki></nowiki>
{{#if: {{{RewardGold|}}} |*[[File:Goldicon.png]] {{{RewardGold}}} Gold
+
* [[File:Expicon.png|20x20px]] {{{RewardEXP}}} Exp
}}{{#if: {{{RewardItem|}}} |<ul>{{#arraymap:{{{RewardItem}}}|;|@@@|<li>{{Item|{{#sub:@@@|{{#pos:@@@| }}}} }} ({{#explode:@@@| |0}})</li>|}}</ul>
+
}}{{#if: {{{RewardGold|}}} |<nowiki></nowiki>
}}{{#if: {{{RewardOther|}}} |{{{RewardOther}}} }}
+
* [[File:Goldicon.png|20x20px]] {{{RewardGold}}} Gold
{{#if: {{{Reward|}}} | <span style="color:red">{{{Reward}}}</span>}}</td>
+
}}{{#if: {{{RewardItem|}}} |<nowiki></nowiki>
 +
<ul>{{#arraymap:{{{RewardItem}}}|;|@@@|<li>{{Item|{{#sub:@@@|{{#pos:@@@| }}}} }} ({{#explode:@@@| |0}})</li>|}}</ul>
 +
}}{{#if: {{{RewardItemChoice|}}} |<nowiki></nowiki>
 +
* Choice of one of the following:
 +
:<ul>{{#arraymap:{{{RewardItemChoice}}}|;|@@@|<li>{{Item|{{#sub:@@@|{{#pos:@@@| }}}} }} ({{#explode:@@@| |0}})</li>|}}</ul>
 +
}}{{#if: {{{ConditionalRewardItem|}}} |
 +
{{#arraymap:{{{ConditionalRewardItem}}}|;|@@@|{{#vardefine:condition {{#explode:@@@|::|0}}|{{#var:condition {{#explode:@@@|::|0}}}}<li>{{Item|{{#sub:{{#explode:@@@|::|1}}|{{#pos:{{#explode:@@@|::|1}}| }}}} }} ({{#explode:{{#explode:@@@|::|1}}| |0}})</li>}}
 +
|}}{{#vardefine:column count|0
 +
}}{{#vardefine:column 0
 +
|}}{{#vardefine:column 1
 +
|}}{{#vardefine:column 2
 +
|}}{{#arraymap:{{{ConditionalRewardItem}}}|;|@@@|
 +
 
 +
{{#if:{{#var:condition {{#explode:@@@|::|0}} }}|
 +
{{#vardefine:column {{#var:column count}}|{{#var:column {{#var:column count}}}}{{#explode:@@@|::|0}}<ul>{{#var:condition {{#explode:@@@|::|0}}}}</ul>}}{{#vardefine:condition {{#explode:@@@|::|0}}|}}{{#vardefine:column count|{{#switch:{{#var:column count}}|0=1|1=2|2=0}}}}
 +
}}<!-- end if -->
 +
 
 +
}}<!-- end arraymap --><nowiki></nowiki>
 +
* Items rewarded based on condition:
 +
<table style="margin-left:1.5em;">
 +
  <tr>
 +
    <td valign="top" style="border: 0;">{{#var:column 0}}</td>
 +
    <td valign="top" style="border: 0;">{{#var:column 1}}</td>
 +
    <td valign="top" style="border: 0;">{{#var:column 2}}</td>
 +
  </tr>
 +
</table>
 +
}}{{#if: {{{ConditionalRewardItemChoice|}}} |<nowiki></nowiki>
 +
{{#arraymap:{{{ConditionalRewardItemChoice}}}|;|@@@|{{#vardefine:condition {{#explode:@@@|::|0}}|{{#var:condition {{#explode:@@@|::|0}}}}<li>{{Item|{{#sub:{{#explode:@@@|::|1}}|{{#pos:{{#explode:@@@|::|1}}| }}}} }} ({{#explode:{{#explode:@@@|::|1}}| |0}})</li>}}
 +
|}}{{#vardefine:column count|0
 +
}}{{#vardefine:column 0
 +
|}}{{#vardefine:column 1
 +
|}}{{#vardefine:column 2
 +
|}}{{#arraymap:{{{ConditionalRewardItemChoice}}}|;|@@@|
 +
 
 +
{{#if:{{#var:condition {{#explode:@@@|::|0}} }}|
 +
{{#vardefine:column {{#var:column count}}|{{#var:column {{#var:column count}}}}{{#explode:@@@|::|0}}<ul>{{#var:condition {{#explode:@@@|::|0}}}}</ul>}}{{#vardefine:condition {{#explode:@@@|::|0}}|}}{{#vardefine:column count|{{#switch:{{#var:column count}}|0=1|1=2|2=0}}}}
 +
}}<!-- end if -->
 +
 
 +
}}<!-- end arraymap --><nowiki></nowiki>
 +
* Choice of one of the following based on condition:
 +
<table style="margin-left:1.5em; border: 0;">
 +
  <tr>
 +
    <td valign="top" style="border: 0;">{{#var:column 0}}</td>
 +
    <td valign="top" style="border: 0;">{{#var:column 1}}</td>
 +
    <td valign="top" style="border: 0;">{{#var:column 2}}</td>
 +
  </tr>
 +
</table>
 +
}}{{#if: {{{RewardOther|}}} |<nowiki></nowiki>
 +
{{{RewardOther}}}
 +
}}{{#if: {{{Reward|}}} |<nowiki></nowiki>
 +
<span style="color:red">{{{Reward}}}</span>
 +
}}
 +
  </td>
 
</tr>
 
</tr>
{{#if: {{{Dungeon Map|}}} |
+
}}{{#if: {{{Dungeon Map|}}} |
 
<tr>
 
<tr>
 
   <th>'''Dungeon Map'''</th>
 
   <th>'''Dungeon Map'''</th>
Line 80: Line 139:
  
 
* Has name
 
* Has name
 +
* Has level requirement
 +
* Has quest type
 
* Has quest giver
 
* Has quest giver
 
* Has quest location
 
* Has quest location
Line 91: Line 152:
 
| Name =  
 
| Name =  
 
| Level =  
 
| Level =  
 +
| Type =
 
| NPC =  
 
| NPC =  
 
| Prerequisite =  
 
| Prerequisite =  
Line 102: Line 164:
 
| RewardGold =  
 
| RewardGold =  
 
| RewardItem =  
 
| RewardItem =  
 +
| RewardItemChoice =
 +
| ConditionalRewardItem =
 +
| ConditionalRewardItemChoice =
 
| RewardOther =  
 
| RewardOther =  
 
| Dungeon Map =
 
| Dungeon Map =
Line 111: Line 176:
 
; Name : Optional. Quest name. Setting this is required if you want items to display related quests on the item page.
 
; Name : Optional. Quest name. Setting this is required if you want items to display related quests on the item page.
 
; Level : Quest level.
 
; Level : Quest level.
 +
; Type : Quest type. See [[Property:Has quest type]] for a list of allowed values.
 
; NPC : Quest giver.
 
; NPC : Quest giver.
 
; Prerequisite : Optional. How to obtain the quest.
 
; Prerequisite : Optional. How to obtain the quest.
Line 122: Line 188:
 
; RewardGold : Gold rewarded (just the number).
 
; RewardGold : Gold rewarded (just the number).
 
; RewardItem : Items rewarded. Expected format is <code>quantity item</code>. Separate multiple items with a semicolon.
 
; RewardItem : Items rewarded. Expected format is <code>quantity item</code>. Separate multiple items with a semicolon.
 +
; RewardItemChoice : Selection of items that may be picked as a reward. Expected format is <code>quantity item</code>. Separate multiple items with a semicolon.
 +
; ConditionalRewardItem : Items rewarded that differ based on a certain condition. Expected format is <code>condition::quantity item</code>. Separate multiple items with a semicolon.
 +
; ConditionalRewardItemChoice : Selection of items that differ based on a certain condition that may be picked as a reward. Expected format is <code>condition::quantity item</code>. Separate multiple items with a semicolon.
 
; RewardOther : Bulleted list (*) of any other rewards.
 
; RewardOther : Bulleted list (*) of any other rewards.
 
; Dungeon Map : Map for Scenario Dungeon.
 
; Dungeon Map : Map for Scenario Dungeon.
 
; Notes : Additional information.
 
; Notes : Additional information.
  
[[Category:Formatting Templates]]
+
[[Category:Formatting Templates]][[Category:Subobject Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:17, 31 January 2021

Description

This template creates a box containing information about a quest.

Setting the Name parameter will create a subobject with the following properties:

  • Has name
  • Has level requirement
  • Has quest type
  • Has quest giver
  • Has quest location
  • Has quest objective item
  • Has quest reward item

Usage

{{EpicQuest2
| Name = 
| Level = 
| Type = 
| NPC = 
| Prerequisite = 
| Dungeon = 
| Briefing = 
| Objectives = 
| ObjectiveItem = 
| Dungeon Dialogue = 
| Upon Completion = 
| RewardEXP = 
| RewardGold = 
| RewardItem = 
| RewardItemChoice = 
| ConditionalRewardItem = 
| ConditionalRewardItemChoice = 
| RewardOther = 
| Dungeon Map =
| Notes = 
}}

Parameter

Name 
Optional. Quest name. Setting this is required if you want items to display related quests on the item page.
Level 
Quest level.
Type 
Quest type. See Property:Has quest type for a list of allowed values.
NPC 
Quest giver.
Prerequisite 
Optional. How to obtain the quest.
Dungeon 
Optional. Which dungeon do the quest take place.
Briefing 
Text of quest briefing, as presented in quest details in-game (not your personal briefing).
Objectives 
Steps required to complete the quest, as presented in quest details in-game.
ObjectiveItem 
Required items to complete the quest. Expected format is quantity item. Separate multiple items with a semicolon.
Dungeon Dialogue 
Optional. Text of quest during the dungeon.
Upon Completion 
Text of quest after completing the quest.
RewardEXP 
Experience points rewarded (just the number).
RewardGold 
Gold rewarded (just the number).
RewardItem 
Items rewarded. Expected format is quantity item. Separate multiple items with a semicolon.
RewardItemChoice 
Selection of items that may be picked as a reward. Expected format is quantity item. Separate multiple items with a semicolon.
ConditionalRewardItem 
Items rewarded that differ based on a certain condition. Expected format is condition::quantity item. Separate multiple items with a semicolon.
ConditionalRewardItemChoice 
Selection of items that differ based on a certain condition that may be picked as a reward. Expected format is condition::quantity item. Separate multiple items with a semicolon.
RewardOther 
Bulleted list (*) of any other rewards.
Dungeon Map 
Map for Scenario Dungeon.
Notes 
Additional information.