25 lvl at the beginning of the game

Sorry for earlier, this is a google translator. In general, how to make sure that when the game began the heroes had 25 lvl

Comments

  • Posts: 19

    @bloodxhack for exemple, in gamemod.lua (you_addon\scripts\vscripts\gamemode.lua)

    function map_duel_1v1_bmd:OnHeroInGame(hero)
      DebugPrint("[MAP_DUEL_1V1_BMD] Hero spawned in game for first time -- " .. hero:GetUnitName())
    
      -- This line for example will set the starting gold of every hero to 500 unreliable gold
      hero:SetGold(99000, false)
      for i=1,25 do
        hero:HeroLevelUp(true) 
      end
    end