How can AI store data in game

Hello! I’m new to the EU4 and try to create AI. My question is how can AI retain certain data (location food, object names or other AI etc) during the game? It is possible? May return with other relevant explanations … Thanks!

Blackboards can store data for AI to access such as locations, actors, etc. You may want to read up on their use and take a quick look at some of the Epic live streams on youtube for setting up AI they cover a few topics on the things you’ve mentioned.
Here are the links to some documentation that may get you in the right direction:
https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/UserGuide/

Using the EQS:
https://docs.unrealengine.com/latest/INT/Engine/AI/EnvironmentQuerySystem/QuickStart/6/