Ai

hellmonja27

Member
Reaction score
16
actually i don't have much idea on how to make an AI for a map. i just need an overview of sorts on how people can make an AI, preferable one for an AoS map.

tips and advice are welcome too.
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
I can help with that.
Apart from that I found it myself quite hard to come up with any good information about AI. There is barely enough out there.

Thing is that I need to know which type of map you have (TD, AoS, DoTa, Hero Arena, other arena, Shooter, else)
This is important to decide whether to go for AI scripts or hard-coded AI (triggered with GUI or better: JASS)
So the more information about your map specifications and about the AIs capabilities you come up with, the more I could help you with your AI.
 

uberfoop

~=Admiral Stukov=~
Reaction score
177
Go to tutorial repository and look for conan's tutorial on AI for how to make aos ai.
 

hellmonja27

Member
Reaction score
16
I can help with that.
Apart from that I found it myself quite hard to come up with any good information about AI. There is barely enough out there.

exactly my point. it's for an AoS. and no, yelling "search" on me isn't any help either...
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
OK, it's a Dota replica; you could have simply written that.

First things first: this can be triggered with even moderate GUI knowledge.
Conan's AI tutorial is a tutorial on an AI, yes, but not really appropriate here. (kind of I show you a BMW when you actually need a pick-up truck to transport cumbersome stuff: yes they're both cars;-)

So let's just go through the single tasks your "ai" should do:
1) selecting a hero - have the hero chosen randomly, or define some hero for hero1, hero2,...
2) move the hero around and attack enemies - that can be made a bit like in conan's trigger
3) select the right hero skills when gaining experience - that's a lot of work because you have many heroes and even more skills, yet you can trigger that easily
4) healing the hero when damaged - create a simple loop on the event that a hero has less than X healthpoints with the action to have the hero run to the shop to buy healing potions or run to a fountain of health
5) is there more to dota?

so yes, you surely can do that yourself. Maybe there are even some dota "ai" triggers around for you to modify. Good luck!
 

hellmonja27

Member
Reaction score
16
yes it's a DotA replica, though i'd prefer not to call it that. but please don't let it fool you though. i just needed a platform and i really worked hard on my heroes.

thank you for the list. so i was right: it is a lot of work and you have to trigger every damn thing the AI should do. i was thinking some AI programmers used some voodoo programs or something but, well, knowing it can be GUI is kinda comforting. thnx again...
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
there are no voodoo programs, but you're right about the rest.
Basically you your "AI" (note that a proper AI by definition has the ability to learn, which so far does not exist in games thelike) can be done in 2 ways:

1) using AI scripts
2) hardcoded, i.e. through triggers/functions running either constantly, e.g. every 5 game seconds, or through events, like hero1 health is equal to or less than 200

Option 1) is not quite appropriate here, since you have no need for melee ai functions such as harvesting, building structures, unit production, going for expansion towns,..., so you definitely have to do it the more "hardcoded" way.
So best thing is think about how you as player would act in general, as well as in certain game situations, to then break it down to how these strategies can be "translated" into triggers. Once you have written your set of triggers, you will find out that further improvements can be made, so you go over it again to tune certain parameters of your triggers, e.g. have the hero seak a fountain of health when under 300 healthpoints instead of 200. You will also find out that additional functions will have to be added, e.g. avoiding heroes getting stuck in the forest, or, in case it still happens, getting them on the right path again. In many cases you can't do a 1-1 conversion; best example is items: you can't order a hero to buy an item, so you'll have to cheat it in some way, like checking if the hero has the cash, to then just add the item to his inventory. So after this tuning process you will finally come out with an acceptable result; yet, never expect a bunch of scripts act in a more intelligent way than a human player - a machine can decide a LOT faster, that's for sure, but the quality of its decisions made will never be as good as that of a good human mind.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top