Home

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 3 users and 229 guests online.

Online users

  • TheChin
  • Yoda
  • Firzen_Zero

Languages

  • English English
  • French French

Browse archives

« January 2009  
Mo Tu We Th Fr Sa Su
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Ship design and default combat strategies.

Submitted by Fallen Haven on Sun, 2006-11-26 08:17. SE:V MODs

Is there a way to code it so that when a ship of a particular design is build, that it default to a particular strategy? I mean, the way the AI make it's ship, they always default to Optimal Range, and so far i did not see a way to script it so it's design based (ie a defense ship has defense strategies while an attack ship has very offensive strats by default). Right now how ships behave is really dependant on it's loadout, put a device that should not be there (like a gun on a Colony ship) and it screw the behavior of the ship. Of course i know WE CAN change it when WE design a ship, but i want the AI to use more advanced strategies and not just the default one...

‹ Scripting questions Need help adding a new shipset ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Soooooo....

Submitted by Fallen Haven on Mon, 2006-11-27 07:42.

No one has any ideas?

» login or register to post comments
Captain Kwok's picture
Mod Designer

Hard-coded?

Submitted by Captain Kwok on Mon, 2006-11-27 08:26.

None that I can find. It seems to be hard-coded - which it wasn't even in SE:IV...

-----

Space Empires Depot | SE:V Balance Mod

» login or register to post comments
Mod Designer

Race based

Submitted by Phoenix-D on Mon, 2006-11-27 13:20.
Captain Kwok wrote:
None that I can find. It seems to be hard-coded - which it wasn't even in SE:IV...
It isn't quite hard-coded, but for some bizzare reason its set on a racial basis rather than per-design. Its down near the end of RACENAME_Main_Script.txt.
//------------------------------------------------------------------------
// Set_Race_State_Preference_Values
//------------------------------------------------------------------------
function Set_Race_State_Preference_Values returns boolean
vars
  ai_state:     long
begin
  return TRUE
  set ai_state := Sys_Get_AI_State(sys_long_Player_ID)

  set lng_Fleet_Attack_Formation               := Sys_Get_Fleet_Formation_With_Name("Diamond")  
  set lng_Fleet_Defense_Formation              := Sys_Get_Fleet_Formation_With_Name("Spider")
  set lng_Fleet_Task_Force_Attack_Strategy     := Sys_Get_Strategy_With_Name(sys_long_Player_ID, "Optimal Firing Range")
  set lng_Fleet_Task_Force_Defense_Strategy    := Sys_Get_Strategy_With_Name(sys_long_Player_ID, "Optimal Firing Range") 
  set lng_Fleet_Task_Force_Attack_Formation    := Sys_Get_Task_Force_Formation_With_Name("Bullet")  
  set lng_Fleet_Task_Force_Defense_Formation   := Sys_Get_Task_Force_Formation_With_Name("Arrowhead")  

  case ai_state
    AI_STATE_EXPLORE_AND_EXPAND:    
      set lng_Max_Explorers                                           := 3
    AI_STATE_INFRASTRUCTURE:       
      set lng_Max_Explorers                                           := 1
    AI_STATE_ATTACK:               
      set lng_Max_Explorers                                           := 1
    AI_STATE_DEFEND:               
      set lng_Max_Explorers                                           := 1
    AI_STATE_NOT_CONNECTED:        
      set lng_Max_Explorers                                           := 2
  endcase
end
» login or register to post comments
Captain Kwok's picture
Mod Designer

Default design strategies, not fleet

Submitted by Captain Kwok on Mon, 2006-11-27 13:26.

Phoenix-D, I think he was talking about the default strategies set with design types - not with fleets.

-----

Space Empires Depot | SE:V Balance Mod

» login or register to post comments

Still...

Submitted by Fallen Haven on Mon, 2006-11-27 16:53.

By digging deeper into the code, i might be able to come up with a custom function to assign strategy on a per ship basis... Will have to check that.

» login or register to post comments
Captain Kwok's picture
Mod Designer

Need another function...

Submitted by Captain Kwok on Mon, 2006-11-27 17:14.

There is a system function to return the strategy's name, but I don't see anyway that one can be set for a design type. For some reason or another it never made it into the scripts.

-----

Space Empires Depot | SE:V Balance Mod

» login or register to post comments

Sad...

Submitted by Fallen Haven on Tue, 2006-11-28 06:57.

I hope One day it does make it...

» login or register to post comments
Captain Kwok's picture
Mod Designer

Should be easy to lobby for...

Submitted by Captain Kwok on Tue, 2006-11-28 13:26.

I think Aaron just needs a reminder to expose this part of the AI's workings. Anyhow I'd imagine once implemented it would be just a design type case structure with a specified default strategy name.

-----

Space Empires Depot | SE:V Balance Mod

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • Politic Game Crash
  • Research By Percentage SUCKS
  • Space Empires V 1.77
  • Space Empires V
  • Babylon 5 Space Empires V mod?

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • What fanfiction forums does anyone write on?
  • can't load program
  • Question regarding ship combat in 1.25 Demo
  • Don't get hurt - Strategy
  • Technology Flowchart for SE V
(c) Strategy First, Inc. All rights reserved.