AI detecting Crystallurgy and Organic Manipulation... |
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.
Re: AI detecting Crystallurgy and Organic Manipulation...
Empire_Has_Racial_Trait() doesn't work in the AI files?

Re: AI detecting Crystallurgy and Organic Manipulation...

Re: AI detecting Crystallurgy and Organic Manipulation...
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.

Re: AI detecting Crystallurgy and Organic Manipulation...
Does Sys_Get_Player_Resources_Received_Per_Turn() only returns the total amount of resources received from all sources.




Re: AI detecting Crystallurgy and Organic Manipulation...
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