Skip to content

Posts from Implementing hero transfer in campaigns.

No ratings yet — be the first to rate!
User Avatar
3 years ago
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
3 years ago
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).
In reply to Andrei_21
User Avatar
3 years ago
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
3 years ago
Auto-translated
Everything is inside the data.pak archive, then in the Campaigns folder, and inside are examples for all the original 3.1 campaigns. You need to look for the `` strings in the files, and inside you will find the data for each hero: name, mission, campaign.

Statistics

Welcome our newest member: recijeb