Character Level

From The Walkscape Walkthrough
Revision as of 20:08, 14 February 2024 by Walking Weasel (talk | contribs) (Added function)

Character Level impacts many parts of the game of WalkScape. It is leveled up with every step you take, regardless of the activity you are engaged in.

Initial plans have your character requiring just over 13 million steps to hit character level 99. At 10,000 steps a day, this would take just over three and a half years to reach the maximum level.

The main returns from progressing your character level is in unlocking more slots on your toolbelt and increasing your step bank amount. At the start of the game, you have three slots for tools unlocked. As you progress, you can unlock three more slots by leveling up your character to levels 20, 50, and 80.

Function

/// Calculates the experience needed to level up character level double xpToLevelCharacter(int level) { double xp = 0; for (var i = 1; i < level + 1; i++) { xp += xpEquate(i.toDouble()); } return (xp / 4).floor().toDouble() * 4.6; } /// XP equation algorithm int xpEquate(double level) { return (level + 300 * pow(2, level / 7)).floor(); }