Template:Tt/Compu/Tabs:修订间差异
模板页面
更多操作
< Template:Tt | Compu
src->Spotty McBumble Fuck 小无编辑摘要 |
src->Spotty McBumble Fuck TESTING SAVE |
||
| 第1行: | 第1行: | ||
<includeonly><center><table border=3; style="width:100%; text-align:center; valign:top"> | <includeonly><center><table border=3; style="width:100%; text-align:center; valign:top"> | ||
{{#switch:{{{1|}}}:|MentDMG|PhysDMG|SpelDMG|TeasDMG|WeapDMG=<caption>Apply Defensive Reductions</capation>}} | |||
<tr><td>'''Attacker'''</td><td></td><td>'''Defender'''</td></tr> | <tr><td>'''Attacker'''</td><td></td><td>'''Defender'''</td></tr> | ||
<tr><td>Accuracy</td><td>vs</td><td>{{#switch:{{{1|}}}| | {{#switch:{{{1|}}} | ||
|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK=<tr><td>Accuracy</td><td>vs</td><td>{{#switch:{{{1|}}}|AoeATK|EvaATK|WeaATK=Evasion|PhyATK=Physical<br>Resist|MagATK=Magic<br>Resist|MenATK|TeaATK=Mental<br>Resist | |||
}}</td></tr> | |||
|WeapDMG|PhysDMG=<tr><td>Armor Penetration</td><td>-</td><td>Armor</td><td>=</td><td>'''Defense'''</td></tr> | |||
|SpelDMG=<tr><td>Spell Penetration</td><td>-</td><td>Ward</td><td>=</td><td>'''Defense'''</td></tr> | |||
|MentDMG|TeasDMG=<tr><td>Temptation</td><td>-</td><td>Focus</td><td>=</td><td>'''Defense'''</td></tr> | |||
}} | |||
{{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK=<tr><td colspan="5">If '''Defense''' is > 0:<br><code>Damage * (100 / (100 + Defense))</td></tr>}} | |||
{{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK=<tr><td colspan="5">Apply '''{{{2|}}} Resistance''' by <code>Damage - (Damage * (Resistance / 100))</code></td></tr> | |||
{{#switch:{{{2|}}}|Charm|Spell=<tr><td>+Catalyst Accuracy</td><td>'''Catalyst Bonus'''</td><td>/</td></tr>}} | {{#switch:{{{2|}}}|Charm|Spell=<tr><td>+Catalyst Accuracy</td><td>'''Catalyst Bonus'''</td><td>/</td></tr>}} | ||
{{#if:{{{3|}}}{{{4|}}}|<tr><td>{{{3|}}}</td><td>'''Other Bonus'''</td><td>{{{4|}}}</td></tr>}} | {{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK={{#if:{{{3|}}}{{{4|}}}|<tr><td>{{{3|}}}</td><td>'''Other Bonus'''</td><td>{{{4|}}}</td></tr>}} | ||
</table></center> | </table></center> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
==Documentation== | ==Documentation== | ||
*'''1st Parameter''' - | *'''1st Parameter''' - Table Type (i.e. is it to calculate if an attack hits or to how damage is calculated) | ||
**<code> | **Attack Table: <code>AoeATK</code> <code>EvaATK</code> <code>MagATK</code> <code>MenATK</code> <code>PhyATK</code> <code>TeaATK</code> <code>WeaATK</code> | ||
**Damage Table: <code>MentDMG</code> <code>PhysDMG</code> <code>SpelDMG</code> <code>TeasDMG</code> <code>WeapDMG</code> | |||
**<code> | *The next set of parameters '''depends on if its an attack or damage table''': | ||
*''' | **Attack Table | ||
**3rd | ***'''2nd Parameter''' - Includes catalyst bonus? (either <code>Charm</code> or <code>Spell</code>, or leave blank) | ||
***'''3rd & 4th Parameter''' - If there are any other bonuses or negatives to the attacker's accuracy (3) or the target's defense (4) | |||
**Damage Table | |||
***'''2nd Parameter''' - Name of the Element/Resistance type | |||
==Usage== | ==Usage== | ||
This template is to be primarily used within [[Template:tt/Compu]], hence it being an extension name. | |||
</noinclude> | </noinclude> | ||
2025年4月3日 (四) 18:22的版本
Documentation
- 1st Parameter - Table Type (i.e. is it to calculate if an attack hits or to how damage is calculated)
- Attack Table:
AoeATKEvaATKMagATKMenATKPhyATKTeaATKWeaATK - Damage Table:
MentDMGPhysDMGSpelDMGTeasDMGWeapDMG
- Attack Table:
- The next set of parameters depends on if its an attack or damage table:
- Attack Table
- 2nd Parameter - Includes catalyst bonus? (either
CharmorSpell, or leave blank) - 3rd & 4th Parameter - If there are any other bonuses or negatives to the attacker's accuracy (3) or the target's defense (4)
- 2nd Parameter - Includes catalyst bonus? (either
- Damage Table
- 2nd Parameter - Name of the Element/Resistance type
- Attack Table
Usage
This template is to be primarily used within Template:tt/Compu, hence it being an extension name.