• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Showing developer posts only. Show all posts in this thread.
There isn't and likely won't be, the data system is very strongly typed.

So a GetFromDataModel( SomeModel, 1st ) would need to return some arbitrary type to work how you need, but every registered data function must specifically match both in its name, what arguments it takes in what order and what it returns.

So there would need to be a GetCharacterFromDataModel, GetCountryFromDataModel, GetProvinceFromDataModel etc.
 
In that case, would it be possible to limit how much the iterators go through? For example, in a Java for loop you can simply indicate you only want it to go from i = 3 to 5, regardless of how big the array is
That isn't the issue, the issue is you need to specify that you are taking an array and finding something in it which will be a Character type or a Country type, each of those would need to specifically be a separate function.