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"
(add quest sorting index) |
(add ConditionalRewardItem and ConditionalRewardItemChoice parameter) |
||
Line 12: | Line 12: | ||
| 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:{{{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=### | ||
}} | }} | ||
Line 57: | 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: {{{RewardItemChoice|}}} |* Choice of one of the following: | + | * [[File:Goldicon.png|20x20px]] {{{RewardGold}}} Gold |
+ | }}{{#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> | :<ul>{{#arraymap:{{{RewardItemChoice}}}|;|@@@|<li>{{Item|{{#sub:@@@|{{#pos:@@@| }}}} }} ({{#explode:@@@| |0}})</li>|}}</ul> | ||
− | }}{{#if: {{{RewardOther|}}} |{{{RewardOther}}} }} | + | }}{{#if: {{{ConditionalRewardItem|}}} | |
− | {{#if: {{{Reward|}}} | <span style="color:red">{{{Reward}}}</span>}}</td> | + | {{#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">{{#var:column 0}}</td> | ||
+ | <td valign="top">{{#var:column 1}}</td> | ||
+ | <td valign="top">{{#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;"> | ||
+ | <tr> | ||
+ | <td valign="top">{{#var:column 0}}</td> | ||
+ | <td valign="top">{{#var:column 1}}</td> | ||
+ | <td valign="top">{{#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 112: | Line 165: | ||
| RewardItem = | | RewardItem = | ||
| RewardItemChoice = | | RewardItemChoice = | ||
+ | | ConditionalRewardItem = | ||
+ | | ConditionalRewardItemChoice = | ||
| RewardOther = | | RewardOther = | ||
| Dungeon Map = | | Dungeon Map = | ||
Line 134: | Line 189: | ||
; 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. | ; 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> |
Revision as of 17:59, 6 May 2016
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.