[Help in modding] Is there anyone know how to make some object could only used by AI?

I am made a RPG-like mod these days, and as the AI is coded for RTS, I want to give AI some kind of support that can not be used by players.

 

Is there any way to make research or ability or other thing could only be used by AI but players?

(Or resources given from "Mars", well, an old saying from HOI )

I have not seen a mod like that, so I have no module to learn.

Thanks a lot for answer.

5,496 views 5 replies
Reply #1 Top

I have not seen a mod like that, so I have no module to learn.
End of quote

You need to play more mods, many of them have AI only features (of course they're designed so that the player does not see them).

Research can be made AI only if you give the research a location far outside the normal research grid. Players will be unable to press the button to research it but the AI can still research it. From their you can make AI only abilities that use the research as a prerequisite.

Reply #2 Top

Quoting GoaFan77, reply 1


Research can be made AI only if you give the research a location far outside the normal research grid. Players will be unable to press the button to research it but the AI can still research it. From their you can make AI only abilities that use the research as a prerequisite.
End of GoaFan77's quote

 

That is really amazing, I have never thought about it before. Another question, what determines which research AI will research it first .Tier ? Price ? Or something else.

Happy new year by the way

Reply #3 Top

Quoting BingXueZhiYa, reply 2


Quoting GoaFan77, reply 1

Research can be made AI only if you give the research a location far outside the normal research grid. Players will be unable to press the button to research it but the AI can still research it. From their you can make AI only abilities that use the research as a prerequisite.

 

That is really amazing, I have never thought about it before. Another question, what determines which research AI will research it first .Tier ? Price ? Or something else.

Happy new year by the way
End of BingXueZhiYa's quote

There is no way to set that exactly, but if its free, instant and requires 1 lab it will probably get it sooner rather than later.

Reply #4 Top

Quoting GoaFan77, reply 3


There is no way to set that exactly, but if its free, instant and requires 1 lab it will probably get it sooner rather than later.
End of GoaFan77's quote

 

Thanks a lot.

Reply #5 Top

Quoting BingXueZhiYa, reply 4


Quoting GoaFan77, reply 3

There is no way to set that exactly, but if its free, instant and requires 1 lab it will probably get it sooner rather than later.

 

Thanks a lot.
End of BingXueZhiYa's quote

 

The AI also apparently prioritizes unlocking new ships. So if you have a research chain that ends in a ship unlock the AI will prefer to follow that