![]() |
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.
|
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?
|
Re: Strategy setting
Kwok probably just hasn't implemented that feature yet, since it was only added in the 1.33 patch.
|
Re: Strategy setting
Oh, I did not realize it was a new function http://forum.shrapnelgames.com/images/smilies/happy.gif
|
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. |
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.
|
Re: Strategy setting
Kwok, I added a case statement to Create_Design that assigns better strategies, want me to send the function to you?
|
Re: Strategy setting
The next problem is the Fleet strategy overrides the ship strategy.
|
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. |
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. |
All times are GMT -4. The time now is 02:38 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.