I was working with the GetHeroCreaturesType function. The idea is that it should return a table of creature IDs in the hero's army, but in reality, it writes them into a single number (for example, instead of 138, 72, 73, 0, 0, 0, 0, it writes 138727300). Reassigning the result returned by this function to another variable, of course, didn't give any results, erasing everything up to the first value (138). In this regard, the question is: how can I extract these IDs? Thank you in advance.
you can try something like this:
function pack(...)
return arg
end
id_table = pack(GetHeroCreaturesTypes(hero))