Module:Combat level/doc

This is the current revision of this page, as edited by Alex (talk | contribs) at 22:50, 15 October 2024 (Created page with "{{documentation}} This module is used on Calculator:Combat level, as well as being available to use from other modules. == Helper functions == {{Helper module |name = Combat level |fname1 = _calc(attack, strength, defence, ranged, magic, hitpoints, prayer) |ftype1 = Number, String, Table |fuse1 = Returns three values: #The combat level given the entered stats (Number), #The primary combat type (String: one of 'melee', 'ranged', 'magic'), #And a Table containing th..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.