This is the documentation page for Module:Combat level

This is a documentation subpage for Module:Combat level.
It contains usage information, categories, and other content that is not part of the original module page.
Module:Combat level's function calc is invoked by Calculator:Combat level/Template.
Module:Combat level's function calc is invoked by Template:Calculator:Combat level/Template.
Module:Combat level requires Module:Paramtest.
Module:Combat level is required by Module:Infobox Pure.

This module is used on Calculator:Combat level, as well as being available to use from other modules.

Helper functions

This module is a helper module to be used by other modules; it may not designed to be invoked directly. See RuneScape:Lua/Helper modules for a full list and more information.

FunctionTypeUse
_calc(attack, strength, defence, ranged, magic, hitpoints, prayer)Number, String, TableReturns three values:
  1. The combat level given the entered stats (Number),
  2. The primary combat type (String: one of 'melee', 'ranged', 'magic'),
  3. And a Table containing the required attackStrength, hitpointsDefence, ranged, magic and prayer levels for the next combat level. These given values will be nil if these levels cannot give another combat levelup on their own.