| 
 | 
     
    
    
    
     
    
    
    
 
    
    
 
    
     
    
    
    
     
    
    
    
     
    
    
    
 
    
    
 
    
    
 | 
       | 
      
 
 
	
		  | 
	
	 | 
 
 
		
	
	
	
		
	
	
	
		
		
		
			
			 
			
				March 26th, 2008, 10:33 PM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Sergeant 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Apr 2007 
					Location: Texas/Ohio 
					
					
						Posts: 363
					 
					 
	Thanks: 11 
	
		
			
				Thanked 72 Times in 21 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Mass flight issue
			 
             
			
		
		
		
		I once gave a Grand Master (I think thats the MA Marignon unit) some fire gems to cast flamming arrows.  After running out of script and while the opponent had routed, he used some remaining gems to summon a fire elemental, whose heat aura managed to kill the Grand Master. 
 
As for the fatigue, I thought it was always capped at 199 no matter how much the calculated fatigue would be? 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				March 26th, 2008, 10:41 PM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Lieutenant Colonel 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: May 2007 
					
					
					
						Posts: 1,462
					 
					 
	Thanks: 34 
	
		
			
				Thanked 59 Times in 37 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Mass flight issue
			 
             
			
		
		
		
		Yes it is capped, but that is not an issue. Casting Mass Flight would cause 200 fatigue while casting Arrow Fend caused much less so AI decided to override the script. 
 
As for your example with Grand Master, it has nothing to do with battle mechanics - just an unlucky situation) No bug there. 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				March 26th, 2008, 11:43 PM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Captain 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Oct 2007 
					Location: guess - and you'll be wrong 
					
					
						Posts: 834
					 
					 
	Thanks: 33 
	
		
			
				Thanked 187 Times in 66 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Mass flight issue
			 
             
			
		
		
		
		Chief Bodyguard: “Well done, Nature Mage!  Your last 5 spell choices were both clever and tactically relevant!” 
Nature Mage: “Thank you, Loyal Bodyguard.  But rational thought bores me…Touch of Madness!” 
Bodyguards & nearby archers, in unison: “CHARGE!” 
Nature Mage: “CHAR…” 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				March 27th, 2008, 03:32 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Sergeant 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Dec 2003 
					Location: New York City 
					
					
						Posts: 340
					 
					 
	Thanks: 0 
	
		
			
				Thanked 3 Times in 3 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Mass flight issue
			 
             
			
		
		
		
		
	Quote: 
	
	
		
			
				NTJedi said: 
   Mage Leader says, "It's all about me."  
			
		 | 
	 
	 
 Internet law demands I post this.  
		
	
		
		
			
		
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				March 27th, 2008, 08:48 AM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
 
  
			
				
				
				General 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Apr 2005 
					
					
					
						Posts: 3,327
					 
					 
	Thanks: 4 
	
		
			
				Thanked 133 Times in 117 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Mass flight issue
			 
             
			
		
		
		
		
	Quote: 
	
	
		
			
				ano said: 
This is what I found there (extracts): 
	Quote: 
	
	
		
			
				com Aksa(A) cast spell (favspell Mass Flight) (mayusegems 1) 
  est. choices 59 
spellscore, Arrow Fend score 220322 (boost 91 scorat 262128) 
Eval: Arrow Fend score 179123 (fat 33) 
comp_castspell: eval Arrow Fend  result 179123 
best spell so far  Arrow Fend (score179123) 
spellscore, Mass Flight score 873 (boost 92 scorat 1023) 
Spell punished for excessive fatigue 459 -> 153 
Eval: Mass Flight score 153 (fat 100) 
comp_castspell: eval Mass Flight  result 153 
looser spell Mass Flight (score 100153) 
			
		 | 
	 
	 
 
			
		 | 
	 
	 
 
Actually, read it more closely. Mass Flight is being punished for extra fatigue, but that isn't what's stopping him from casting it. That just drops the score from 459 to 153, which combined with the 100,000 bonus for being scripted puts it at 100,153. That's below the 179,123 for Arrow Fend, so Arrow Fend is cast. It still would have been less if there wasn't the fatigue penalty: 100,459.
 
The real question is why is Arrow Fend rated so highly?  
		
	
		
		
		
		
		
		
		
		
		
	
		
			
			
			
			
				 
			
			
			
			
            
			
			
				
			
			
			
		 
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				March 27th, 2008, 08:54 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				National Security Advisor 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Sep 2003 
					Location: Eastern Finland 
					
					
						Posts: 7,110
					 
					 
	Thanks: 145 
	
		
			
				Thanked 153 Times in 101 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Mass flight issue
			 
             
			
		
		
		
		
	Quote: 
	
	
		
			
				ano said: 
This is what I found there (extracts): 
	Quote: 
	
	
		
			
				comp_castspell: eval Arrow Fend  result 179123 
comp_castspell: eval Mass Flight  result 153 
			
		 | 
	 
	 
 The spell is punished for excessive fatigue! And thus Arrow Fend was definitely a better choice... 
			
		 | 
	 
	 
 Actually, Arrow Fend got score of almost 180 000, while Mass Flight's total was 150 and even before fatigue reduction Mass Flight's score was under 1000... So there's something else going on in there. Perhaps Arrow Fend's score increases for every one of your units but Mass Flight's doesn't (i.e. Mass Flight isn't considered a buff, which someone already suggested), or perhaps every enemy archer on the field increases the chance of casting Arrow Fend, or perhaps castle's towers are considered more heavily than they should, but fatigue reduction wasn't relevant in this case.  
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				March 27th, 2008, 09:30 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Lieutenant Colonel 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: May 2007 
					
					
					
						Posts: 1,462
					 
					 
	Thanks: 34 
	
		
			
				Thanked 59 Times in 37 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Mass flight issue
			 
             
			
		
		
		
		Yes, you're right. Problem is in extra high Arrow Fend score. 
My army was about 800-900 units large (this may be the reason) but the only archers enemy had were two dozens of sprites (this doesn't seem to affect the score). 
However I still think that scripted spells should never be punished for extra fatigue. And in order to avoid such situations scripted battlefield enchantments should never be overridden at all unless the enemy army is *too weak* and is not worth spending gems on it. 
Btw... Does all this mean that my mage could cast nothing but Arrow Fend in this situation? It seems so... 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				March 27th, 2008, 09:47 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Lieutenant Colonel 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: May 2007 
					
					
					
						Posts: 1,462
					 
					 
	Thanks: 34 
	
		
			
				Thanked 59 Times in 37 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Mass flight issue
			 
             
			
		
		
		
		Btw... Does all this mean that my mage could cast nothing but Arrow Fend in this situation? It seems so... 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				March 27th, 2008, 09:50 AM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
 
  
			
				
				
				General 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Apr 2005 
					
					
					
						Posts: 3,327
					 
					 
	Thanks: 4 
	
		
			
				Thanked 133 Times in 117 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Mass flight issue
			 
             
			
		
		
		
		You get a 100,000 bonus for a spell being scripted, so take a look through the log. If there's anything else there above 80,000, he should be able to cast that. 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				March 27th, 2008, 10:03 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Lieutenant Colonel 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: May 2007 
					
					
					
						Posts: 1,462
					 
					 
	Thanks: 34 
	
		
			
				Thanked 59 Times in 37 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Mass flight issue
			 
             
			
		
		
		
		I know about that. 
However, do you think that it is right and everything is ok with this algorithm? 
Actually, my battle meant nothing and I have so huge potential that all these losses are nothing but a wasp bite, but there's a conceptual problem with this algorithm and I think it's worth modifying it in some way. 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
 
	
		
	
	
	
	
	
	
	| Thread Tools | 
	
 
	| 
	
	
	
	 | 
	
 
	| Display Modes | 
	
 
	
	
	
	
		  Linear Mode 
		
		
	 
	
	 | 
	
	
 
 
	
		
	
		 
		Posting Rules
	 | 
 
	
		
		You may not post new threads 
		You may not post replies 
		You may not post attachments 
		You may not edit your posts 
		 
		
		
		
		
		HTML code is On 
		 
		
	  | 
 
 
	 | 
	
		
	 | 
 
 
     |  
 |