Template:NpcData: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
No edit summary
LVL (talk | contribs)
Extended parameters for new nested NPC data structure
 
Line 1: Line 1:
<includeonly>{{#if:{{{index|}}}
<includeonly>{{#invoke:NpcData|get_npc_var|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}}}</includeonly><noinclude>
  |<!-- If an index is provided, assume it's a list and use the specific list function -->{{#invoke:NpcData|get_list_elem|{{{1}}}|{{{2}}}|{{{index}}}}}
  |<!-- Otherwise, use the main function which can handle simple and nested values -->{{#invoke:NpcData|get_npc_var|{{{1}}}|{{{2}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}}
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>