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|}}} | {{#invoke:TextC|SList|{{{Quest|}}}}}}}}} | ||
===Drops=== | ===Drops=== | ||
{{columns|2|{{TextC|{{{Drops|}}} | {{columns|2| | ||
{{#invoke:TextC|SList|{{{Drops|}}}}}}} | |||
{{Tables|MobSub1}} | {{Tables|MobSub1}} | ||
{{Tables|MobSub1Input|{{{LevelL|}}}|{{{LevelH|}}}|{{{Armor|}}}|{{{HP|}}}}} | |||
{{Tables|MobSub2}} | {{Tables|MobSub2}} | ||
{{Tables|MobSub2RInput|{{{RawDmg|}}}| | |||
{{{RawResist|}}}}} | |||
{{Tables|MobSub3}} | {{Tables|MobSub3}} | ||
{{Tables|MobSub3Input|{{{Attributes|}}}|{{{Skills|}}}|{{{RawDmg|}}}}} | |||
</td></tr> | </td></tr> | ||
}} | }} | ||
Line 49: | Line 40: | ||
===Quests=== | ===Quests=== | ||
{{columns |2| | {{columns |2| | ||
{{TextC|{{{Quest|}}} | {{#invoke:TextC|SList|{{{Quest|}}}}}}}}} | ||
===Drops=== | ===Drops=== | ||
{{columns|2|{{TextC|{{{Drops|}}} | {{columns|2|{{#invoke:TextC|SList|{{{Drops|}}}}}}} | ||
{{Tables|MobSub1}} | {{Tables|MobSub1}} | ||
{{Tables|MobSub1Input|{{{LevelL|}}}|{{{LevelH|}}}|{{{Armor|}}}|{{{HP|}}}}} | |||
{{Tables|MobSub2}} | {{Tables|MobSub2}} | ||
{{Tables|MobSub2Input|{{{RawDmg|}}}| | |||
{{{RawResist|}}}}} | |||
{{Tables|MobSub3}} | {{Tables|MobSub3}} | ||
{{Tables|MobSub3Input|{{{Attributes|}}}|{{{Skills|}}}|{{{RawDmg|}}}}} | |||
|MobTbl={{Tables|MobTblInput|{{{Icon|}}}|{{{Name}}}|{{{LevelL|}}}|{{{LevelH|}}}|{{{Groups|}}}|{{{Race|}}}|{{{HP|}}}|{{{Armor|}}}|{{{RawDmg|}}}|{{{Quest|}}}|{{{Drops|}}}}} | |||
|npcTbl={{Tables|NPCTblInput|{{{Image|{{{Icon}}}}}}|{{{Name|}}}|{{{Faction|}}}|{{{Location1|}}}|{{{Location2|}}}|{{{Quest|}}}|{{{Actions|}}}}} | |||
|npcInv={{#invoke:Inventory|getItems|{{{InvI|}}}|{{{InvA|}}}|{{{InvW|}}}|{{{Markup|}}}}} | |||
|npcInvList={{#invoke:Inventory|makeList|{{{InvI|}}}|{{{InvA|}}}|{{{InvW|}}}|{{{Markup|}}}}} | |||
| | |||
| | |||
|npcSel={{{{{{Sel|}}}}}} | |npcSel={{{{{{Sel|}}}}}} | ||
|genSel={{{{{{Sel|}}}}}} | |genSel={{{{{{Sel|}}}}}} | ||
Line 124: | Line 83: | ||
* {{{Location5|}}}}}{{#if:{{{Quest|}}}|: | * {{{Location5|}}}}}{{#if:{{{Quest|}}}|: | ||
=== Quests === | === Quests === | ||
{{TextC|{{{Quest|}}} | {{#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> | |||
{{Tables|AreaMerchant|{{PAGENAME}}'s Wares}} | {{Tables|AreaMerchant|{{PAGENAME}}'s Wares}} | ||
{{{ | {{#invoke:Inventory|getItems|{{{InvI|}}}|{{{InvA|}}}|{{{InvW|}}}|{{{Markup|}}}}} | ||
</table> | </table>}}{{#if:{{ListofTraitChecks|NPCSel|[[{{{Name|}}}]]}}|: | ||
{{#if: {{{ | == Trait Checks == | ||
===={{ | 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|TraitTbl|NPCSel}} | ||
{{ListofTraitChecks|NPCSel|[[{{{Name|}}}]]}} | |||
</table> | </table>}}{{#if:{{{Combatant|}}}|: | ||
<includeonly>[[Category:Bestiary]]</includeonly> | |||
}}{{#if:{{{ | |||
<includeonly> | |||
[[Category:Bestiary]] | |||
</includeonly> | |||
== Combatant Stats == | == Combatant Stats == | ||
{{Tables|MobIndv|{{#if:{{{Race|}}}|1}}}} | {{Tables|MobIndv|{{#if:{{{Race|}}}|1}}}} | ||
{{Tables|MobIndvInput|{{{Groups|}}}|{{{LevelL|}}}|{{{LevelH|}}}|{{{Armor|}}}|{{{HP|}}}|{{{Movement|}}}|{{{Race|}}}|{{{Class|}}}}} | |||
{{Tables|MobSub2}} | {{Tables|MobSub2}} | ||
{{Tables|MobSub2RInput|{{{RawDmg|}}}| | |||
{{{RawResist|}}}}} | |||
{{Tables|MobSub3}} | {{Tables|MobSub3}} | ||
{{Tables|MobSub3Input|{{{Attributes|}}}|{{{Skills|}}}|{{{RawDmg|}}}}}{{#if:{{{NameV2|}}}|: | |||
=== {{{Name}}} ({{{NameV2}}}) === | === {{{Name}}} ({{{NameV2}}}) === | ||
{{Tables|MobIndv|{{#if:{{{RaceV2|}}}|1}}}} | {{Tables|MobIndv|{{#if:{{{RaceV2|}}}|1}}}} | ||
{{Tables|MobIndvInput|{{{Groups|}}}|{{{LevelLV2|}}}|{{{LevelHV2|}}}|{{{ArmorV2|}}}|{{{HPV2|}}}|{{{MovementV2|}}}|{{{RaceV2|}}}|{{{Class|}}}}} | |||
{{Tables|MobSub2}} | {{Tables|MobSub2}} | ||
{{Tables|MobSub2RInput|{{{RawDmgV2|}}}| | |||
{{{RawResistV2|}}}}} | |||
{{Tables|MobSub3}} | {{Tables|MobSub3}} | ||
{{Tables|MobSub3Input|{{{AttributesV2|}}}|{{{SkillsV2|}}}|{{{RawDmgV2|}}}}} | |||
}} | |||
=== 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|}}} | ||
}} | }} |