.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

ATF: Armored Task Force- Save $8.00
War Plan Pacific- Save $8.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old April 21st, 2012, 08:57 AM

legowarrior legowarrior is offline
Second Lieutenant
 
Join Date: Dec 2008
Posts: 412
Thanks: 19
Thanked 18 Times in 5 Posts
legowarrior is on a distinguished road
Default Attack Archers Question

If I set up a block of infantry set to Guard Commander up front, and I scatter in a few archers, would they be targeted by archers, or should I set up a few Archers by themselves up front, and set those guys separately to guard commander?
Reply With Quote
  #2  
Old April 21st, 2012, 09:24 AM

JonBrave JonBrave is offline
Second Lieutenant
 
Join Date: Aug 2010
Posts: 546
Thanks: 100
Thanked 10 Times in 8 Posts
JonBrave is on a distinguished road
Default Re: Attack Archers Question

Doubtless I'll be wrong, but I thought the AI picks a random target then fires; if you pick archers as target, increased chance it'll choose an archer. I would have thought regardless of where your archers are or what they are doing, each one has an equal chance of being targeted. If they are sitting next to troops you don't want targeted, move them away.
Reply With Quote
  #3  
Old April 22nd, 2012, 10:24 AM

legowarrior legowarrior is offline
Second Lieutenant
 
Join Date: Dec 2008
Posts: 412
Thanks: 19
Thanked 18 Times in 5 Posts
legowarrior is on a distinguished road
Default Re: Attack Archers Question

So, does that mean including archers in my decoy unit will draw fire?
Reply With Quote
  #4  
Old April 22nd, 2012, 02:37 PM
Soyweiser's Avatar

Soyweiser Soyweiser is offline
Colonel
 
Join Date: Nov 2008
Posts: 1,735
Thanks: 272
Thanked 120 Times in 93 Posts
Soyweiser is on a distinguished road
Default Re: Attack Archers Question

I don't think the target selection is random. If set to shoot archers, they will target archers over any other unit. No matter how far away.

Randomness only applies when there are multiple groups of the same size units nearby. But mostly they will just target the nearest ones.

(Not that this is the weakest part of my game, I suck at preemtive scripting, I'm better at reactionary scripting).
__________________
I'm acting like a high school girl /\
Bookmark these links:
http://dom3.servegame.com/wiki/
http://wolfsbane.alwaysdata.net/Spells.html
Test stuff, use the debug mod:
http://forum.shrapnelgames.com/showthread.php?t=36453
Reply With Quote
  #5  
Old April 22nd, 2012, 02:47 PM

Calahan Calahan is offline
BANNED USER
 
Join Date: Nov 2007
Location: San Francisco, nr Wales
Posts: 1,539
Thanks: 226
Thanked 296 Times in 136 Posts
Calahan is on a distinguished road
Default Re: Attack Archers Question

Quote:
Originally Posted by Soyweiser View Post
I suck at preemtive scripting, I'm better at reactionary scripting.
Note to self - To beat Soyweiser easily, just move things around a bit after each battle.
Reply With Quote
  #6  
Old April 22nd, 2012, 04:23 PM

legowarrior legowarrior is offline
Second Lieutenant
 
Join Date: Dec 2008
Posts: 412
Thanks: 19
Thanked 18 Times in 5 Posts
legowarrior is on a distinguished road
Default Re: Attack Archers Question

Allow me to give an example. I have a leader with Shielded Infantry archers and halberd infantry.
Now, if I want to create a decoy for Target Archers troops can I

A) Create 3 squads, a Halberd squad, an Archer squad and a decoy squad with both shield and a few archers that acts as a decoy to units targeting both closets and archers.

B) Create 4 squads, A Halberd Squad, an Archer squad and a decoy shield squad for those targeting closet and a decoy archer squad for those targeting archers.
Reply With Quote
  #7  
Old April 22nd, 2012, 05:11 PM
Soyweiser's Avatar

Soyweiser Soyweiser is offline
Colonel
 
Join Date: Nov 2008
Posts: 1,735
Thanks: 272
Thanked 120 Times in 93 Posts
Soyweiser is on a distinguished road
Default Re: Attack Archers Question

Quote:
Originally Posted by Calahan View Post
Quote:
Originally Posted by Soyweiser View Post
I suck at preemtive scripting, I'm better at reactionary scripting.
Note to self - To beat Soyweiser easily, just move things around a bit after each battle.
Yeah, that will only work once . And you would be surprised how often people don't do this.
__________________
I'm acting like a high school girl /\
Bookmark these links:
http://dom3.servegame.com/wiki/
http://wolfsbane.alwaysdata.net/Spells.html
Test stuff, use the debug mod:
http://forum.shrapnelgames.com/showthread.php?t=36453
Reply With Quote
  #8  
Old April 22nd, 2012, 06:27 PM

Valerius Valerius is offline
Major General
 
Join Date: Mar 2007
Posts: 2,046
Thanks: 83
Thanked 215 Times in 77 Posts
Valerius is on a distinguished road
Default Re: Attack Archers Question

Quote:
Originally Posted by legowarrior View Post
Allow me to give an example. I have a leader with Shielded Infantry archers and halberd infantry.
Now, if I want to create a decoy for Target Archers troops can I

A) Create 3 squads, a Halberd squad, an Archer squad and a decoy squad with both shield and a few archers that acts as a decoy to units targeting both closets and archers.

B) Create 4 squads, A Halberd Squad, an Archer squad and a decoy shield squad for those targeting closet and a decoy archer squad for those targeting archers.
Either will work. See attached game for option A attracting fire from both archers set to fire closest and archers set to fire on archers.
Attached Files
File Type: zip aaaD9test.zip (3.63 MB, 70 views)
Reply With Quote
The Following User Says Thank You to Valerius For This Useful Post:
  #9  
Old April 22nd, 2012, 07:19 PM

legowarrior legowarrior is offline
Second Lieutenant
 
Join Date: Dec 2008
Posts: 412
Thanks: 19
Thanked 18 Times in 5 Posts
legowarrior is on a distinguished road
Default Re: Attack Archers Question

I see, not all the fire was directed at the composite unit though but a lot of it was. Thanks, I think that might help a lot in a few game turns.

Thank you for your help.
Reply With Quote
  #10  
Old April 22nd, 2012, 08:34 PM

Valerius Valerius is offline
Major General
 
Join Date: Mar 2007
Posts: 2,046
Thanks: 83
Thanked 215 Times in 77 Posts
Valerius is on a distinguished road
Default Re: Attack Archers Question

Doh! That's what happens when you test something and then make some final changes and don't pay close attention to how those play out. You're absolutely correct in that the archers set to "fire archers" targeted the opposing archers since they were in range - not the decoy.

I also should have attached the setup file, not the result file, so that you could change the setup and try different options. I've attached a revised version that is pre-battle.

The interesting thing is if I place TC's archers out of range of Van's then both Van's "fire archers" group and "fire closest" group target the decoy. But as TC's archers get in range Van's "fire archers" group switches to them while the "fire closest" group still targets the decoy. But then, when TC's archers get closer than the decoy both of Van's archer groups switch to TC's archers. And that part is kind of strange to me as archer decoys are intended to take advantage of target lock so I'm not sure why they are switching targets as TC's archers get closer.
Attached Files
File Type: zip aaaD9test2.zip (3.62 MB, 79 views)
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:39 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.