HOI4 has something called "targeted variables". It's something that allows you to create a variable that's targeted at each country. For example, if someone wanted to add "country opinion" variable. They could and it would work as root.country_opinion@target (target can be any country id or prev/this etc..) and the value of country opinion would change dynamically based on the target country. Is such thing possible in Imperator Rome or can it be done differently?
Also what is the difference between Data System and Scripted GUI? Does the Data System control what's already available in the GUI? Or can you create new GUI/buttons via the Data System?
I hope it's possible to change GUI mechanics or create new buttons via the Data System. Because if the AI can't use Scripted GUI I don't see much use for it at least not yet (I assume AI support may be added later). Some actions would be scope based (like selected state) and it would be hard to trigger them by events for the AI.
Also what is the difference between Data System and Scripted GUI? Does the Data System control what's already available in the GUI? Or can you create new GUI/buttons via the Data System?
I hope it's possible to change GUI mechanics or create new buttons via the Data System. Because if the AI can't use Scripted GUI I don't see much use for it at least not yet (I assume AI support may be added later). Some actions would be scope based (like selected state) and it would be hard to trigger them by events for the AI.
Last edited: