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

This Month's Specials

BCT Commander- Save $8.00
winSPWW2- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEV Modders Knowledge Base

Reply
 
Thread Tools Display Modes
  #1  
Old April 16th, 2007, 03:08 PM

aegisx aegisx is offline
Second Lieutenant
 
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
aegisx is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old April 16th, 2007, 03:27 PM

aegisx aegisx is offline
Second Lieutenant
 
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
aegisx is on a distinguished road
Default 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?
Reply With Quote
  #3  
Old April 16th, 2007, 03:41 PM

Phoenix-D Phoenix-D is offline
National Security Advisor
 
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default 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
Reply With Quote
  #4  
Old April 16th, 2007, 03:44 PM

aegisx aegisx is offline
Second Lieutenant
 
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
aegisx is on a distinguished road
Default Re: Strategy setting

Oh, I did not realize it was a new function
Reply With Quote
  #5  
Old April 16th, 2007, 04:23 PM

aegisx aegisx is offline
Second Lieutenant
 
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
aegisx is on a distinguished road
Default 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.
Reply With Quote
  #6  
Old April 16th, 2007, 04:36 PM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default 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.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 06:53 PM.


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