| Valery   
   Posts: 2196
 
 | 
			| 
 
				I mean I don't know how to use this:
 "In short: %256, %65536" within the code. So first I get the value in y72
 then I do what? because if I do y72%256 I get always 0. I am lost...
 |  | 
	| 02.05.2015 21:19 |  | 
	
		| gamecreator   
   Posts: 7107
 
 |  | 
	| 02.05.2015 21:36 |  | 
	
		| Valery   
   Posts: 2196
 
 | 
			| 
 
				Right, solved for morale and luck, now get correct results with %256.
 But neither %256 or %65536 give me valid results for primary skills.
 
 Solved creatures (65536), remains primary skills.
 
				
(This post was last modified: 02.05.2015 22:14 by Valery.)
 |  | 
	| 02.05.2015 21:45 |  | 
	
		| Valery   
   Posts: 2196
 
 | 
			| 
 
				This allows reading on seer hut/quest guard both quest/reward + date limit (if any) on right-click. 
Only this remaining unsolved: 
!!VRz3&y70=6:S^+%Y72 %Z4^; y72 gets overflow
			
				
(This post was last modified: 02.05.2015 22:43 by Valery.)
 |  | 
	| 02.05.2015 22:29 |  | 
	
		| gamecreator   
   Posts: 7107
 
 |  | 
	| 02.05.2015 22:47 |  | 
	
		| Valery   
   Posts: 2196
 
 | 
			| 
 
				I tried and get strange values, both %256 and %65536 for y72. None is good. 
This way then removed wrong code.
				
(This post was last modified: 02.05.2015 22:51 by Valery.)
 |  | 
	| 02.05.2015 22:50 |  | 
	
		| Valery   
   Posts: 2196
 
 | 
			| 
 
				Ok, I got the right equation: 
How is this translated in maths?
			 |  | 
	| 02.05.2015 23:07 |  | 
	
		| gamecreator   
   Posts: 7107
 
 |  | 
	| 03.05.2015 00:27 |  | 
	
		| Valery   
   Posts: 2196
 
 | 
			| 
 
				Ok, so I leave it as it is right now then, thanks. Mod reuploaded with complete informations.
			 |  | 
	| 03.05.2015 00:37 |  | 
	
		| Valery   
   Posts: 2196
 
 | 
			| 
 
				Ok, I have wrong value in the case the first y72 is correct, I guess is related to Seer hut number or position. How can we know when the result is garbage or ok?   
A solution would be to start %256 process only if y72>100 I think?  And let normal value if y72<100 as it is very unlikely that a mapmaker offers more than 100 bonus in a seer?
			
				
(This post was last modified: 03.05.2015 00:49 by Valery.)
 |  | 
	| 03.05.2015 00:45 |  | 
	
		| gamecreator   
   Posts: 7107
 
 | 
			| 
 
				Just checked and I see the problem. Computer signed division just works weirdly. Forget everything I (and Berserker) said about %. Use & instead.  (03.05.2015 00:45)Valery Wrote:  Ok, I have wrong value in the case the first y72 is correct, I guess is related to Seer hut number or position. How can we know when the result is garbage or ok?  A solution would be to start %256 process only if y72>100 I think?  And let normal value if y72<100 as it is very unlikely that a mapmaker offers more than 100 bonus in a seer?
 
I don't know. Let's hope the problem goes away when you switch to & method.
			
 When all gods have burnt to ashes in eternity of sorrow,
 Demons gonna tear your soul because there is no tomorrow.
 |  | 
	| 03.05.2015 01:07 |  | 
	
		| Valery   
   Posts: 2196
 
 | 
			| 
 
				I think I solved for primary skills: 
This gave 100% correct results on "the lone knight" map, where there are 48 seer huts.
 
Now I have same problem with creatures, so I have to find again.
			
				
(This post was last modified: 03.05.2015 01:16 by Valery.)
 |  | 
	| 03.05.2015 01:14 |  | 
	
		| gamecreator   
   Posts: 7107
 
 |  | 
	| 03.05.2015 01:22 |  | 
	
		| Valery   
   Posts: 2196
 
 | 
			| 
 
				but I solved the creatures problem also using same way, you advice me to start again and use &? 
All huts now work correct.
			
				
(This post was last modified: 03.05.2015 01:27 by Valery.)
 |  | 
	| 03.05.2015 01:27 |  |