From Dark and Darker Wiki
m (fix debug_mode param passing) |
m (removed deubg_mode example, replaced with a tabular example) |
||
Line 9: | Line 9: | ||
===Parameters=== | ===Parameters=== | ||
* ''merge_spell'' - 1st parameter - the name of the merge spell without spaces but capitalized properly, i.e. ElementalBolt | * ''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 | * ''debug_mode'' - optional, named parameter - true/false, defaults to false - true will output the raw wikitext, false will preprocess the wikitext <b>sorry its not working </b> | ||
===Example=== | ===Example=== | ||
{ | <pre> | ||
{| class="wikitable sortable jquery-tablesorter ClassesTable" style="min-width:360px;> | |||
! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Merge Spell | |||
! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Parent Spell 1 | |||
! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Parent Spell 2 | |||
|- | |||
| {{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt}} | |||
|} | |||
</pre> | |||
{| class="wikitable sortable jquery-tablesorter ClassesTable" style="min-width:360px;> | |||
! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Merge Spell | |||
! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Parent Spell 1 | |||
! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Parent Spell 2 | |||
|- | |||
{{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt}} | {{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt}} | ||
|} |
Latest revision as of 01:01, 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 sorry its not working
Example
{| class="wikitable sortable jquery-tablesorter ClassesTable" style="min-width:360px;> ! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Merge Spell ! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Parent Spell 1 ! style="width:15%" class="headerSort" role="columnheader button" title="Sort ascending" | Parent Spell 2 |- | {{#invoke:MergeSpells|draw_merge_recipe|ElementalBolt}} |}
Merge Spell | Parent Spell 1 | Parent Spell 2 |
---|---|---|
Elemental Bolt |
Fire Arrow |
Water Bolt |