HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

AI in an AOS

08-26-2004, 04:20 AM#1
Ghost_81st
I asked this in another forum, but I wanted to add to it here, would it be possible for me to make a AOS system that a computer controls a hero, and it chooses to fight and learn skills? and have the computer player manage the ammount of units it creates and sends out to fight?
08-26-2004, 06:13 AM#2
DoCa-Cola
Short answer: Yes.

Long answer: It would require a fair amount of work I'd assume...
08-26-2004, 06:15 AM#3
Ghost_81st
I would rather like putting a smart AI in my map, how would I go about just involving the hero and production? since I can't use a reg AI (DUH) lol. Anyone have some good pointers, or willing to help me step foot in the right direction?

Edit:
I have decided to make a trigger run all the non hero creation of units, but I want to make the AI control a hero. I use Vex's Hero Selection system, and the computer randomly selects a hero. How can I pass the hero Type to the AI script, so it knows what skills to learn? Then make it attack and run away if its dying. Also, what happens to the AI when the hero dies? does it just pause adn wait for the hero to resurect? if not what can I do about that? I am unsure about contorling a hero with the AI, but I read the common and human ai scripts, and found where I could set the skill arrays, but I am lost after that. Anyone willing to help me?
09-01-2004, 04:28 PM#4
timfarman
sorry mate, i'm not here to help but i was wanting to know exactly the same thing so i'll subscribe to this thread. I can't even get the ai working with custom units at all? Anyone pleez help?
09-01-2004, 05:09 PM#5
Vexorian
Actually researching skills is the most easy thing.

Trigger
Event A unit gets a level
Conditions
Actions:
For Triggering unit learn (insert skill)
// Put every hero skill your map has like
For Triggering unit learn (blizzard)
For Triggering unit learn (flame strike)
...

You can also make it has the ultimates on the top of the list
09-01-2004, 05:11 PM#6
Ghost_81st
Quote:
Originally Posted by Lord Vexorian
Actually researching skills is the most easy thing.

Trigger
Event A unit gets a level
Conditions
Actions:
For Triggering unit learn (insert skill)
// Put every hero skill your map has like
For Triggering unit learn (blizzard)
For Triggering unit learn (flame strike)
...

You can also make it has the ultimates on the top of the list


so then I just have to have about 120 of these in the trigger so the hero learns the right skill? that seames very inefficnet, but hey if its the only way.
For Triggering unit learn (SKILL HERE)
09-01-2004, 05:22 PM#7
Vexorian
Actually I have 280 and it is not that bad, although you can make it so you have 4 triggers, one has the slot 1 skills, another the slot 2 , ... , and one the ultimate.

So you choose them randomly
09-07-2004, 03:24 PM#8
Necron.
well, im actually also working on an aos, and i dont think the hard part will be to make the hero LEARN the skill but too USE it... cuz iv made dragonhawks with cloud, and they dont use it against towers.. (and yes, the melee ai is on)

EDIT: errr i tried that dragonhawk project again, but this time i realized, ahh! --Scenario--Upgrades-Cloud-Researched ;) brilliant, but i still think u will have large amounts of trouble if they are custom skills..
09-08-2004, 02:55 AM#9
-={tWiStÄr}=-
Quote:
Originally Posted by Necron.
... i still think u will have large amounts of trouble if they are custom skills..
or if they're triggered spells.. but if i was making an AI for my AOS the spells would be the least of my worries. telling the hero where to go depending on where the other heroes are, making it run when its dieing, maybe even make it not go up against chars much stronger than it, etc.
09-08-2004, 02:59 AM#10
Ghost_81st
Quote:
Originally Posted by -={tWiStÄr}=-
or if they're triggered spells.. but if i was making an AI for my AOS the spells would be the least of my worries. telling the hero where to go depending on where the other heroes are, making it run when its dieing, maybe even make it not go up against chars much stronger than it, etc.

So what help was that?
I think that starting with something easy is the best way to start.