Berserker 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 16788 
	
		
	 | 
	
		
			
			 
			
				Hi, Val! 
Did I say it? I lied you ))) 
If OB:T = 34 (hero). #get object under hero / erm snippet
 
Val, be careful not to use function numbers equal or greater than 134 217 728 )
 
I didn't understand the whole code, but you can safely loop through huts, then access OB:T and if it is 34 (enemy hero), then use snippet above to get real subtype, type and control word of object under hero.
			  
			
			
  
Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов 
Поддержать проект 
			
		 |  
	 
 | 
	| 18.04.2015 20:43 | 
	
		
	 | 
	
		
		Valery 
 
 
		
		
		
			
			
			
 
 
			
Posts: 2196 
	
		
	 | 
	
		
 | 
	| 19.04.2015 00:22 | 
	
		
	 | 
	
		
		gamecreator 
 
 
		
		
		
			
			
			
 
 
			
Posts: 7107 
	
		
	 | 
	
		
 | 
	| 19.04.2015 01:13 | 
	
		
	 | 
	
		
		Valery 
 
 
		
		
		
			
			
			
 
 
			
Posts: 2196 
	
		
	 | 
	
		
			
			 
			
				Yes I know, I fixed the problem by turning off temporary (until next search)  the error display.  
			 
			
			
			
		 |  
	 
 | 
	| 19.04.2015 01:41 | 
	
		
	 | 
	
		
		Berserker 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 16788 
	
		
	 | 
	
		
 | 
	| 19.04.2015 18:48 | 
	
		
	 | 
	
		
		Valery 
 
 
		
		
		
			
			
			
 
 
			
Posts: 2196 
	
		
	 | 
	
		
			
			 
			
				Yes Boss, I restore it on DL close action.
			 
			
			
			
		 |  
	 
 | 
	| 19.04.2015 19:39 | 
	
		
	 | 
	
		
		Berserker 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 16788 
	
		
	 | 
	
		
 | 
	| 19.04.2015 19:46 | 
	
		
	 | 
	
		
		Valery 
 
 
		
		
		
			
			
			
 
 
			
Posts: 2196 
	
		
	 | 
	
		
			
			 
			
				The problem is that, when DL is up, if hero is on seer hut, pressing buttons in DL will show error message if that hut. Script is not interrupted, is just a stupid pop up, so I must keep errors off as long as DL is up. I see no reason player would press any keys in DL.
			 
			
			
			
		 |  
	 
 | 
	| 19.04.2015 20:14 | 
	
		
	 | 
	
		
		gamecreator 
 
 
		
		
		
			
			
			
 
 
			
Posts: 7107 
	
		
	 | 
	
		
 | 
	| 19.04.2015 20:17 | 
	
		
	 | 
	
		
		Russia Punk  
		
		
		
			
			
			 
			
 
		
	 | 
	
		
			
			 
			
				У меня появилась идея нельзя ли расширить боевое поле?  
			 
			
			
			
		 |  
	 
 | 
	| 20.04.2015 00:23 | 
	
		
	 | 
	
		
		feanor 
 
 
		
		
		
			
			
			 
			
Posts: 624 
	
		
	 | 
	
		
			
			 
			
				Можно попробовать переупорядочить гексы. Но увеличивать их число..хз, варьируется от "сложно" до "почти невозможно".
			 
			
			
			
		 |  
	 
 | 
	| 20.04.2015 03:39 | 
	
		
	 |