hero needs 100xp at every level

so in my settings.lua file i have this

USE_CUSTOM_HERO_LEVELS = true
MAX_LEVEL = 50
USE_CUSTOM_XP_VALUES = false

XP_PER_LEVEL_TABLE = {} for i=1,MAX_LEVEL do XP_PER_LEVEL_TABLE[i] = (i-1) * 100 end

considering i set custom xp values to false, it should just be the normal dota xp per level right?

but it is 100 every level, always the same, any idea on how to fix this?

Comments

  • edited January 2016 Posts: 1,670

    The table is total values, sum + XP_PER_LEVEL_TABLE[i] to each value past lvl 1.

    The concept of Modding Community doesn't go well together with Competitive Business
    My Project Page || My GitHub Profile ||

  • Posts: 272

    To clarify, it should be like this:

    XP_PER_LEVEL_TABLE = {}
    XP_PER_LEVEL_TABLE[1] = 0
    for i=2,MAX_LEVEL do
      XP_PER_LEVEL_TABLE[i] = XP_PER_LEVEL_TABLE[i-1] + i * 100
    end