Template:MoveInfobox: Difference between revisions
From Cassette Beasts
Added section for number of times the move hits |
Add variables to omit several rows (to support Fusion Power) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
</div> | </div> | ||
<div class="infobox-body"> | <div class="infobox-body"> | ||
<div class="infobox-data"><table><tr><th>Type</th><td>{{TypeButton|{{#invoke:Database|get_move|{{{id}}}|elemental_type}}}}</td></tr> | <div class="infobox-data"><table> | ||
{{#if: {{#invoke:Database|get_move|{{{id}}}|power|if_0=}} | | {{#ifeq: {{{exclude_type|}}}|True||<tr><th>Type</th><td>{{TypeButton|{{#invoke:Database|get_move|{{{id}}}|elemental_type}}}}</td></tr>}}{{#ifeq: {{{exclude_power|}}}|True||{{#if: {{#invoke:Database|get_move|{{{id}}}|power|if_0=}} | | ||
<tr><th>Power</th><td>{{#invoke:Database|get_move|{{{id}}}|power|if_0=—}}</td></tr> |}} | <tr><th>Power</th><td>{{#invoke:Database|get_move|{{{id}}}|power|if_0=—}}</td></tr> |}}}} | ||
<tr><th>Accuracy</th><td>{{#invoke:Database|get_move|{{{id}}}|accuracy|if_number=%d%%}}</td></tr> | <tr><th>Accuracy</th><td>{{#invoke:Database|get_move|{{{id}}}|accuracy|if_number=%d%%}}</td></tr> | ||
{{#if: {{#invoke:Database|get_move|{{{id}}}|target_type|if_TARGET_NONE=}} | | {{#if: {{#invoke:Database|get_move|{{{id}}}|target_type|if_TARGET_NONE=}} | | ||
<tr><th>Targets</th><td>{{#invoke:Database|get_move|{{{id}}}|target_type|if_TARGET_NONE=None|if_TARGET_ONE=Single|if_TARGET_TEAM=Team|if_TARGET_ALL=All|if_TARGET_ONE_ALLY=Single Ally|if_TARGET_ONE_ALLY_NOT_SELF=Single Ally (Not Self)|if_TARGET_ONE_ENEMY=One Enemy|if_TARGET_ALL_NOT_SELF=All Except Self}}</td></tr> |}} | {{#ifeq: {{{exclude_targets|}}}|True||<tr><th>Targets</th><td>{{#invoke:Database|get_move|{{{id}}}|target_type|if_TARGET_NONE=None|if_TARGET_ONE=Single|if_TARGET_TEAM=Team|if_TARGET_ALL=All|if_TARGET_ONE_ALLY=Single Ally|if_TARGET_ONE_ALLY_NOT_SELF=Single Ally (Not Self)|if_TARGET_ONE_ENEMY=One Enemy|if_TARGET_ALL_NOT_SELF=All Except Self}}</td></tr> |}}}}{{#if: {{#invoke:Database|get_move|{{{id}}}|min_hits}}|<tr><th>Num Hits</th><td>{{#ifeq: {{#invoke:Database|get_move|{{{id}}}|min_hits}}|{{#invoke:Database|get_move|{{{id}}}|max_hits}}|{{#invoke:Database|get_move|{{{id}}}|max_hits}}|{{#invoke:Database|get_move|{{{id}}}|min_hits}} - {{#invoke:Database|get_move|{{{id}}}|max_hits}}}}</td></tr>}} | ||
{{#if: {{#invoke:Database|get_move|{{{id}}}|min_hits}}|<tr><th>Num Hits</th><td>{{#ifeq: {{#invoke:Database|get_move|{{{id}}}|min_hits}}|{{#invoke:Database|get_move|{{{id}}}|max_hits}}|{{#invoke:Database|get_move|{{{id}}}|max_hits}}|{{#invoke:Database|get_move|{{{id}}}|min_hits}} - {{#invoke:Database|get_move|{{{id}}}|max_hits}}}}</td></tr>}} | |||
<tr><th>Use Cost</th><td>{{#if: {{#invoke:Database|get_move|{{{id}}}|is_passive_only}} | Passive | {{#invoke:Database|get_move|{{{id}}}|ap_cost}} AP}}</td></tr> | <tr><th>Use Cost</th><td>{{#if: {{#invoke:Database|get_move|{{{id}}}|is_passive_only}} | Passive | {{#invoke:Database|get_move|{{{id}}}|ap_cost}} AP}}</td></tr> | ||
<tr><th>Copyable</th><td>{{#invoke:Database|get_move|{{{id}}}|can_be_copied|if_true=Yes|if_false=No}}</td></tr> | <tr><th>Copyable</th><td>{{#invoke:Database|get_move|{{{id}}}|can_be_copied|if_true=Yes|if_false=No}}</td></tr> | ||
| Line 27: | Line 26: | ||
{{MoveInfobox | {{MoveInfobox | ||
|id=Metal Wall | |id=Metal Wall | ||
}} | |||
{{MoveInfobox | |||
|id=Raise Arms | |||
}} | |||
{{MoveInfobox | |||
| id = Fusion Power | |||
| exclude_type = True | |||
| exclude_power = True | |||
| exclude_targets = True | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:12, 9 August 2023
Unknown
Miscellaneous
| Type | |
|---|---|
| Accuracy | 100% |
| Targets | Single |
| Use Cost | 0 AP |
| Copyable | Yes |
| Priority | Normal (0) |
Test cases
Smack
Melee Attack
| Type | |
|---|---|
| Power | 30 |
| Accuracy | 100% |
| Targets | Single |
| Num Hits | 1 |
| Use Cost | 0 AP |
| Copyable | Yes |
| Priority | Normal (0) |
Multi Shot
Ranged Attack
| Type | |
|---|---|
| Power | 20 |
| Accuracy | 100% |
| Targets | Single |
| Num Hits | 3 - 5 |
| Use Cost | 3 AP |
| Copyable | Yes |
| Priority | Normal (0) |
Metal Wall
Status Effect Move
| Type | |
|---|---|
| Accuracy | 100% |
| Targets | Single |
| Use Cost | 2 AP |
| Copyable | Yes |
| Priority | Normal (0) |
Raise Arms
Status Effect Move
| Type | |
|---|---|
| Accuracy | 100% |
| Use Cost | 1 AP |
| Copyable | Yes |
| Priority | Normal (0) |
Fusion Power
Miscellaneous
| Accuracy | 100% |
|---|---|
| Use Cost | 10 AP |
| Copyable | Yes |
| Priority | Normal (0) |
