Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I have a basic knowledge of Lua and started a few weeks ago. I have questions about the creation of your popular Dota 2 Bot script.
1. I was trying to experiment with your code, I'm trying to achieve that whenever a game will start the AI will buy and use the smoke to go to the bounty runes. What file should I start with?
2. In relation to question #1, do you have the program structure of your code? Like main function (pre-game, after hero selection) > Mid Game > Post Game
3. Lastly, do you have any tips and tricks that you can share with me for creating a Bot script?
2. Not exactly sure what you mean here, bots use a desire system in Dota 2 which tell them what to do at any given time and don't necessarily follow a phase-based system.
3. I'd recommend looking at the Valve Software wiki for Dota 2 bot scripting. It's a little outdated but still an incredibly useful reference as well as other recently updated bot scripts such as Beginner AI or Ranked Matchmaking AI (these guys probably have cleaner code than mine to be honest lol).
Thanks to that. Just one more thing, with regard to question #3. When adding a feature / additional logic in the code (e.g. Adding logic that the bots will start killing Roshan when TA has a desolator during the Mid-game etc...) how do you test it? Do you just rerun the whole game (Create lobby > set bot as "Local Dev Script") or is there something that you do to jump on that scenario? :D
What I have is 'C:\Program Files (x86)\Steam\steamapps\workshop\content\241100' instead with a bunch of folders none of which are 2873408973.
I just found a way, thanks!