  | 
				Castle Paradox
    
				 | 
			 
		 
		 
	
		| View previous topic :: View next topic   | 
	 
	
	
		| Author | 
		Message | 
	 
	
		NeoRicen
 
 
  
  Joined: 05 Mar 2003 Posts: 21
 
  | 
		
			
				 Posted: Mon Apr 07, 2003 9:03 am    Post subject: Key Press Script | 
				     | 
			 
			
				
  | 
			 
			
				 	  | Quote: | 	 		  script,bla bla,begin
 
if,begin
 
key is pressed (key:X)
 
end
 
then,begin
 
if (hero is walking (me)==false)
 
then,begin
 
set hero speed (me,2)
 
set tag (9,on)
 
end
 
end
 
else,begin
 
if (hero is walking (me)==false)
 
then,begin
 
set hero speed (me,4)
 
set tag (9,off)
 
end
 
script,Sneak,begin
 
if,begin
 
key is pressed (key:C)
 
end
 
then,begin
 
if (hero is walking (me)==false)
 
then,begin
 
set hero speed (me,10)
 
set tag (10,on)
 
end
 
end
 
else,begin
 
if (hero is walking (me)==false)
 
then,begin
 
set hero speed (me,4)
 
set tag (10,off)
 
end
 
end
 
end | 	  
 
When the script is run on the map when you press 'X' everything works but when you press 'C' Nothing happens. What do I need to change so both keypress commands work? | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Cube Dimensional Traveller
 
 
  
  Joined: 02 Feb 2003 Posts: 294
 
  | 
		
			
				 Posted: Mon Apr 07, 2003 4:58 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				I'm on a crappy school computer with a very low resolution, so reading your script is kinda hard   .  However, I believe it's not working because the two key pressing checking thingies aren't in the same script.
 
 
I mean, you can only give a map one script per map for the on key press thing.  So basically you only have the script "bla bla" doing stuff, and the script Sneak is doing absolutely nothing.  Just merge them together, or make one of them a autoscript that is called from one another. | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Uncommon His legend will never die
 
 
  
  Joined: 10 Mar 2003 Posts: 2503
 
  | 
		
			
				 Posted: Mon Apr 07, 2003 7:26 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				Yep.
 
 
Out of curiosity, why in the heck do you go faster in the "Sneak" script?  Wouldn't one walk slower when sneaking?  It's all semantics, but I am considerably anal-retentive.  This bothers me, as one should walk at a speed of 2 to sneak (as "bla bla" displays), and at a speed of 10 to run ("Sneak").  Did you name the script like that just to bother people like me? | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		NeoRicen
 
 
  
  Joined: 05 Mar 2003 Posts: 21
 
  | 
		
			
				 Posted: Tue Apr 08, 2003 7:46 am    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				 	  | The Lone Chimaera wrote: | 	 		  Yep.
 
 
Out of curiosity, why in the heck do you go faster in the "Sneak" script?  Wouldn't one walk slower when sneaking?  It's all semantics, but I am considerably anal-retentive.  This bothers me, as one should walk at a speed of 2 to sneak (as "bla bla" displays), and at a speed of 10 to run ("Sneak").  Did you name the script like that just to bother people like me? | 	  
 
The sneak thing isnt meant to be there, I accidently pasted it there and screw you does it even matter what the script is called...NO! Why do you care? You shouldn't. | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Blazes Battles Inc. I'm a chimp, not a
 
 
 
  Joined: 25 Jan 2003 Posts: 505
 
  | 
		
			
				 Posted: Tue Apr 08, 2003 1:35 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				Looks like someone's had a bad day... _________________ Preserve OHR history!  Do it for the children! | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Guest
 
 
 
 
 
 
 
  | 
		
			
				 Posted: Wed Apr 09, 2003 1:08 am    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				| Forget what I said, Blazes is right, i was having a bad day | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Uncommon His legend will never die
 
 
  
  Joined: 10 Mar 2003 Posts: 2503
 
  | 
		
			
				 Posted: Wed Apr 09, 2003 1:57 am    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				| Shrug, I'm anal-retentive.  All is forgiven. | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Guest
 
 
 
 
 
 
 
  | 
		
			
				 Posted: Wed Apr 09, 2003 9:41 am    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				| Thats good then... | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		 | 
	 
 
  
	 
	    
	   | 
	
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
  | 
   
 
  
Powered by phpBB © 2001, 2005 phpBB Group
 
  
		 |