#Max Hero Level
1 messages · Page 1 of 1 (latest)
Found 1 function for SetCustomHeroMaxLevel
🇸 CDOTABaseGameMode:SetCustomHeroMaxLevel(maxLevel: int): nil
Allows definition of the max level heroes can achieve (default is 25).
Found 1 function for SetCustomXPRequired
🇸 CDOTABaseGameMode:SetCustomXPRequiredToReachNextLevel(table: { [int]: int }): nil
Allows definition of a table of hero XP values.
Requires `SetUseCustomHeroLevels` to be enabled.
Found 1 function for SetUseCustomHeroLevels
🇸 CDOTABaseGameMode:SetUseCustomHeroLevels(enabled: bool): nil
Turn on custom-defined XP values for hero level ups. The table should be defined before switching this on.
^ use all these methods
Thank you
One more quesiton
Where do i use these Functions
In the game_setupfile?
on game setup, yes
dota 2 beta\game\dota_addons\your_mod\scripts\vscripts\addon_game_mode.lua
Does anyone has an example about it?
Open function link and use github icon link
Wait, how do i do that
Haven't done this in a while but don't you need to get the actual gamemode and then use the functions on it? I don't have access to my files rn to verify this so I might be wrong
I tried using the bot but I cant figure out what it wants from me in the querry so a link it is nvm
Found 1 function for GetGameModeEntity
🇸 CDOTAGameRules:GetGameModeEntity(): CDOTABaseGameMode
Get the game mode entity.