Accueil Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

Connexion utilisateur

  • Créer un nouveau compte
  • Demander un nouveau mot de passe

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • agrégateur de nouvelles

Rechercher

Qui est en ligne

Il y a actuellement 4 utilisateurs et 226 invités en ligne.

Utilisateurs en ligne

  • goduranus
  • Qcontinuum
  • Randallw
  • ForesterSOF

Languages

  • English English
  • French French

Parcourir les archives

« December 2008  
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        
Accueil » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Ship design and default combat strategies.

Soumis par Fallen Haven le Dim, 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 ›
» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.

Soooooo....

Soumis par Fallen Haven le Lun, 2006-11-27 07:42

No one has any ideas?

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Captain Kwok
Mod Designer

Hard-coded?

Soumis par Captain Kwok le Lun, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Mod Designer

Race based

Soumis par Phoenix-D le Lun, 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
» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Captain Kwok
Mod Designer

Default design strategies, not fleet

Soumis par Captain Kwok le Lun, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Still...

Soumis par Fallen Haven le Lun, 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.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Captain Kwok
Mod Designer

Need another function...

Soumis par Captain Kwok le Lun, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Sad...

Soumis par Fallen Haven le Mar, 2006-11-28 06:57

I hope One day it does make it...

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Captain Kwok
Mod Designer

Should be easy to lobby for...

Soumis par Captain Kwok le Mar, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.

Now on STEAM

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

Contenu populaire

Aujourd'hui :

  • Babylon 5 Wars SEV Mod Update
  • Known SE5 v1.74 Bugs
  • Research By Percentage SUCKS
  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Bad Bookkeeping

Depuis toujours :

  • 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

Dernier accès :

  • tachyon and ionic mines
  • Planet repartition scheme
  • Log from Chat with Aaron
  • Issues with Simultaneous moving
  • Slow and Pointless attacks...
(c) Strategy First, Inc. All rights reserved.