| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner
  
 
  
  Joined: 12 Jul 2003 Posts: 1459
 
  | 
		
			
				 Posted: Sun Feb 20, 2005 6:28 pm    Post subject: Swapping out automatically | 
				     | 
			 
			
				
  | 
			 
			
				I have a feature in my game in which it needs there to only be two heroes at all times. However, my supposed simple script, isn't working.
 
Here's the script I used.
 
 
script, twoteamparty,begin
 
swap out hero (hero by rank (2))
 
swap out hero (hero by rank (3))
 
end
 
 
By the way it's an On Key Press script. _________________ ---------------Projects----
 
Mr.Triangle's Maze:  70%
 
Takoyaki Surprise: 70% | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner
  
 
  
  Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
  | 
		
			
				 Posted: Mon Feb 21, 2005 9:14 am    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				What does happen? Anything?
 
 
Without knowing more about your problem, here's my advice:
 
 
* You should check how many people are in the party before you perform the swaps. (room in active party should return 0 or 1 to indicate that there are 3 or 4 heroes in the party.)
 
 
* Don't try to swap out empty hero slots. I'm not really sure what that would do. (hero by slot returns -1 for an empty slot.)
 
 
* Make sure the heroes aren't locked. (Duh.) Remember that the player can still change the party position of locked heroes. _________________
  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner
  
 
  
  Joined: 12 Jul 2003 Posts: 1459
 
  | 
		
			
				 Posted: Mon Feb 21, 2005 1:28 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				I sort of experiment, by moving one of the 2 heroes into the 3rd slot or the 4th slot and nothing happens. It's just the same as a normal system. Do you think perphaps if there were more than 2 heroes this would be any different? _________________ ---------------Projects----
 
Mr.Triangle's Maze:  70%
 
Takoyaki Surprise: 70% | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner
  
 
  
  Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
  | 
		
			
				 Posted: Mon Feb 21, 2005 7:35 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				| You haven't tried it with more than two heroes? That's your problem, kid. | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		TMC On the Verge of Insanity
 
 
 
  Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
  | 
		
			
				 Posted: Mon Feb 21, 2005 10:36 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				Notice that 'hero by rank' returns the nth person in the caterpillar- no matter where the two heros actually in the first 4 slots, they will only fill slots 0 and 1 in the caterpillar.
 
 
Prehaps you wanted 'hero by slot', not 'hero by rank' _________________ "It is so great it is insanely great." | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner
  
 
  
  Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
  | 
		
			
				 Posted: Mon Feb 21, 2005 10:43 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				Actually, even though he probably meant "hero by slot," "hero by rank" really does work better for his purposes. _________________
  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		TMC On the Verge of Insanity
 
 
 
  Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
  | 
		
			
				 Posted: Mon Feb 21, 2005 10:56 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				Not if he wants his heroes in the first two physical slots, rather than the first two caterpillar slots. _________________ "It is so great it is insanely great." | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner
  
 
  
  Joined: 12 Jul 2003 Posts: 1459
 
  | 
		
			
				 Posted: Tue Feb 22, 2005 1:30 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				I have to work now (I am probally late) but I will try that whenever I get home and get back to you guys on it. And to Moogle, I only haven't used three heroes yet because I haven't programmed the scene quite yet. Heh. _________________ ---------------Projects----
 
Mr.Triangle's Maze:  70%
 
Takoyaki Surprise: 70% | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner
  
 
  
  Joined: 12 Jul 2003 Posts: 1459
 
  | 
		
			
				 Posted: Wed Feb 23, 2005 1:10 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				It worked! Thank you so much, I am so very appreciative! _________________ ---------------Projects----
 
Mr.Triangle's Maze:  70%
 
Takoyaki Surprise: 70% | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		 |