From Dark and Darker Wiki

Sur (talk | contribs)
m reference the data page
Sur (talk | contribs)
m fix debug_mode param passing
Line 13: Line 13:
===Example===
===Example===
With ''debug_mode'' on:<br>
With ''debug_mode'' on:<br>
<pre>{{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt|true}}</pre>
<pre>{{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt|debug_mode=true}}</pre>


{{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt|true}}
{{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt|debug_mode=true}}





Revision as of 00:59, 21 December 2024

Overview

Functions for Sorcerer's Merge Spells and their component spells. Data comes from Data:MergeSpells.json

Functions

draw_merge_recipe

Draws a visual for the components that make up a given merge spell

Parameters

  • merge_spell - 1st parameter - the name of the merge spell without spaces but capitalized properly, i.e. ElementalBolt
  • debug_mode - optional, named parameter - true/false, defaults to false - true will output the raw wikitext, false will preprocess the wikitext

Example

With debug_mode on:

{{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt|debug_mode=true}}

|
Elemental Bolt |
Fire Arrow |
Water Bolt


With debug_mode off:

{{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt}}

|
Elemental Bolt |
Fire Arrow |
Water Bolt