Posts from Implementing hero transfer in campaigns.
Auto-translated
So, I had a question. How is the transfer of heroes between missions in the developers' campaigns implemented? Level, stats, spells, skills, and abilities are transferred. I found the artifact transfer in the .lua scripts of each mission's addon. But what about heroes? And is it possible to do this between campaigns, for example, between the campaigns of the first game and the Hammers of Fate addon with Raileigh, considering that all campaigns are installed in ToE with a modification? I would be grateful for any explanations.
Кампании: "Новый порядок", "Серый Альянс", "Поиски Истины"
Трейлер №2 кампании "Дыхание Пустоты": https://www.youtube.com/watch?v=XkHKXk5BctA&ab_channel=%D0%90ndrei_21
Everything works thanks to the xdb files of the campaigns, within which, in certain tags, it is indicated where and to which campaign the hero should move. And transferring between campaigns can also be implemented; one tag is allocated for this (this is exactly how all the main characters are transferred in version 1.6). If desired, it is quite possible to arrange a transfer between the Tribes of the East and Haven campaigns; the main thing is that when transferring, the script names of the heroes match (because there are two Raileighs, Isabel, and Fried).
I know about the names, as well as about the hero types. This is not the most difficult part. Could you provide an example of an .xdb file with such a transfer, or a snippet of code from it? Or better yet, name a file and tell me where they are stored, and I'll look around there myself?
Кампании: "Новый порядок", "Серый Альянс", "Поиски Истины"
Трейлер №2 кампании "Дыхание Пустоты": https://www.youtube.com/watch?v=XkHKXk5BctA&ab_channel=%D0%90ndrei_21