Difference between revisions of "Template:Quest infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(Created page with "<includeonly><onlyinclude><table class='qtable sortable' style='min-width: 800px; text-align: center; border: 1px solid black;'> <tr style='background-color: #bbbbbb;'> <...")
 
(Changed delimiters to dumber ones)
Line 24: Line 24:
  | 1
  | 1
  | {{{phases|1}}}
  | {{{phases|1}}}
  | {{#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}}}}}}<tr><th style='background-color: #cccccc;' rowspan='{{#var:quest column size}}'>Phase {{#var:phasecount}}<br>{{#if:{{{maxenemies{{#var:phasecount}}|}}}|<abbr title='The maximum amount of enemies that will appear in this phase.'>Max: {{{maxenemies{{#var:phasecount}}|}}}</abbr>}}</th>{{#loop:i
  | {{#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}}}}}}<tr><th style='background-color: #cccccc;' rowspan='{{#var:quest column size}}'>Phase {{#var:phasecount}}<br>{{#if:{{{maxenemies{{#var:phasecount}}|}}}|<abbr title='The maximum amount of enemies that will appear in this phase.'>Max: {{{maxenemies{{#var:phasecount}}|}}}</abbr>}}</th>{{#loop:i
  | 0
  | 0
  | {{#var:quest column size}}
  | {{#var:quest column size}}
  | {{#vardefine:quest enemy|{{#arrayindex:quest transient list|{{#var:i}}}}}}<td style='text-align:left;'>{{#if:{{#explode:{{#var:quest enemy}}|, |0}}|{{Transient icon jp|id={{#explode:{{#var:quest enemy}}|, |0}}}}}}</td>
  | {{#vardefine:quest enemy|{{#arrayindex:quest transient list|{{#var:i}}}}}}<td style='text-align:left;'>{{#if:{{#explode:{{#var:quest enemy}}|@|0}}|{{#explode:{{#var:quest enemy}}|@|0}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|, |1}}|{{#explode:{{#var:quest enemy}}|, |1}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|@|1}}|{{#explode:{{#var:quest enemy}}|@|1}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|, |2}}|{{#explode:{{#var:quest enemy}}|, |2}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|@|2}}|{{#explode:{{#var:quest enemy}}|@|2}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|, |3}}|{{#explode:{{#var:quest enemy}}|, |3}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|@|3}}|{{#explode:{{#var:quest enemy}}|@|3}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|, |4}}|{{#explode:{{#var:quest enemy}}|, |4}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|@|4}}|{{#explode:{{#var:quest enemy}}|@|4}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|, |5}}|{{#explode:{{#var:quest enemy}}|, |5}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|@|5}}|{{#explode:{{#var:quest enemy}}|@|5}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|, |6}}|{{#explode:{{#var:quest enemy}}|, |6}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|@|6}}|{{#explode:{{#var:quest enemy}}|@|6}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest enemy}}|, |7}}|{{#explode:{{#var:quest enemy}}|, |7}}}}</td>{{#vardefine:quest drop|{{#arrayindex:quest drop list|{{#var:i}}}}}}
   <td>{{#if:{{#explode:{{#var:quest enemy}}|@|7}}|{{#explode:{{#var:quest enemy}}|@|7}}}}</td>{{#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|{{Item|id={{#explode:{{#var:quest drop}}|, |0}}}}|{{Transient icon jp|id={{#explode:{{#var:quest drop}}|, |0}}}}}}}}</td>
   <td style='text-align:left;'>{{#if:{{#explode:{{#var:quest drop}}|@|0}}|{{#explode:{{#var:quest drop}}|@|0}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest drop}}|, |1}}|{{#explode:{{#var:quest drop}}|, |1}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest drop}}|@|1}}|{{#explode:{{#var:quest drop}}|@|1}}}}</td>
   <td>{{#if:{{#explode:{{#var:quest drop}}|, |2}}|{{#explode:{{#var:quest drop}}|, |2}}}}</td></tr><tr>
   <td>{{#if:{{#explode:{{#var:quest drop}}|@|2}}|{{#explode:{{#var:quest drop}}|@|2}}}}</td></tr><tr>
}}</tr>}}
}}</tr>}}
</table></includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude>
</table></includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude>

Revision as of 05:46, 23 June 2020

Template documentation[view] [edit] [history] [purge]

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 (;).

  1. transient ID
  2. skill ID (separate multiple skill IDs with "@"; can be substituted with text instead)
  3. LV
  4. Sacred Artifact level
  5. Skill Lv
  6. HP (can be set to "auto" to automatically calculate the value based on the transient's level)
  7. ATK (can be set to "auto" to automatically calculate the value based on the transient's level)
  8. 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.

  1. item ID (also works for transient and AR drops)
  2. drop chance
  3. 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
177014,,60,60,60,auto,auto,x2;

177009,,60,60,60,auto,auto,x2;

177012,,60,60,60,auto,auto,x1
3,100%,x13000;

3,?%,x10000;

79,?%,x1
Phase 2
177009,,60,60,60,auto,auto,x2;

177012,,60,60,60,auto,auto,x2;

175901,,60,60,60,auto,auto,x1
3,?%,x10000;

79,?%,x1;

89,?%,x1
Phase 3
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 3,?%,x10000;

79,100%,x1; 87,?%,x1;

176601,?%,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
116901,360 312 1541 1540,40,1,40,5100,1280,x1; 118101,302 101 351 1540,40,1,40,4330,1800,x1; 118401,302 101 334,??,x3; 334,??,x1
Phase 2
116901,360 312 1541 1540,40,1,40,5100,1280,x1; 118101,302 101 351 1540,40,1,40,4330,1800,x1; 118401,302 101 334,??,x3; 334,??,x2
Phase 3
116901,360 312 1541 1540,40,1,40,5100,1280,x1; 118401,302 101 351 1540,40,1,40,4330,1800,x1; 118101,302 101 334,??,x3
Phase 4
116901,360 312 1541 1540,40,1,40,5100,1280,x1; 118401,302 101 351 1540,40,1,40,4330,1800,x1; 123501,201 349 334,??,x3; 334,??,x1
Phase 5
Phase 6
312,??,x1;

312,??,x1;

312,??,x1
Phase 7
116901,360 312 1541 1540,40,1,40,5100,1280,x1; 118101,302 101 351 1540,40,1,40,4330,1800,x1; 118401,302 101 334,??,x3
Phase 8
116901,360 312 1541 1540,40,1,40,5100,1280,x1; 118101,302 101 351 1540,40,1,40,4330,1800,x1; 123501,201 349 334,??,x3
Phase 9
312,??,x1
Phase 10
116901,360 312 1541 1540,40,1,40,5100,1280,x1; 118401,302 101 351 1540,40,1,40,4330,1800,x1; 118101,302 101 334,??,x50
{{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 Drops
Unit Skills LV SA Lv S Lv HP ATK # Item % Amount
Phase 1
158101,(1 0)-8 722 (1 1)-5 723 724 425 695 (0 2)-0