| 
		
	 | 
	
		
		
			
				
					
						
							River_God 
							
								Member 
								      
								  Offline
  
								 
  
								Posts: 184 
								
								
								
								 
							
						 | 
						
							
								  | 
								
									
									« Reply #31 on: August 30, 2007, 01:05:04 PM » | 
								
								 | 
							  
							 
							OK I am back from my break and ready to script again.
  I would love it if you took a look at this trigger. What it is supposed to do is cause a player to win if they have 2 cows in a certain area. 
     for (plflag=1; <=cNumberNonGaiaPlayers){    rmCreateTrigger("FlagsCaptured"+plflag);    rmSwitchToTrigger(rmTriggerID("FlagsCaptured"+plflag));    rmAddTriggerCondition("Units in Area");       rmSetTriggerConditionParam("Player", plflag, true);       rmSetTriggerConditionParam("UnitType", "Cow", true);    rmSetTriggerConditionParam("Count", 2, true);       rmAddTriggerEffect("Set Player Won");    rmSetTriggerEffectParam("Player", plflag, true);    rmAddTriggerEffect("Shake Camera");    rmSetTriggerEffectParam("Duration", 5.0, true);    rmSetTriggerEffectParam("Strength", 0.25, true);    rmSetTriggerActive(true);    }
  I know I havn't the code that sais the area becuase I havn't decided the whole map yet. I was just wondering if this code makes any sense or am I just typing random words. 
						 | 
					 
					
						
							
								| 
								 | 
							 
								| 
								 | 
								
									 
									Logged
								 | 
							  
							 
							"I am not sure why people are so afraid of new ideas, I am afraid of the old ones"   :p 
						 | 
					 
				 
			 |  
		 
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 | 
	| 
		
		
	 |