|
|
|
|
|
April 16th, 2007, 03:08 PM
|
Second Lieutenant
|
|
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Strategy setting
How do you get the AI to assign a certain strategy to a design type? Boarding Ships are assigned Optimal Firing Range (in BM), which makes them pretty useless.
|
April 16th, 2007, 03:27 PM
|
Second Lieutenant
|
|
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Strategy setting
No where in the AI files is Sys_Set_Vehicle_Design_Strategy() set. It sets the Fleet strategy with the player preference though. I am guessing it is defaulting to Optimal? If this is true, is it even possible for the AI to invade a planet or do anything else other then run or optimal firing range?
|
April 16th, 2007, 03:41 PM
|
National Security Advisor
|
|
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Strategy setting
Kwok probably just hasn't implemented that feature yet, since it was only added in the 1.33 patch.
__________________
Phoenix-D
I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
- Digger
|
April 16th, 2007, 03:44 PM
|
Second Lieutenant
|
|
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Strategy setting
Oh, I did not realize it was a new function
|
April 16th, 2007, 04:23 PM
|
Second Lieutenant
|
|
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Strategy setting
Success...
Adding
set bool_res :=
Sys_Set_Vehicle_Design_Strategy(sys_long_player_id ,design_id,"Capture Enemy Ships")
to the designcreation file in the function Add_Required_Components_To_Design at the case statement for Boarding Ships changes the ship strategy to Capture Enemy Ships.
There is probably a better place to put it, I just put it there because a case statement was already there and it was called.
|
April 16th, 2007, 04:36 PM
|
|
National Security Advisor
|
|
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
|
|
Re: Strategy setting
Yeah, it was on the v1.05 to-do list, but keeps getting pushed back. I'll improve the strategy choices for v1.07.
|
April 16th, 2007, 04:40 PM
|
Second Lieutenant
|
|
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Strategy setting
Kwok, I added a case statement to Create_Design that assigns better strategies, want me to send the function to you?
|
April 16th, 2007, 05:48 PM
|
Second Lieutenant
|
|
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Strategy setting
The next problem is the Fleet strategy overrides the ship strategy.
|
April 16th, 2007, 06:01 PM
|
National Security Advisor
|
|
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Strategy setting
That's, uh, not a problem. Its how its supposed to work.
If you want ship strategies to take effect, have the ships Break Formation.
__________________
Phoenix-D
I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
- Digger
|
April 16th, 2007, 06:05 PM
|
Second Lieutenant
|
|
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Strategy setting
The Capture Enemy Ships strategy has Break Formation Immediately set to TRUE...should that be the one that tells them to do it? Optimal Firing Range has that value set to True as well.
In order to get the Boarding Ships to work in the fleet, I had to set the Defensive Strategy to Capture Enemy Ships. Otherwise they always ran.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|