Ok, found it. All those functions are executed before ERM when new campaign map is chosen (bonus selected and start pressed). And this functionality will not work if you transfer hero from the second to the fourth scenario.
Thanks
Berserker. Unless I know more about hard code, I can do nothing about it

Berserker, I'm curious about this new version, and I want to ask you questions
(01.04.2021 03:05)Berserker Wrote: [ -> ][+] Добавлены новые события ERM:
"OnWinGame" происходит, когда игрок выигрывает сценарий.
"OnLoseGame" происходит, когда игрок проигрывает сценарий.
"OnHeroTransfer" происходит после ERM инструкций, но до PI (OnAfterErmInstructions).
Единственным аргументом является ИД героя, который переносится из предыдущего сценария, как указано в настройках файла кампании.
1. This new feature looks interesting but I wonder in which cases we could use it?
2. Are these new connectors for creating custom campaigns? are we getting closer to recovering WoG Campaigns without replacing?
- function IsCampaign: TDwordBool;
- procedure GetCampaignFileName (Buf: pchar);
- procedure GetMapFileName (Buf: pchar);
3. About Era Erm Framework, this uses an algorithm similar to unlimited sounds, only now any files can be specified? is it like making a priority system without having to make empty files? (empty dlls in most cases).
Thanks for this interesting update

1-2 are necessary for Archer30. He wants Henchmen to be transferred with campaign heroes.
You can also implement your custom hero export/import in this events.
3. I don't understand the question.
Welcome )
Berserker, About Era Erm Framework seems to be a system that manages the files without having to manually modify them within the data of the mods, that seems curious to me
V_Maiko, nope. The library just contains tons of usefull callable functions (pieces of code). There is special Runtime directory, where you can create/delete/update real files and folders.
Berserker, And I can know what is the difference between that and what I said?

V_Maiko, maybe you say the same in other words

Berserker, thank you so much for the 3.3.9 update! Yes, this is everything I asked. That should be enough to create a decent campaign carryover feature.
However, my mind changes quickly, and I immediately come out with 2 more requests

1. Is there a way to check the ID of the scenario (zone) of a campaign?
2. Is there a way to check which bonus was selected from the start of a scenario (zone)?
Reason for asking these are
1. If I can check the ID of the zone and also I get the filename of the campaign, I can get a unique result of the combination and know what I should do to the carryover feature. Otherwise, I have to put a mark for every single campaign map in Maps/Resources directory.
2. In some campaigns, you are asked to select heroes from your previous zones. Like this (RoE - Dungeon and Devils - Zone 3):
Knowing which bonus was selected is essential for loading the corrected copy of hero data.
Berserker, Извиняюсь переспрошу - изображения готовить в Png или Bmp? Просто 24 бит же bmp вы добавили поддержку, а не png. И 24 или 32 бит?
Archer30,
1 - yes, be needs new release.
2 - I don't know.
Check also if OnWinGame occurs after loading saved campaign game.
Well, yes, OnWinGame triggers after loading saved campaign game - not sure if this is good or bad
It's good. You need only 1 file. Export henchman in OnWinGame and import in OnTransferHero with possible question.
Yes, that's quite good. I can even use w51 - w100 without worrying about players closing the game before the variables get transferred.
For the
2# issue, I will just check hero ID to confirm which copy of data to load. Luckily H3 has an internal restriction that Zone 1 and Zone 2 can never have the same hero ID
I will try to make a platform mod that allowing mod makers to import features carrying over easily.

С новыми нововведениями для диалогов стало невозможным вызывать один поверх другого. Закрываются все сразу, как я понял.
А повторный вызов замораживает игру