Template:NPCSub: Difference between revisions

From Exiled Kingdoms Wiki
mNo edit summary
No edit summary
 
(47 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>[[Category:Templates]]</noinclude>
<noinclude>[[Category:Templates]]</noinclude>{{#switch: {{{Step}}}
{{#switch: {{{Step}}}
|findItem={{#if:{{{Drops|}}}|{{#if:{{#pos:{{{Drops}}}|[[{{{Sel}}}]]}}|;[[{{{Name}}}]]}}}}
|findVendItem={{#if:{{{Inventory|}}}|{{#if:{{#pos:;{{{InvI}}};|;{{{Sel}}};}}|;[[{{{Name}}}]]|{{#if:{{#pos:;{{{InvA}}};|;{{{Sel}}};}}|;[[{{{Name}}}]]|{{#if:{{#pos:;{{{InvW}}};|;{{{Sel}}};}}|;[[{{{Name}}}]]}}}}}}}}
|GetVendor={{#if:{{{Inventory|}}}|* [[{{{Name}}}]]}}
|GetQuests={{#if:{{{Quest|}}}|* [[{{{Name}}}]]}}
|GetUseless={{#if:{{{Quest|}}}||{{#if:{{{Actions|}}}||{{#if:{{{Inventory|}}}||* [[{{{Name}}}]]}}}}}}
|GetActions={{#if:{{#pos:{{{Actions}}}|{{{Sel}}}}}|[[{{{Name}}}]];}}
|GetJob={{#if:{{#pos:{{{Job}}}|{{{Sel}}}}}|[[{{{Name}}}]];}}
|SelType={{#ifeq:{{{Sel}}}|{{{Groups}}}|<tr><td>
|SelType={{#ifeq:{{{Sel}}}|{{{Groups}}}|<tr><td>
== [[{{{Name}}}]] ==
== [[{{{Name}}}]] ==
Line 11: Line 17:
===Quests===
===Quests===
{{columns |2|
{{columns |2|
{{TextC|{{{Quest|}}}|SList}}}}}}
{{#invoke:TextC|SList|{{{Quest|}}}}}}}}}
===Drops===
===Drops===
{{columns|2|{{TextC|{{{Drops|}}}|SList}}}}
{{columns|2|
{{#invoke:TextC|SList|{{{Drops|}}}}}}}
{{Tables|MobSub1}}
{{Tables|MobSub1}}
<tr>
{{Tables|MobSub1Input|{{{LevelL|}}}|{{{LevelH|}}}|{{{Armor|}}}|{{{HP|}}}}}
<td>{{{Level|}}}/{{{Level|}}}</td>
<td>{{#if:{{{Armor|}}}|[[File:Shield small.png{{!}}16px{{!}}link=]] {{{Armor}}}}}</td>
<td>{{#if:{{{HP|}}}|[[File:Heart.png{{!}}16px{{!}}link=]] {{{HP}}}}}</td>
</tr>
</table>
{{Tables|MobSub2}}
{{Tables|MobSub2}}
<tr>
{{Tables|MobSub2RInput|{{{RawDmg|}}}|
<td>{{TextC|{{{Base_damage|}}}|Elements}}</td>
{{{RawResist|}}}}}
<td>{{TextC|{{{Extra_damage|}}}|Elements}}</td>
<td>{{#if:{{{Attack_Speed|}}}|[[File:Speed.png{{!}}16px{{!}}link=]] {{{Attack_Speed}}}}}</td>
<td>{{{Critical|}}}</td>
<td>{{MobDPS|{{{Base_damage|}}}|{{{Attack_Speed}}}|{{{Critical|}}}|{{{Extra_damage|}}}}}</td>
<td>{{TextC|{{{Resistances|}}}|Elements}}</td>
</tr>
</table>
{{Tables|MobSub3}}
{{Tables|MobSub3}}
<tr>
{{Tables|MobSub3Input|{{{Attributes|}}}|{{{Skills|}}}|{{{RawDmg|}}}}}
<td>{{{Attributes|}}}</td>
<td>{{{Skills|}}}</td>
</tr>
</table>
</td></tr>
</td></tr>
}}
}}
Line 49: Line 40:
===Quests===
===Quests===
{{columns |2|
{{columns |2|
{{TextC|{{{Quest|}}}|SList}}}}}}
{{#invoke:TextC|SList|{{{Quest|}}}}}}}}}
===Drops===
===Drops===
{{columns|2|{{TextC|{{{Drops|}}}|SList}}}}
{{columns|2|{{#invoke:TextC|SList|{{{Drops|}}}}}}}
{{Tables|MobSub1}}
{{Tables|MobSub1}}
<tr>
{{Tables|MobSub1Input|{{{LevelL|}}}|{{{LevelH|}}}|{{{Armor|}}}|{{{HP|}}}}}
<td>{{{Level|}}}/{{{Level|}}}</td>
<td>{{#if:{{{Armor|}}}|[[File:Shield small.png{{!}}16px{{!}}link=]] {{{Armor}}}}}</td>
<td>{{#if:{{{HP|}}}|[[File:Heart.png{{!}}16px{{!}}link=]] {{{HP}}}}}</td>
</tr>
{{Tables|MobSub2}}
{{Tables|MobSub2}}
<tr>
{{Tables|MobSub2Input|{{{RawDmg|}}}|
<td>{{TextC|{{{Base_damage|}}}|Elements}}</td>
{{{RawResist|}}}}}
<td>{{TextC|{{{Extra_damage|}}}|Elements}}</td>
<td>{{#if:{{{Attack_Speed|}}}|[[File:Speed.png{{!}}16px{{!}}link=]] {{{Attack_Speed}}}}}</td>
<td>{{{Critical|}}}</td>
<td>{{MobDPS|{{{Base_damage|}}}|{{{Attack_Speed}}}|{{{Critical|}}}|{{{Extra_damage|}}}}}</td>
<td>{{TextC|{{{Resistances|}}}|Elements}}</td>
</tr>
</table>
{{Tables|MobSub3}}
{{Tables|MobSub3}}
<tr>
{{Tables|MobSub3Input|{{{Attributes|}}}|{{{Skills|}}}|{{{RawDmg|}}}}}
<td>{{{Attributes|}}}</td>
|MobTbl={{Tables|MobTblInput|{{{Icon|}}}|{{{Name}}}|{{{LevelL|}}}|{{{LevelH|}}}|{{{Groups|}}}|{{{Race|}}}|{{{HP|}}}|{{{Armor|}}}|{{{RawDmg|}}}|{{{Quest|}}}|{{{Drops|}}}}}
<td>{{{Skills|}}}</td>
|npcTbl={{Tables|NPCTblInput|{{{Image|{{{Icon}}}}}}|{{{Name|}}}|{{{Faction|}}}|{{{Location1|}}}|{{{Location2|}}}|{{{Quest|}}}|{{{Actions|}}}}}
</tr>
|npcInv={{#invoke:Inventory|getItems|{{{InvI|}}}|{{{InvA|}}}|{{{InvW|}}}|{{{Markup|}}}}}
</table>
|npcInvList={{#invoke:Inventory|makeList|{{{InvI|}}}|{{{InvA|}}}|{{{InvW|}}}|{{{Markup|}}}}}
|MobTbl=
<tr>
<td>{{#if:{{{Icon|}}}|{{ImgLnk|{{{Name}}}|icon={{{Icon|}}}}}|[[{{{Name}}}]]}}</td>
<td>{{{Level|?}}}/{{{Level|?}}}</td>
<td>{{{Faction|}}}</td>
<td>{{XPcalc|{{{Level|}}}|{{{Race|}}}}}</td>
<td>{{{HP|}}}</td>
<td>{{{Armor|}}}</td>
<td>{{MobDPS|{{{Base_damage|}}}|{{{Attack_Speed}}}|{{{Critical|}}}|{{{Extra_damage|}}}}}</td>
<td>{{#if:{{{Quest|}}}|{{TextC|{{{Quest}}}|Diamonds}}|None}}</td>
<td>{{TextC|{{{Drops|}}}|Diamonds}}</td>
</tr>
|npcTbl=
<tr>
<td>{{#if:{{{Image|}}}|{{ImgLnk|{{{Name|}}}|icon={{{Image|}}}}}|{{#if:{{{Icon|}}}|{{ImgLnk|{{{Name|}}}|icon={{{Icon|}}}}}|[[{{{Name|}}}]]}}}}</td>
<td>{{{Faction|}}}</td>
<td>{{{Location1|}}}</td>
<td>{{{Location2|}}}</td>
<td>{{#if:{{{Quest|}}}|{{{Quest|}}}|{{{Actions|}}}}}</td>
</tr>
|npcInv={{#if:{{{Sel|}}}|{{{Inventory{{{Sel}}}|}}}|{{{Inventory|}}}}}
|npcSel={{{{{{Sel|}}}}}}
|npcSel={{{{{{Sel|}}}}}}
|genSel={{{{{{Sel|}}}}}}
|genSel={{{{{{Sel|}}}}}}
Line 124: Line 83:
* {{{Location5|}}}}}{{#if:{{{Quest|}}}|:
* {{{Location5|}}}}}{{#if:{{{Quest|}}}|:
=== Quests ===
=== Quests ===
{{TextC|{{{Quest|}}}|SList}}}}{{#if:{{{Actions|}}}|:
{{#invoke:TextC|SList|{{{Quest|}}}}}}}{{#if:{{{Actions|}}}|:
=== Actions ===
=== Actions ===
{{{Actions}}}{{#ifeq:{{{Transport}}}|Yes|<includeonly>
{{{Actions}}}{{#ifeq:{{{Transport}}}|Yes|<includeonly>
Line 131: Line 90:
=== Situational ===
=== Situational ===
* {{{Situational}}}
* {{{Situational}}}
}}{{#if:{{{Inventory|}}}|:  
}}{{#if:{{{Inventory|}}}|:
=== Inventory ===
=== Inventory ===
<includeonly>
<includeonly>[[Category:NPC:Merchants]]</includeonly>
[[Category:NPC:Merchants]]
</includeonly>
{{#if: {{{Inventory2|}}}|:
===={{{Inv1Loc}}}====
}}
{{Tables|AreaMerchant|{{PAGENAME}}'s Wares}}
{{Tables|AreaMerchant|{{PAGENAME}}'s Wares}}
{{{Inventory}}}
{{#invoke:Inventory|getItems|{{{InvI|}}}|{{{InvA|}}}|{{{InvW|}}}|{{{Markup|}}}}}
</table>
</table>}}{{#if:{{ListofTraitChecks|NPCSel|[[{{{Name|}}}]]}}|:
{{#if: {{{Inventory2|}}}|:
== Trait Checks ==
===={{{Inv2Loc}}}====
The following [[Trait]] checks are associated with this character. Those marked with [[File:Decisive.png|16px]] are mandatory for achieving certain outcomes or rewards which can not be accomplished otherwise.
{{Tables|AreaMerchant|{{PAGENAME}}'s Wares}}
{{Tables|TraitTbl|NPCSel}}
{{{Inventory2}}}
{{ListofTraitChecks|NPCSel|[[{{{Name|}}}]]}}
</table>
</table>}}{{#if:{{{Combatant|}}}|:
}}
<includeonly>[[Category:Bestiary]]</includeonly>
}}{{#if:{{{Movement|}}}|:
<includeonly>
[[Category:Bestiary]]
</includeonly>
== Combatant Stats ==
== Combatant Stats ==
{{Tables|MobIndv|{{#if:{{{Race|}}}|1}}}}
{{Tables|MobIndv|{{#if:{{{Race|}}}|1}}}}
<tr>
{{Tables|MobIndvInput|{{{Groups|}}}|{{{LevelL|}}}|{{{LevelH|}}}|{{{Armor|}}}|{{{HP|}}}|{{{Movement|}}}|{{{Race|}}}|{{{Class|}}}}}
<td>{{{Groups|}}}</td>
<td>{{{LevelL|}}}</td>
<td>{{{Level|}}}</td>
<td>{{XPcalc|{{{Level|}}}|{{{Race|}}}}}</td>
<td>{{#if:{{{Armor|}}}|[[File:Shield small.png{{!}}16px{{!}}link=]] {{{Armor}}}}}</td>
<td>{{#if:{{{HP|}}}|[[File:Heart.png{{!}}16px{{!}}link=]] {{{HP}}}}}</td>
<td>{{{MP|}}}</td>
<td>{{{Movement|}}}</td>{{#if:{{{Race|}}}|
<td>{{{Race|}}}</td>}}
</tr>
</table>
{{Tables|MobSub2}}
{{Tables|MobSub2}}
<tr>
{{Tables|MobSub2RInput|{{{RawDmg|}}}|
<td>{{TextC|{{{Base_damage|}}}|Elements}}</td>
{{{RawResist|}}}}}
<td>{{TextC|{{{Extra_damage|}}}|Elements}}</td>
<td>{{#if:{{{Attack_Speed|}}}|[[File:Speed.png{{!}}16px{{!}}link=]] {{{Attack_Speed}}}}}</td>
<td>{{{Critical|}}}</td>
<td>{{MobDPS|{{{Base_damage|}}}|{{{Attack_Speed}}}|{{{Critical|}}}|{{{Extra_damage|}}}}}</td>
<td>{{TextC|{{{Resistances|}}}|Elements}}</td>
</tr>
</table>
{{Tables|MobSub3}}
{{Tables|MobSub3}}
<tr>
{{Tables|MobSub3Input|{{{Attributes|}}}|{{{Skills|}}}|{{{RawDmg|}}}}}{{#if:{{{NameV2|}}}|:
<td>{{{Attributes|}}}</td>
<td>{{{Skills|}}}</td>
</tr>
</table>{{#if:{{{NameV2|}}}|:
=== {{{Name}}} ({{{NameV2}}}) ===
=== {{{Name}}} ({{{NameV2}}}) ===
{{Tables|MobIndv|{{#if:{{{RaceV2|}}}|1}}}}
{{Tables|MobIndv|{{#if:{{{RaceV2|}}}|1}}}}
<tr>
{{Tables|MobIndvInput|{{{Groups|}}}|{{{LevelLV2|}}}|{{{LevelHV2|}}}|{{{ArmorV2|}}}|{{{HPV2|}}}|{{{MovementV2|}}}|{{{RaceV2|}}}|{{{Class|}}}}}
<td>{{{Groups|}}}</td>
<td>{{{LevelL|}}}</td>
<td>{{{Level|}}}</td>
<td>{{XPcalc|{{{Level|}}}|{{{Race|}}}}}</td>
<td>{{#if:{{{ArmorV2|}}}|[[File:Shield small.png{{!}}16px{{!}}link=]] {{{ArmorV2}}}}}</td>
<td>{{#if:{{{HPV2|}}}|[[File:Heart.png{{!}}16px{{!}}link=]] {{{HPV2}}}}}</td>
<td>{{{MPV2|}}}</td>
<td>{{{MovementV2|}}}</td>{{#if:{{{RaceV2|}}}|
<td>{{{RaceV2|}}}</td>}}
</tr>
</table>
{{Tables|MobSub2}}
{{Tables|MobSub2}}
<tr>
{{Tables|MobSub2RInput|{{{RawDmgV2|}}}|
<td>{{TextC|{{{Base_damageV2|}}}|Elements}}</td>
{{{RawResistV2|}}}}}
<td>{{TextC|{{{Extra_damageV2|}}}|Elements}}</td>
<td>{{#if:{{{Attack_SpeedV2|}}}|[[File:Speed.png{{!}}16px{{!}}link=]] {{{Attack_SpeedV2}}}}}</td>
<td>{{{CriticalV2|}}}</td>
<td>{{MobDPS|{{{Base_damageV2|}}}|{{{Attack_SpeedV2}}}|{{{CriticalV2|}}}|{{{Extra_damageV2|}}}}}</td>
<td>{{TextC|{{{ResistancesV2|}}}|Elements}}</td>
</tr>
</table>
{{Tables|MobSub3}}
{{Tables|MobSub3}}
<tr>
{{Tables|MobSub3Input|{{{AttributesV2|}}}|{{{SkillsV2|}}}|{{{RawDmgV2|}}}}}
<td>{{{AttributesV2|}}}</td>
}}
<td>{{{SkillsV2|}}}</td>
</tr>
</table>
=== Drops ===
=== Drops ===
{{TextC|{{{Drops|}}}|SList}}
{{Columns|{{TextC|{{{Drops|}}}|SListCol}}|{{TextC|{{{Drops|}}}|SList}}}}
}}}}
}}
==Notes==
==Notes==
{{#if:{{{Movement|}}}|
{{#if:{{{Movement|}}}|
* Some of the stats change with creature level and game mode. The values shown in the table above always refer to the highest level at Normal difficulty. On Hard or Iron Man some values such as HP and attack stats are increased by 25%.
* Some of the stats change with creature level and game mode. The values shown in the table above always refer to the highest level at Normal difficulty. On Hard or Iron Man some values such as HP and attack stats are increased by 25%.
:
}}
}}
{{{Notes|}}}
{{{Notes|}}}
}}
}}

Latest revision as of 20:25, 18 November 2020