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 254 invités en ligne.

Utilisateurs en ligne

  • MondoMage
  • Randallw
  • mudshark
  • goduranus

Languages

  • English English
  • French French

Parcourir les archives

« Décembre 2008  
Lu Ma Me Je Ve Sa Di
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

Making It So Only The AI Can Use a Certain Component or Technology.

Soumis par BlueGreen le Sam, 2007-11-24 10:47 SE:V MODs

Hey all Ive browsed through all the parsable text files and data files, etc... But havent been able to figure out a way to make it so only the AI can use a certain component or technology. It seems the human will also have access to it too. I know I could manually assign a racial trait to the AI when starting a game; but I dont want to do it like this I want new randomly created AI to have components and tech they can use but the human can't Smiling

Any help is much appreciated hehe..

‹ Scenarios: How to? Design Types.txt and ColonyTypes.txt question ›
» 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.
Image de Isopsyco
Mod Designer

Re: Making It So Only The AI Can Use a Certain Component or Tech

Soumis par Isopsyco le Sam, 2007-11-24 11:11

I think you can use the ability formula 'empire_is_human_controlled' and just put a NOT statement in.

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

Re: Making It So Only The AI Can Use a Certain Component or Tech

Soumis par Gideon le Sam, 2007-11-24 14:38

Isopsyco wrote:
I think you can use the ability formula 'empire_is_human_controlled' and just put a NOT statement in.

Be sure to reference that requirement with "Requirements Evaluation Availability". That way, it won't even appear to the human player as an option.

"Only by being constantly at war with evil in all things, including yourself, can you truely know peace."
Download my mod here: GidMod

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

Re: Making It So Only The AI Can Use a Certain Component or Tech

Soumis par Isopsyco le Sam, 2007-11-24 23:55

Ahh, good catch. Forgot about that. I spend more time in the script docs than the mod docs.....

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

Re: Making It So Only The AI Can Use a Certain Component or Tech

Soumis par BlueGreen le Lun, 2007-11-26 04:51

Thanks a lot peeps; thats really helpful Smiling

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

Re: Making It So Only The AI Can Use a Certain Component or Tech

Soumis par Iagan le Jeu, 2007-12-27 14:10

Any luck with this? empire_is_human_controlled() seems to want the player number, but doesn't seem to want to work with [%PlayerNumber%] for me. How do I feed it the number it wants? Is the Human always player 1 in a solo game?

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

Re: Making It So Only The AI Can Use a Certain Component or Tech

Soumis par ekolis le Jeu, 2007-12-27 21:37

In solo games, the human player is player 1 (unless you take control of another empire using the game master password).

[%PlayerNumber%] apparently only works in VictoryConditions.txt. You might be able to convince Aaron to make it work elsewhere if you ask him...

A trick used in the AI Campaign mod for SE4 is to create a 0-point racial trait called "AI Empire" and assign all your AI-specific techs, etc. to that racial trait, then make all your AI's take that trait and tell players not to. (You could try to penalize players who do, but I'm not sure how... maybe you could make certain things that the AI *can't* use effectively but that are beneficial to a human player require that the empire *not* have that trait?)

Of course, using the racial trait route, the "AI-ness" of the empires is locked in from the beginning of the game, so if a player drops out or a human player takes over for an AI empire, the racial traits will be wrong, but that probably beats techs mysteriously appearing for an empire as control of the empire switches around - if you research even one level in a tech, it will not disappear (if I recall correctly) even if you lose the prerequisite for it! (Try making a tech that requires that, say, physics be below level 2 to see what I mean.)

Components, though, are different - if you have a component and you lose its prerequisites, you will no longer be able to place it on new designs - though you will still be able to build ships of old designs containing that component!

~~~
The power of the ancients is now yours to command. You are truly the Master... of the obvious Sticking out tongue

» 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 :

  • Balance Mod - Problem with Tech Trading...
  • Bad Bookkeeping
  • Multiplayer
  • Blockade
  • Error in "SystemTypes.txt"
(c) Strategy First, Inc. All rights reserved.