Difference between revisions of "Template:Quest infobox"
SurtrFan8511 (talk | contribs) |
SurtrFan8511 (talk | contribs) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#arraydefine:hidden phases|{{#var:hide phases|}}|;}}<table class='qtable sortable' style=' | <includeonly><onlyinclude>{{#arraydefine:hidden phases|{{#var:hide phases|}}|;}}{{#vardefine:hide tips|true}}{{#vardefine:show items|false}}{{#forargs:drops||value|{{#if:{{#var:value}}|{{#vardefine:show items|true}}}}}}<table class='qtable sortable' style='width: 100%; | ||
text-align: center; | text-align: center; | ||
border: 1px solid black;'> | border: 1px solid black;'> | ||
Line 5: | Line 5: | ||
<th><abbr title="The amount of runs ran to obtain this quest's data.<!--Statistically, n=30+ will yield sound statistics, but for our use cases, five should be good enough.-->">n={{{n|?}}}</abbr></th> | <th><abbr title="The amount of runs ran to obtain this quest's data.<!--Statistically, n=30+ will yield sound statistics, but for our use cases, five should be good enough.-->">n={{{n|?}}}</abbr></th> | ||
<th colspan='8'>Enemies</th> | <th colspan='8'>Enemies</th> | ||
<th colspan='3'>Drops</th> | {{#ifeq:{{#var:show items}}|true|<th colspan='3'>Drops</th>}} | ||
</tr> | </tr> | ||
<tr style='background-color: #bbbbbb;'> | <tr style='background-color: #bbbbbb;'> | ||
Line 17: | Line 17: | ||
<th style='min-width:25px'><abbr title="The card's base attack used.">ATK</abbr></th> | <th style='min-width:25px'><abbr title="The card's base attack used.">ATK</abbr></th> | ||
<th style='min-width:25px'><abbr title="How many cards of this type will occur in this phase.">#</abbr></th> | <th style='min-width:25px'><abbr title="How many cards of this type will occur in this phase.">#</abbr></th> | ||
<th style='min-width:150px'><abbr title="The item rewarded for clearing this phase.">Item</abbr></th> | {{#ifeq:{{#var:show items}}|true|<th style='min-width:150px'><abbr title="The item rewarded for clearing this phase.">Item</abbr></th> | ||
<th style='min-width:25px'><abbr title="The average percent chance of receiving this item.">%</abbr></th> | <th style='min-width:25px'><abbr title="The average percent chance of receiving this item.">%</abbr></th> | ||
<th style='min-width:25px'><abbr title="The amount rewarded in one drop.">Amount</abbr></th> | <th style='min-width:25px'><abbr title="The amount rewarded in one drop.">Amount</abbr></th>}} | ||
</tr> | </tr> | ||
{{#loop:phasecount | {{#loop:phasecount | ||
| 1 | | 1 | ||
| {{{phases|1}}} | | {{{phases|1}}} | ||
| {{#arraysearch:hidden phases|{{#var:phasecount}}|0||{{#arraydefine:quest transient list|{{{enemies{{#var:phasecount}}|}}}|;}}{{#arraydefine:quest drop list|{{{drops{{#var:phasecount}}|}}}|;}}{{#vardefine:qtl size|{{#arraysize:quest transient list}}}}{{#vardefine:qdl size|{{#arraysize:quest drop list}}}}{{#vardefine:quest column size|{{#ifexpr:{{#var:qtl size|0}} > {{#var:qdl size|0}}|{{#var:qtl size}}|{{#var:qdl size|0}}}}}}{{#ifeq:{{#var:quest column size}}|0||<tr><th style='background-color: #cccccc;' rowspan='{{#var:quest column size}}'>Phase {{#var:phasecount}} | | {{#arraysearch:hidden phases|{{#var:phasecount}}|0||{{#arraydefine:quest transient list|{{{enemies{{#var:phasecount}}|}}}|;}}{{#arraydefine:quest drop list|{{{drops{{#var:phasecount}}|}}}|;}}{{#vardefine:qtl size|{{#arraysize:quest transient list}}}}{{#vardefine:qdl size|{{#arraysize:quest drop list}}}}{{#vardefine:quest column size|{{#ifexpr:{{#var:qtl size|0}} > {{#var:qdl size|0}}|{{#var:qtl size}}|{{#var:qdl size|0}}}}}}{{#ifeq:{{#var:quest column size}}|0||<tr><th style='background-color: #cccccc;' rowspan='{{#var:quest column size}}'>Phase {{#var:phasecount}}{{#if:{{{maxenemies{{#var:phasecount}}|}}}|<br><abbr title='The maximum amount of enemies that will appear in this phase.'>Max: {{{maxenemies{{#var:phasecount}}|}}}</abbr>}}{{#if:{{{obj{{#var:phasecount}}|}}}|<br>Target: {{Quest objective|class={{#explode:{{{obj{{#var:phasecount}}|}}}|,|0}}|key={{#explode:{{{obj{{#var:phasecount}}|}}}|,|1}}|value={{#explode:{{{obj{{#var:phasecount}}|}}}|,|2}}}} }}</th>{{#loop:i | ||
| 0 | | 0 | ||
| {{#var:quest column size}} | | {{#var:quest column size}} | ||
Line 32: | Line 32: | ||
<td>{{#if:{{#explode:{{#var:quest enemy}}|,|1}}|{{#arraydefine:quest enemy skills|{{#explode:{{#var:quest enemy}}|,|1}}|@}}<div class="toccolours mw-collapsible mw-collapsed" style="width:auto; overflow:auto;"> | <td>{{#if:{{#explode:{{#var:quest enemy}}|,|1}}|{{#arraydefine:quest enemy skills|{{#explode:{{#var:quest enemy}}|,|1}}|@}}<div class="toccolours mw-collapsible mw-collapsed" style="width:auto; overflow:auto;"> | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
{{#arrayprint:quest enemy skills| | {{#arrayprint:quest enemy skills||###|{{#ifeq:{{#expr:### < 10000}}|1|{{#masterdata:SkillDescription|###}}|<!--boss skill parsing-->{{#if:{{#explode:###|-|1}}|{{#switch:{{#explode:###|-|0}} | ||
| (0 0) = '''Bottom left''' | |||
| (0 1) = '''Middle left''' | |||
| (0 2) = '''Top left''' | |||
| (1 0) = '''Bottom center''' | |||
| (1 1) = '''Center''' | |||
| (1 2) = '''Top center''' | |||
| (2 0) = '''Bottom right''' | |||
| (2 1) = '''Middle right''' | |||
| (2 2) = '''Top right''' | |||
}} '''square'''{{#ifeq:{{#explode:###|-|1}}|0||{{spaces|1}}({{Weapon|{{#explode:###|-|1}}}})}}|###}}<br>}}}}</div></div>|{{#if:{{#explode:{{#var:quest enemy}}|,|0}}|Default kit}}}}</td><!--skills--> | |||
<td>{{#if:{{#explode:{{#var:quest enemy}}|,|2}}|{{#explode:{{#var:quest enemy}}|,|2}}}}</td><!--LV--> | <td>{{#if:{{#explode:{{#var:quest enemy}}|,|2}}|{{#explode:{{#var:quest enemy}}|,|2}}}}</td><!--LV--> | ||
<td>{{#if:{{#explode:{{#var:quest enemy}}|,|3}}|{{#explode:{{#var:quest enemy}}|,|3}}}}</td><!--SA Lv--> | <td>{{#if:{{#explode:{{#var:quest enemy}}|,|3}}|{{#explode:{{#var:quest enemy}}|,|3}}}}</td><!--SA Lv--> | ||
Line 39: | Line 49: | ||
<td>{{#if:{{#explode:{{#var:quest enemy}}|,|6}}|{{#ifeq:{{#explode:{{#var:quest enemy}}|,|6}}|auto|{{#expr:{{#show:{{#var:quest enemy subobject}}|?Has atk value #}}+{{#show:{{#var:quest enemy subobject}}|?Has atk growth value #}}*({{#explode:{{#var:quest enemy}}|,|2}}-1) round 0}}|{{#explode:{{#var:quest enemy}}|,|6}}}}}}</td><!--ATK--> | <td>{{#if:{{#explode:{{#var:quest enemy}}|,|6}}|{{#ifeq:{{#explode:{{#var:quest enemy}}|,|6}}|auto|{{#expr:{{#show:{{#var:quest enemy subobject}}|?Has atk value #}}+{{#show:{{#var:quest enemy subobject}}|?Has atk growth value #}}*({{#explode:{{#var:quest enemy}}|,|2}}-1) round 0}}|{{#explode:{{#var:quest enemy}}|,|6}}}}}}</td><!--ATK--> | ||
<td>{{#if:{{#explode:{{#var:quest enemy}}|,|7}}|{{#explode:{{#var:quest enemy}}|,|7}}}}</td><!--Number-->{{#vardefine:quest drop|{{#arrayindex:quest drop list|{{#var:i}}}}}} | <td>{{#if:{{#explode:{{#var:quest enemy}}|,|7}}|{{#explode:{{#var:quest enemy}}|,|7}}}}</td><!--Number-->{{#vardefine:quest drop|{{#arrayindex:quest drop list|{{#var:i}}}}}} | ||
<td style='text-align:left;'>{{#if:{{#explode:{{#var:quest drop}}|,|0}}|{{#ifexpr:{{#explode:{{#var:quest drop}}|,|0}} < 100000|{{#ifexpr:{{#explode:{{#var:quest drop}}|,|0}} < 1000|{{Item|id={{#explode:{{#var:quest drop}}|,|0}}}}|{{AR Equipment|id={{#explode:{{#var:quest drop}}|,|0}}}}}}|<!--transient drops-->{{Transient icon|id={{#explode:{{#var:quest drop}}|,|0}}}}}}}}</td><!--item--> | {{#ifeq:{{#var:show items}}|true|<td style='text-align:left;'>{{#if:{{#explode:{{#var:quest drop}}|,|0}}|{{#ifexpr:{{#explode:{{#var:quest drop}}|,|0}} < 100000|{{#ifexpr:{{#explode:{{#var:quest drop}}|,|0}} < 1000|{{Item|id={{#explode:{{#var:quest drop}}|,|0}}}}|{{AR Equipment|id={{#explode:{{#var:quest drop}}|,|0}}}}}}|<!--transient drops-->{{Transient icon|id={{#explode:{{#var:quest drop}}|,|0}}}}}}}}</td><!--item--> | ||
<td>{{#if:{{#explode:{{#var:quest drop}}|,|1}}|{{#explode:{{#var:quest drop}}|,|1}}}}</td><!--% drop--> | <td>{{#if:{{#explode:{{#var:quest drop}}|,|1}}|{{#explode:{{#var:quest drop}}|,|1}}}}</td><!--% drop--> | ||
<td>{{#if:{{#explode:{{#var:quest drop}}|,|2}}|{{#explode:{{#var:quest drop}}|,|2}}}}</td><!--amount--></tr><tr> | <td>{{#if:{{#explode:{{#var:quest drop}}|,|2}}|{{#explode:{{#var:quest drop}}|,|2}}}}</td><!--amount-->}}</tr><tr> | ||
}}</tr>}}}}}} | }}</tr>}}}}}}{{#vardefine:show items|false}} | ||
</table></includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude> | </table>{{#vardefine:hide tips|}}</includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 05:41, 27 November 2020
Description
This template generates an infobox for the quest with the parameters manually entered by the editor. There is no good automated way to get the detailed quest info from the game data, so the research has to be done manually by the player.
Usage
It is not recommended to directly invoke this template. Instead, use{{#masterdata:Quest|<id>}}
Where <id> is the ID of the quest to see the infobox for a corresponding quest, if it exists.
If neccessary, hide phases with , separating the phases with a semicolon.
To see preparsed version of the template, go to https://api.housamo.xyz/housamo/api/parse/quest/?quest_id=<id>
Where <id> is the ID of the quest.
Parameters
n - amount of runs ran to obtain the quest data (shows in the top left)
phases - number of phases in the quest
enemies(phase number) - a list of enemies and their properties. Properties must be separated with a comma (,) and enemy entries themselves with a semicolon (;).
- transient ID
- skill ID (separate multiple skill IDs with "@"; can be substituted with text instead)
- LV
- Sacred Artifact level
- Skill Lv
- HP (can be set to "auto" to automatically calculate the value based on the transient's level)
- ATK (can be set to "auto" to automatically calculate the value based on the transient's level)
- Number of said enemies (to avoid repetition in the table)
items(phase number) - a list of items dropped from the quest. Similarly to enemies, item details must be separated with a comma and entries with a semicolon.
- item ID (also works for transient and AR drops)
- drop chance
- amount of dropped items
obj(phase number) - objective of the quest. Uses Template:Quest objective.
Examples
{{Quest infobox |n=50 |phases=3 |enemies1= 177014,,60,60,60,auto,auto,x2; 177009,,60,60,60,auto,auto,x2; 177012,,60,60,60,auto,auto,x1 |drops1= 3,100%,x13000; 3,?%,x10000; 79,?%,x1 |enemies2= 177009,,60,60,60,auto,auto,x2; 177012,,60,60,60,auto,auto,x2; 175901,,60,60,60,auto,auto,x1 |drops2= 3,?%,x10000; 79,?%,x1; 89,?%,x1 |enemies3= 177014,,60,60,60,auto,auto,x2; 177009,,60,60,60,auto,auto,x2; 177012,,60,60,60,auto,auto,x2; 175902,737@666,60,60,60,auto,auto,x1 |drops3= 3,?%,x10000; 79,100%,x1; 87,?%,x1; 176601,?%,x1 }}
n=50 | Enemies | Drops | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Unit | Skills | LV | SA Lv | S Lv | HP | ATK | # | Item | % | Amount | |
Phase 1 | Giant/Enemy#transient8 | Default kit | 60 | 60 | 60 | 5244 | 4183 | x2 | Coin | 100% | x13000 |
Giant/Enemy#transient3 | Default kit | 60 | 60 | 60 | 5244 | 4183 | x2 | Coin | ?% | x10000 | |
Giant/Enemy#transient6 | Default kit | 60 | 60 | 60 | 5244 | 4183 | x1 | Wood Energy Cluster | ?% | x1 | |
Phase 2 | Giant/Enemy#transient3 | Default kit | 60 | 60 | 60 | 5244 | 4183 | x2 | Coin | ?% | x10000 |
Giant/Enemy#transient6 | Default kit | 60 | 60 | 60 | 5244 | 4183 | x2 | Wood Energy Cluster | ?% | x1 | |
Yasuyori | Default kit | 60 | 60 | 60 | 6087 | 3785 | x1 | Blow Crest | ?% | x1 | |
Phase 3 | Giant/Enemy#transient8 | Default kit | 60 | 60 | 60 | 5244 | 4183 | x2 | Coin | ?% | x10000 |
Giant/Enemy#transient3 | Default kit | 60 | 60 | 60 | 5244 | 4183 | x2 | Wood Energy Cluster | 100% | x1 | |
Giant/Enemy#transient6 | Default kit | 60 | 60 | 60 | 5244 | 4183 | x2 | Slash Crest | ?% | x1 | |
Yasuyori | 60 | 60 | 60 | 6254 | 4158 | x1 | Wood Energy Cluster | 100% | x1 | ||
{{#vardefine:hide phases|2;3;4;5;6;7;8;9}} {{#masterdata:Quest|110007}}
Exploration (Intermediate)
Exploration (Ikebukuro Underground Labyrinth) | ||
Level | 40 | |
Card XP Given | 24000 | |
Board size | 5x4 | |
Award | Transient Stone (Free) x1 | |
Required Quest | サモナーの心得 |
n=1 | Enemies | Drops | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Unit | Skills | LV | SA Lv | S Lv | HP | ATK | # | Item | % | Amount | |
Phase 1 | Yellow Slime | 40 | 1 | 40 | 5100 | 1280 | x1 | ||||
Red Fencer | 40 | 1 | 40 | 4330 | 1800 | x1 | |||||
Yellow Fencer | 40 | 1 | 40 | 4330 | 1800 | x1 | |||||
Aether Einherjar | 40 | 1 | 40 | 5320 | 1900 | x1 | Silver Key of Infinitude Shard | ?? | x1 | ||
Phase 10 | Yellow Slime | 40 | 1 | 40 | 5100 | 1280 | x1 | ||||
Yellow Fencer | 40 | 1 | 40 | 4330 | 1800 | x1 | |||||
Red Fencer | 40 | 1 | 40 | 4330 | 1800 | x1 | |||||
Aether Einherjar | 40 | 1 | 40 | 5320 | 1900 | x1 | |||||
Aether Valkyrie | 40 | 1 | 40 | 3320 | 2000 | x2 | |||||
{{Quest infobox |n=1 |phases=1 |enemies1= 158101,(1 0)-8@722@(1 1)-5@723@724@425@695@(0 2)-0@725@(1 2)-0@725@(2 2)-0@725,70,1,70,500000,4316,x1 |drops1= }}
n=1 | Enemies | |||||||
---|---|---|---|---|---|---|---|---|
Unit | Skills | LV | SA Lv | S Lv | HP | ATK | # | |
Phase 1 | Aegir/Enemy#transient0 | 70 | 1 | 70 | 500000 | 4316 | x1 | |
The above documentation is transcluded from Template:Quest infobox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |