Page 1 of 45 1 2 3 11 ... LastLast
Results 1 to 10 of 447

Thread: API Requests

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704

    API Requests

    We expect the API will expand over time as developers start using it. Feel free to post API requests!

    Examples of some API requests:
    • Missing actions that you would like bots to do.
    • Missing queries that you need.
    • Utility functions, commonly-used functions, or slow functions that would be better implemented on the C++ side.

  2. #2
    Basic Member Dota_2's Avatar
    Join Date
    Jun 2014
    Posts
    119
    I want bots that can buy sentry wards... That's how you request stuff right?
    Quote Originally Posted by Gandalf
    You're a wizard,Goku
    Quote Originally Posted by Russian player
    ХОРОШАЯ ИГРА! СУКА! ОТЧЕТ! 0-35-0! ПОДАЧИ
    Quote Originally Posted by Pinoy Player
    Ako mid
    When everyone is on low hp and you're Zeus with scepter

    Spoiler: 

  3. #3
    Basic Member
    Join Date
    Dec 2011
    Posts
    26
    This is fantastic ChrisC, I hope this is really the beginning of a beautiful relationship. I know lots of modders who are very interested in Bots. Would you be willing to join our developer chatroom that has all major mod developers in it? They would be so excited to actually have a valve developer in their midsts.

  4. #4
    Basic Member
    Join Date
    Aug 2016
    Posts
    23
    Add new bot will be good This game have 2 year for nothing bot add every patch

  5. #5
    This is awesome!

  6. #6
    It looks like the bot example is included in the test client is broken. It spams the log, but never actually picks any heroes. What's wrong?

  7. #7
    Basic Member
    Join Date
    Dec 2016
    Posts
    1
    Not necessarily super important, but adding "IgnoreDifficulty()" could be a good addition for custom bots as the preset difficulties come with a bunch of gimping and cheating additions that might make creating balanced/enjoyable bots a bit harder.
    I.e., if I understood correctly that difficulty selections will override custom bot behavior/actions (mentioned in "Complete takeover" part).

  8. #8
    Basic Member
    Join Date
    Dec 2016
    Posts
    123
    API requests:
    Missing actions that you would like bots to do:
    1. Hit and run: cancel attacking animation after attack is finished)
    2. Stop/cancel skill casting(tide hunter ultra, axe roar) when condition change during animation

  9. #9
    Quote Originally Posted by lunarbreez View Post
    API requests:
    Missing actions that you would like bots to do:
    1. Hit and run: cancel attacking animation after attack is finished)
    2. Stop/cancel skill casting(tide hunter ultra, axe roar) when condition change during animation
    +1 on this. Maybe this can be done, I have not dived into the available API yet.

    If there is the option to perform an action X milliseconds after the last one, you could do:

    CastAbility(0, target)
    Wait(50)
    Stop()

    But not sure if this is a possibility right now.

    Also not sure of the synchronicity of calls.

    i.e. the next instruction after CastAbility(0, target) would be ran after the cast animation ended?

    - DISCLAMER: Not familiar with the actual API, hence the pseudocode I used.

  10. #10
    Basic Member
    Join Date
    Dec 2016
    Posts
    11
    Sleeps and waits should be forbidden. Instead you must count how many time have happen since the CastAbility tick, and if it is enough (50) then trigger Stop.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •