.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   SEV Modders Knowledge Base (http://forum.shrapnelgames.com/forumdisplay.php?f=154)
-   -   Strategy setting (http://forum.shrapnelgames.com/showthread.php?t=34246)

aegisx April 16th, 2007 03:08 PM

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.

aegisx April 16th, 2007 03:27 PM

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?

Phoenix-D April 16th, 2007 03:41 PM

Re: Strategy setting
 
Kwok probably just hasn't implemented that feature yet, since it was only added in the 1.33 patch.

aegisx April 16th, 2007 03:44 PM

Re: Strategy setting
 
Oh, I did not realize it was a new function http://forum.shrapnelgames.com/images/smilies/happy.gif

aegisx April 16th, 2007 04:23 PM

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.

Captain Kwok April 16th, 2007 04:36 PM

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.

aegisx April 16th, 2007 04:40 PM

Re: Strategy setting
 
Kwok, I added a case statement to Create_Design that assigns better strategies, want me to send the function to you?

aegisx April 16th, 2007 05:48 PM

Re: Strategy setting
 
The next problem is the Fleet strategy overrides the ship strategy.

Phoenix-D April 16th, 2007 06:01 PM

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.

aegisx April 16th, 2007 06:05 PM

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 05:00 PM.

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