Function to check if Intelligence is allowed? |
Is there a function to check if intelligence is allowed? I'm trying to improve facility and colony selection for the computer and I need a function that returns this for those non-intelligence games. Checked the Scripting manual and could not find one. If there isnt one, are there plans to have one in future patches?
-unnamed

Re: Function to check if Intelligence is allowed?
I do this by checking if the gateway technology area (Intelligence Services) is available. If it's not, the AI will not designate any colonies for intelligence. The tech area itself will never be available for research.
-----

Re: Function to check if Intelligence is allowed?
Oops, I recall running into that as well. Trying using Sys_Is_Empire_Research_Tech_Visible instead.
-----

Re: Function to check if Intelligence is allowed?
Are they actually obtaining levels in Intelligence Services?
-----
Re: Function to check if Intelligence is allowed?
unnamed & kwok, did you ever solve this one?
I am about to try a new game and would like to know if I can disallow intelligence in your mods without handicapping the AI.
This is because if you have a universe with several AI players and make them all gang up on the human player you get completely slaughtered by intel especially when you meet a new race and it uses all its points against you !

Re: Function to check if Intelligence is allowed?
Re: Function to check if Intelligence is allowed?
Thanks CK I am trying out both in the next few days, will report here if I find anything unexpected.

Re: Function to check if Intelligence is allowed?
I am sorry to say I spotted a bug in unnamedAI mod for 1.58 where AI has built an intelligence center in a game where intel is disallowed. Game save is available if needed.
Re: Function to check if Intelligence is allowed?
thanks and glad you are still on the case, looking forward to your next version, I will be sure to try it out 




Re: Function to check if Intelligence is allowed?
There is no function to get directly, if intelligence
is disabled. I would investigate how game disables
intelligence, by deleting intelligence points or
returning failure for intelligence functions.
Then when I see pattern I would use anything that
indicates that int. can't be used to detect no intel
game type.
Greetings, Branimir.