Template:Combat level: Difference between revisions

From Roat Pkz
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
<includeonly>{{#expr:
<includeonly>{{#expr:
(.25 * ({{#if:{{{Defence|}}}|{{{Defence}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Defence}})|1}}}} + {{#if:{{{Hitpoints|}}}|{{{Hitpoints}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Hitpoints}})|10}}}} + ({{#if:{{{Prayer|}}}|{{{Prayer}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Prayer}})|1}}}} / 2 - .5 round 0)) + .325 * (
(.25 * ({{#if:{{{Defence|}}}|{{{Defence}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Defence}})|1}}}} + {{#if:{{{Hitpoints|}}}|{{{Hitpoints}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Hitpoints}})|10}}}} + ({{#if:{{{Prayer|}}}|{{{Prayer}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Prayer}})|1}}}} / 2 - .5 round 0)) + .325 *
{{#expr: ({{#if:{{{Attack|}}}|{{{Attack}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Attack}})|1}}}} + {{#if:{{{Strength|}}}|{{{Strength}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Strength}})|1}}}}) / 2 - .5 round 0}}
{{Max
+
|({{#if:{{{Attack|}}}|{{{Attack}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Attack}})|1}}}} + {{#if:{{{Strength|}}}|{{{Strength}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Strength}})|1}}}})
{{#expr: (3 * {{#if:{{{Ranged|}}}|{{{Ranged}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Ranged}})|1}}}} / 2 - .5 round 0) > (3 * {{#if:{{{Magic|}}}|{{{Magic}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Magic}})|1}}}} / 2 - .5 round 0) ? (3 * {{#if:{{{Ranged|}}}|{{{Ranged}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Ranged}})|1}}}} / 2 - .5 round 0) : (3 * {{#if:{{{Magic|}}}|{{{Magic}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Magic}})|1}}}} / 2 - .5 round 0)
      |{{Max
}}
          |(3 * {{#if:{{{Ranged|}}}|{{{Ranged}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Ranged}})|1}}}} / 2 - .5 round 0)
) - {{#switch: {{#if:{{{DP|}}}|{{{DP}}}|0}}
          |(3 * {{#if:{{{Magic|}}}|{{{Magic}}}|{{#if:{{{Name|}}}|(0{{hiscore|{{{Name}}}|Magic}})|1}}}} / 2 - .5 round 0)
  }}
}}) - {{#switch: {{#if:{{{DP|}}}|{{{DP}}}|0}}
       | 0 = 0.4999 | 1 = 0.0499 | 2 = 0.0049 | 0 }} round {{#if:{{{DP|}}}|{{{DP}}}|0}}
       | 0 = 0.4999 | 1 = 0.0499 | 2 = 0.0049 | 0 }} round {{#if:{{{DP|}}}|{{{DP}}}|0}}
}}</includeonly><noinclude>{{/doc}}</noinclude>
}}</includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 16:50, 4 May 2024