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

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 0 users and 121 guests online.

Languages

  • English English
  • French French

Browse archives

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

AI detecting Crystallurgy and Organic Manipulation...

Submitted by Gideon on Fri, 2007-10-26 18:53. SE:V MODs

I don't know if this has been posted in the bug area under Projects, but I think it should be mentioned here, even if it is.

This is for the AI scripting, not the Data files.

It seems that Sys_Does_Empire_Have_Ability() either does not function, or at least does not return TRUE if the checked player has either Crystallurgy or Organic Manipulation abilities.

I've developed a work-around for my mod, so I'm good, but I thought the rest of the modders might like a heads up.

‹ Unique buildings and ships Homeworld Shipsets - How to? ›
» 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.
Captain Kwok's picture
Mod Designer

Re: AI detecting Crystallurgy and Organic Manipulation...

Submitted by Captain Kwok on Fri, 2007-10-26 20:22.

You'd want to use Sys_Is_Empire_Research_Tech_Visible since those are tech areas and not abilities.


Space Empires Depot | SE:V Balance Mod

» login or register to post comments

Re: AI detecting Crystallurgy and Organic Manipulation...

Submitted by Nevyn on Fri, 2007-10-26 21:21.

Empire_Has_Racial_Trait() doesn't work in the AI files?

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

Re: AI detecting Crystallurgy and Organic Manipulation...

Submitted by Captain Kwok on Fri, 2007-10-26 21:55.

That's a data file function, not a script function.


Space Empires Depot | SE:V Balance Mod

» login or register to post comments
Mod Designer

Re: AI detecting Crystallurgy and Organic Manipulation...

Submitted by Gideon on Fri, 2007-10-26 23:37.

Captain Kwok wrote:
You'd want to use Sys_Is_Empire_Research_Tech_Visible since those are tech areas and not abilities.

Hmmm...perhaps a better definition of what is considered an Ability is in order, then.

On this exact topic...

I've not messed with this, but maybe you can tell me:

Lets say, for example, I do not have the Organic Manipulation trait, but I aquire a level in Organic Engineering through trade or espionage.

Would Sys_Is_Empire_Research_Tech_Visible() then return true if I checked that against me for the Organic Engineering tech?

Perhaps, does the game simply prevent you from aquiring that kind of tech if you don't have the required trait?

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

» login or register to post comments
Mod Designer

Re: AI detecting Crystallurgy and Organic Manipulation...

Submitted by Gideon on Fri, 2007-10-26 23:40.

While I'm on the general subject of obscure script commands...

Does Sys_Get_Player_Resources_Received_Per_Turn() return the resources you get as calculated BEFORE or AFTER expendatures for upkeep and build queues?

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

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

Re: AI detecting Crystallurgy and Organic Manipulation...

Submitted by Isopsyco on Fri, 2007-11-02 07:58.

Gideon wrote:
While I'm on the general subject of obscure script commands...

Does Sys_Get_Player_Resources_Received_Per_Turn() return the resources you get as calculated BEFORE or AFTER expendatures for upkeep and build queues?

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

I think it depends on which script file you place it in. If its in the external events script it should pick up after all the expenditures are finished and your ready to begin your turn. If its in the empire main script I think it would depend again on what part of the script executes first, your expenditure portion or that command. Since there spread out all over several text files its a little messy to track down certain things.
Anyway, thats my best assumption.

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

Re: AI detecting Crystallurgy and Organic Manipulation...

Submitted by Captain Kwok on Fri, 2007-11-02 08:29.

Does Sys_Get_Player_Resources_Received_Per_Turn() only returns the total amount of resources received from all sources.


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:

  • Research By Percentage SUCKS
  • Cloaked Warp Points
  • Capturing suicidal colony ships of Balance Mod AI empires
  • Space Empires V 1.74
  • Space Empires V

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:

  • Ground Combat mod 2.01b now ready for download
  • Noob questions
  • Space Empires V
  • leaky armor
(c) Strategy First, Inc. All rights reserved.