Difference between revisions of "Template:Tt/Compu/Tabs"

From Corruption of Champions II
Jump to navigation Jump to search
m (note catalyst critical chance)
 
Line 1: Line 1:
<includeonly><table border=3; style="width:100%; text-align:center">{{#switch:{{{1|}}}|MentDMG|PhysDMG|SpelDMG|TeasDMG|WeapDMG|OffWeapDMG=<caption>Apply Defensive Reductions</caption>}}<tr><td>'''Attacker'''</td><td></td><td>'''Defender'''</td></tr>{{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK|OffWeaATK=<tr><td>Accuracy</td><td>vs</td><td>{{#switch:{{{1|}}}|AoeATK|EvaATK|OffWeaATK|WeaATK=Evasion|PhyATK=Physical Resist|MagATK=Magic Resist|MenATK|TeaATK=Mental Resist}}</td></tr>|WeapDMG|OffWeapDMG|PhysDMG=<tr><td>{{#if:{{{3|}}}|{{{3|}}}|Armor Penetration}}</td><td>-</td><td>{{#if:{{{4|}}}|{{{4|}}}|Armor}}</td><td>=</td><td>'''Defense'''</td></tr>|SpelDMG=<tr><td>{{#if:{{{3|}}}|{{{3|}}}|Spell Penetration}}</td><td>-</td><td>{{#if:{{{4|}}}|{{{4|}}}|Ward}}</td><td>=</td><td>'''Defense'''</td></tr>|MentDMG|TeasDMG=<tr><td>{{#if:{{{3|}}}|{{{3|}}}|Temptation}}</td><td>-</td><td>{{#if:{{{4|}}}|{{{4|}}}|Focus}}</td><td>=</td><td>'''Defense'''</td></tr>}}{{#switch:{{{1|}}}|MentDMG|PhysDMG|SpelDMG|TeasDMG|WeapDMG|OffWeapDMG=<tr><td colspan="5">If '''Defense''' is > 0:<br/><code>Damage <nowiki>*</nowiki> (100 /<br/>(100 + Defense))</td></tr>}}{{#switch:{{{1|}}}|MentDMG|PhysDMG|SpelDMG|TeasDMG|WeapDMG|OffWeapDMG={{#if:{{{2|}}}|<tr><td colspan="5">Apply '''{{{2|}}} Resistance''' by <code>Damage - (Damage <nowiki>*</nowiki> (Resistance / 100))</code></td></tr>}}}}{{#switch:{{{1|}}}|OffWeaATK=<tr><td>-10</td><td>'''Offhand<br>Penalty'''</td><td>/</td></tr>}}{{#switch:{{{1|}}}|OffWeaATK|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK={{#switch:{{{2|}}}|Charm|Spell=<tr><td>+Catalyst Accuracy</td><td>'''Catalyst Bonus'''</td><td>/</td></tr>}}}}{{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK|OffWeaATK={{#if:{{{3|}}}{{{4|}}}|<tr><td>{{{3|}}}</td><td>'''Other Bonus'''</td><td>{{{4|}}}</td></tr>}}}}</table></includeonly><noinclude>
+
<includeonly><table border=3; style="width:100%; text-align:center">{{#switch:{{{1|}}}|MentDMG|PhysDMG|SpelDMG|TeasDMG|WeapDMG|OffWeapDMG=<caption>Apply Defensive Reductions</caption>}}<tr><td>'''Attacker'''</td><td></td><td>'''Defender'''</td></tr>{{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK|OffWeaATK=<tr><td>Accuracy</td><td>vs</td><td>{{#switch:{{{1|}}}|AoeATK|EvaATK|OffWeaATK|WeaATK=Evasion|PhyATK=Physical Resist|MagATK=Magic Resist|MenATK|TeaATK=Mental Resist}}</td></tr>|WeapDMG|OffWeapDMG|PhysDMG=<tr><td>{{#if:{{{3|}}}|{{{3|}}}|Armor Penetration}}</td><td>-</td><td>{{#if:{{{4|}}}|{{{4|}}}|Armor}}</td><td>=</td><td>'''Defense'''</td></tr>|SpelDMG=<tr><td>{{#if:{{{3|}}}|{{{3|}}}|Spell Penetration}}</td><td>-</td><td>{{#if:{{{4|}}}|{{{4|}}}|Ward}}</td><td>=</td><td>'''Defense'''</td></tr>|MentDMG|TeasDMG=<tr><td>{{#if:{{{3|}}}|{{{3|}}}|Temptation}}</td><td>-</td><td>{{#if:{{{4|}}}|{{{4|}}}|Focus}}</td><td>=</td><td>'''Defense'''</td></tr>}}{{#switch:{{{1|}}}|MentDMG|PhysDMG|SpelDMG|TeasDMG|WeapDMG|OffWeapDMG=<tr><td colspan="5">If '''Defense''' is > 0:<br/><code>Damage <nowiki>*</nowiki> (100 /<br/>(100 + Defense))</td></tr>}}{{#switch:{{{1|}}}|MentDMG|PhysDMG|SpelDMG|TeasDMG|WeapDMG|OffWeapDMG={{#if:{{{2|}}}|<tr><td colspan="5">Apply '''{{{2|}}} Resistance''' by <code>Damage - (Damage <nowiki>*</nowiki> (Resistance / 100))</code></td></tr>}}}}{{#switch:{{{1|}}}|OffWeaATK=<tr><td>-10</td><td>'''Offhand<br>Penalty'''</td><td>/</td></tr>}}{{#switch:{{{1|}}}|OffWeaATK|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK={{#switch:{{{2|}}}|Charm|Spell=<tr><td>+Catalyst Accuracy & Critical Chance</td><td>'''Catalyst Bonus'''</td><td>/</td></tr>}}}}{{#switch:{{{1|}}}|AoeATK|EvaATK|MagATK|MenATK|PhyATK|TeaATK|WeaATK|OffWeaATK={{#if:{{{3|}}}{{{4|}}}|<tr><td>{{{3|}}}</td><td>'''Other Bonus'''</td><td>{{{4|}}}</td></tr>}}}}</table></includeonly><noinclude>
  
 
==Documentation==
 
==Documentation==

Latest revision as of 10:00, 5 June 2025


Documentation

  • 1st Parameter - Table Type (i.e. is it to calculate if an attack hits or to how damage is calculated)
    • Attack Table: AoeATK EvaATK MagATK MenATK PhyATK TeaATK WeaATK OffWeaATK
    • Damage Table: MentDMG PhysDMG SpelDMG TeasDMG WeapDMG OffWeapDMG
  • The next set of parameters depends on if its an attack or damage table:
    • Attack Table
      • 2nd Parameter - Includes catalyst bonus? (either Charm or Spell, 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
      • 3rd & 4th Parameters - (optional) special catch case in the event the attack type and defense is different

Usage

This template is to be primarily used within Template:tt/Compu, hence it being an extension name.

  • {{tt/Compu|MentDMG|Fire|SPEC|TEST}} (Mental DamageCompute Mental Damage
    Apply Defensive Reductions
    AttackerDefender
    SPEC-TEST=Defense
    If Defense is > 0:
    Damage * (100 /
    (100 + Defense))
    Apply Fire Resistance by Damage - (Damage * (Resistance / 100))
    Final Damage will have a random effectiveness of 95% to 105%
    )
  • {{tt/Compu|AoeATK|Spell|+20|-50}} (AOE Attack [+ Bonus]Attempt a AOE Attack
    AttackerDefender
    AccuracyvsEvasion
    +Catalyst Accuracy & Critical ChanceCatalyst Bonus/
    +20Other Bonus-50
    )
  • {{tt/Compu|MentDMG|Frost}} (Mental DamageCompute Mental Damage
    Apply Defensive Reductions
    AttackerDefender
    Temptation-Focus=Defense
    If Defense is > 0:
    Damage * (100 /
    (100 + Defense))
    Apply Frost Resistance by Damage - (Damage * (Resistance / 100))
    Final Damage will have a random effectiveness of 95% to 105%
    )
  • {{tt/Compu|AoeATK|Spell||-50}} (AOE Attack [+ Bonus]Attempt a AOE Attack
    AttackerDefender
    AccuracyvsEvasion
    +Catalyst Accuracy & Critical ChanceCatalyst Bonus/
    Other Bonus-50
    )