Anonymous

In-game Functions: Difference between revisions

From Melvor Idle
m
(→‎Ancient Relics Level Caps: Added random level cap increases)
Line 405: Line 405:
The above code will set both the level caps and abyssal level caps of all skills to their maximum value.
The above code will set both the level caps and abyssal level caps of all skills to their maximum value.
=== Awarding random level caps ===
=== Awarding random level caps ===
The below script will award 5 random level cap increases without increasing combat level caps. The only value that must be changed is the <code>capType</code> at the beginning of the script. 0 is a pre-Bane level cap increase, 2 is a TotH level cap increase, and 4 is an ItA level cap increase.
The below script will award random level cap increases without increasing combat level caps. The only value that must be changed is the <code>capType</code> at the beginning of the script. 0 is a pre-Bane level cap increase, 2 is a TotH level cap increase, and 4 is an ItA level cap increase.
  <syntaxhighlight lang="js">
  <syntaxhighlight lang="js">
let capType = 0; // 0 = pre-Bane, 2 = TotH, 4 = ItA
let capType = 0; // 0 = pre-Bane, 2 = TotH, 4 = ItA