Results 1 to 3 of 3

Thread: Is there any way to partially overwrite Think()?

  1. #1
    Basic Member
    Join Date
    Oct 2013
    Posts
    7

    Is there any way to partially overwrite Think()?

    What I want to achieve is

    If #certain conditions# then
    #do something#
    else
    #do what the default will suggest#
    end

    Right now if I add anything under Think() it will overwrite everything

    Thanks

  2. #2
    Basic Member
    Join Date
    Mar 2012
    Posts
    2,012
    Only by using modes. But that's limited to the mode's context (i.e. warding, rune, farming etc.)
    Another method is to use ability and item usage overwriting.

    You can't just say "if the enemy Timbersaw suicides with bloodstone then all 5 (or 4 if there is a human) of our team suicide to the enemy fountain, else, act like normal native bots".

    If you want to use native bots for most of the decision making, it's mostly based off context, not "one" specific condition or rule.
    Explanations on the normal, high and very high brackets in replays: here, here & here
    Why maphacks won't work in D2: here

  3. #3
    Basic Member
    Join Date
    Oct 2013
    Posts
    7
    I was overwriting ability thinks and it's really hard to keep channeling an ability unless I overwrite the bot_*.lua to force him stop moving. But then it loses the movements abilities that the native bots are doing and I need to code it myself.

Posting Permissions

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