Skip to content

Posts from Implementing hero transfer in campaigns. Auto-translated

No ratings yet — be the first to rate!
User Avatar
#1
Auto-translated
So, I had a question. How is the transfer of heroes between missions in the developers' campaigns implemented? Are their level, stats, spells, skills, and abilities transferred? I found the artifact transfer in the .lua scripts of each mission's addon. But what about the 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 Rai'lag, considering that all campaigns are installed in ToE with the modification? I would be grateful for any explanations.
User Avatar
#2
Auto-translated
DevoRevo
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.
Everything works thanks to the xdb files of the campaigns, within which, in certain tags, they indicate from where and to where the hero should be transferred. 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 Hammers of Fate and The Price of Loyalty campaigns; the main thing is that the script names of the heroes match during the transfer (because there are two Raileighs, Isabels, and Freeds).
Сценарий: "Наследие прошлого"
Кампании:
"
Новый порядок", "Серый Альянс""Поиски Истины"

Трейлер №2 кампании "Дыхание Пустоты": https://www.youtube.com/watch?v=XkHKXk5BctA&ab_channel=%D0%90ndrei_21

In reply to Andrei_21
User Avatar
#3
Auto-translated
Andrei_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?
User Avatar
#4
Auto-translated
All inside the data.pak archive, then the Campaigns folder, and inside are examples for all original 3.1 campaigns. In the files, you need to search for lines containing   and within them there will be data on hero transfer: name, mission, campaign.
Сценарий: "Наследие прошлого"
Кампании:
"
Новый порядок", "Серый Альянс""Поиски Истины"

Трейлер №2 кампании "Дыхание Пустоты": https://www.youtube.com/watch?v=XkHKXk5BctA&ab_channel=%D0%90ndrei_21