| Berserker   
   
   Posts: 16785
 
 |  | 
	| 19.09.2021 22:27 |  | 
	
		| daemon_n   
   
   Posts: 4366
 
 | 
			| 
 
				Berserker, спасибо! Делаю как раз то, что просит Archer30 :       !!SN:Ex1/1/5942672/(gem_BeforeHeroSwap);       !!SN:Ex1/1/4893738/(gem_AfterHeroSwap); - адреса взял из wog native dialogs. by igrik . 
работает и для экрана города, и для Карты Приключений.
 
Для того я просил адреса, чтобы корректно получать номера героев. 
Использую триггер       !!SN:Ex1/1/5968384/(gem_OnUpdateHeroInteractionScreen); 
Как я понял, работает он While 1; 
Что приятно, с HD mod проблем не возникает    
 
  
 Новейший Heroes Launcher
 |  | 
	| 20.09.2021 07:37 |  | 
	
		| igrik   
   Posts: 2821
 
 |  | 
	| 20.09.2021 10:13 |  | 
	
		| igrik   
   Posts: 2821
 
 |  | 
	| 20.09.2021 10:32 |  | 
	
		| daemon_n   
   
   Posts: 4366
 
 |  | 
	| 20.09.2021 11:21 |  | 
	
		| Archer30   
   
   Posts: 1192
 
 | 
			| 
 
				Looks like HE:A1 doesn't work with "set" for artifact in backpack. Any idea    ________
 
Also, I propose an alternative method for checking hero's basic primary skills without artifact bonuses, exactly the same purpose with HE:F1 but with the compatibility with WoG Script Enhanced Commander Artifact added.
Testing bug with Enhanced Commander Artifact option and HE:F1
New Function for calculating hero's basic primary skills  (without artifact bonuses)
Download the function in ERM format
 Latest ERA mods and scripts in development -  My GitHub
 
				
(This post was last modified: 22.09.2021 21:40 by Archer30.)
 |  | 
	| 22.09.2021 19:13 |  | 
	
		| Berserker   
   
   Posts: 16785
 
 |  | 
	| 22.09.2021 19:50 |  | 
	
		| Archer30   
   
   Posts: 1192
 
 | 
			| 
 
				Berserker, EquiptArtToSlot also doesn't work. There is no available function/receiver for directly modifying the backpack slot.
 
I just have to do with HE:A4.
    ____
New Question: 
How does IP receivers work? 
 
I wanted to pass w var to the defending player for changes of my henchman of this turn, it failed.
 
There would be two IF:M dialogue popped up with this code for attacker, both are corrected results. 
For defending player, 1 dialogue (BA52), and the values of w vars are wrong.
 
How do I make the IP receivers work correctly?
			 
 Latest ERA mods and scripts in development -  My GitHub
 
				
(This post was last modified: 23.09.2021 14:15 by Archer30.)
 |  | 
	| 22.09.2021 20:23 |  | 
	
		| igrik   
   Posts: 2821
 
 | 
			| 
 
				Я думаю, эти функции известны, но на всякий всё же укажу их 
Code:
 int RemoveDollArtifact(int doll_slot_index) {return CALL_2(int, __thiscall, 0x4E2E40, this, doll_slot_index);}int AddDollArtifact(_Artifact_* art, int doll_slot_index) {return CALL_3(int, __thiscall, 0x4E2C70, this, art, doll_slot_index);}
 int RemoveBackpackArtifact(int index) {return CALL_2(int, __thiscall, 0x4E2FC0, this, index);}
 int AddBackpackArtifact(_Artifact_* art, int index) {return CALL_3(int, __thiscall, 0x4E3200, this, art, index = -1);}
 HE:A4 = 0x4E32E0 = void ArtAddFull(_Artifact_* art, int is_need_build_combo, int check_win_game) {CALL_4(void, __thiscall, 0x4E32E0, this, art, is_need_build_combo, check_win_game);}
 
 где this -  структура героя
 и
 struct _Artifact_
 {
 _int_ id;
 _int_ mod;
 };
 game bug fixes extended.dll  ||  My Plugins  ||  My GitHub
 |  | 
	| 22.09.2021 22:05 |  | 
	
		| Archer30   
   
   Posts: 1192
 
 | 
			| 
 
				New question again... 
Is there any ERA 3 variant for 998 (current interacting object)?
 
For example, 
 
Also, is there any ERA 3 way to get the current interacting coordinates (I know only v998/v999/v1000)?
 
And also...any alternative for v997 battle round?
			
 Latest ERA mods and scripts in development -  My GitHub
 
				
(This post was last modified: 26.09.2021 18:17 by Archer30.)
 |  | 
	| 26.09.2021 18:14 |  | 
	
		| daemon_n   
   
   Posts: 4366
 
 |  | 
	| 26.09.2021 20:11 |  | 
	
		| Berserker   
   
   Posts: 16785
 
 |  | 
	| 26.09.2021 23:07 |  | 
	
		| Archer30   
   
   Posts: 1192
 
 |  | 
	| 27.09.2021 00:03 |  |