-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathviper.lua
58 lines (48 loc) · 3.12 KB
/
viper.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--[[
This is a place for you to customize the Open Hyper AI bots.
1. You can customize each individual heroes so they can behave the way you personally preferred - good for your experimental games, and you
can keep overridding the setup by copy/pasting the files for yourself at any time for diff styles. And you can share the setup files to friends.
To customize the setup for another hero, just add a new file with the hero's unit name but without the prefix `npc_dota_hero_`.
Hero unit names list: https://steamcommunity.com/workshop/filedetails/discussion/3246316298/4848777260032086340/
2. When modiftying this file, be VERY careful to the spelling, punctuation and variable names - it's very easy to cause
syntax errors and could be hard for you to debug.
3. In the case you saw the bots cannot purchase items, fail to upgrade abilities, or having some random names or picks (heroes not what you have set or without "OHA" name suffix),
that means you had made some mistakes/errors while modifying this file.
4. In any case this file got messed up and caused the bots to malfunction, you can try to delete this customized hero file.
5. If you think the setup you made or your idea is better in the general cases and should better be shared to all other players, don't hesitate to contributing to our Github repo.
- Github repo: /~https://github.com/forest0xia/dota2bot-OpenHyperAI
- Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=3246316298
--]]
-- The variable to hold the settings. Only modify if you know exactly what you are doing.
local Hero = { }
-- Set it to true to turn on ALL of the custom settings in this file, or set it to false to turn off the settings.
Hero.Enable = false -- CHANGE THIS TO: true
-- The ability upgrade order of the bot. 1 means the first ability, 2 means the second ability, ..., 6 means the ultimate ability.
-- Be very careful when changing the values, if you misplace 1 ability it can cause the bot failing to upgrade all the other abilities.
Hero.AbilityUpgrade = {1,3,1,2,1,6,1,3,2,3,6,2,3,2,6}
-- The talent upgrade choices. There are 4 tiers of talents to choose when the bot reaches level 10, 15, 20, and 25.
-- "l" means choose the talent on the "left" side; "r" means choose the talent on the "right" side.
Hero.Talent = {"r", "l", "l", "r"}
-- The items this bot will purchase in game. Note if you cutomize this list, the bot will purchase these items no matter what it position is in the game.
-- Item internal names in Dota2: https://steamcommunity.com/workshop/filedetails/discussion/3246316298/830448456536441503/
Hero.PurchaseList = {
"item_mid_outfit",
"item_dragon_lance",
"item_orchid",
"item_mage_slayer",--
"item_force_staff",
"item_hurricane_pike",--
"item_bloodthorn",--
"item_aghanims_shard",
"item_kaya_and_sange",--
"item_travel_boots",
"item_shivas_guard",--
"item_travel_boots_2",--
"item_ultimate_scepter_2",
"item_moon_shard",
}
-- The items this bot will sell in game. Note the items should be paired together - once the bot gets the first item in the pair, the bot sells the second item.
Hero.SellList = {
"item_bloodthorn", "item_circlet",
}
return Hero