Map Database  •  FAQ  •  RSS  •  Login

How does "Autoattack" work?

<<

Strangelove

User avatar

Crossbowman

Posts: 230

Joined: 30 Jul 2013, 06:32

KaM Skill Level: Fair

Post 02 Oct 2014, 19:18

How does "Autoattack" work?

In the new RCs you can choose Autoattack for the AI. But how does it work exactly? Does the AI attack randomly (timewise and unitwise) or does it wait till all attackpositions are "filled" and than attacks with all units? And what target do they attack?
<<

dicsoupcan

Moorbach's Guard

Posts: 1314

Joined: 12 Feb 2012, 21:36

KaM Skill Level: Fair

Post 02 Oct 2014, 19:59

Re: How does "Autoattack" work?

they attack you when you get in their attack range. for example when your auto attack is set on 10 the ai will attack you when you are 10 tiles form their units. this prevents sneaking into cities.
You have enemies? Good. That means you've stood up for something, sometime in your life. ~ Winston Churchill
<<

Strangelove

User avatar

Crossbowman

Posts: 230

Joined: 30 Jul 2013, 06:32

KaM Skill Level: Fair

Post 02 Oct 2014, 20:06

Re: How does "Autoattack" work?

What you mean is "Auto attack range". I was talking about "Autoattack". :P
<<

Michalpl

Sword Fighter

Posts: 318

Joined: 10 May 2014, 21:46

KaM Skill Level: Fair

Post 02 Oct 2014, 20:11

Re: How does "Autoattack" work?

Auto attack is AI auto attacking abillity it will launch attack when it will have enough soldiers
Now its limited to closest building
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 03 Oct 2014, 03:02

Re: How does "Autoattack" work?

Auto attack is quite primitive at the moment. The AI will attack the closest building once about 50% of their current backline defence positions are full. This seemed to work well in my tests on multiplayer maps. If you have auto defence enabled then the number of defence positions can change as the AI expands their territory, so auto attack updates the number of soldiers required based on these changes.
<<

Strangelove

User avatar

Crossbowman

Posts: 230

Joined: 30 Jul 2013, 06:32

KaM Skill Level: Fair

Post 04 Oct 2014, 18:52

Re: How does "Autoattack" work?

Auto attack is quite primitive at the moment. The AI will attack the closest building once about 50% of their current backline defence positions are full. This seemed to work well in my tests on multiplayer maps. If you have auto defence enabled then the number of defence positions can change as the AI expands their territory, so auto attack updates the number of soldiers required based on these changes.
Awww, I see. I had hope that it takes a random amount of Units and attacks a random target. The AI just seems too predictable when I set the attacks in the map-editor. I am ofc talking about singleplayer-maps, where the AI does not really build stuff by itself.
<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 05 Oct 2014, 10:07

Re: How does "Autoattack" work?

As far as I know, the only way to make the AI do 'random' stuff is with dynamic scripts...
<<

Strangelove

User avatar

Crossbowman

Posts: 230

Joined: 30 Jul 2013, 06:32

KaM Skill Level: Fair

Post 05 Oct 2014, 13:20

Re: How does "Autoattack" work?

As far as I know, the only way to make the AI do 'random' stuff is with dynamic scripts...
I thought so... I mean, I am not that bad with scripts, but it's too much of a hassle to completely code the AI attacks, when that AI should have defence positions as well. I am not sure if that wouldn't get in conflict with that. If there would be a Actions.AIAttack or something, it would be much easier. I hope there will be a way to add AI attacks with a single command. Like you can add defence positions and stuff now.
Till then, I guess I will have to use the one, that is built into the map-editor.

Return to “General / Questions”

Who is online

Users browsing this forum: Ahrefs [Bot] and 11 guests