|  | 
	
	
		| leonardofaoro Novice
 
 
 Joined: 07 Feb 2008
 Posts: 40
 Location: Italy
 
 | 
			
			  |  Posted: Sun Feb 14, 2010 9:16 pm 
 ^The (%w) seems to be closed. Send weird input
 
 |  
				| #tr {^The (%w) seems to be closed.} {open %1 %lastinput;#SEND %lastinput} 
 It works but the input sent to the mud is processed wrong, here's what I get:
 
 |(314%/47)](100%[3756/3756])(100%)(100%)[114/524]> u
 The door seems to be closed.
 open %1 %lastinput
 %lastinput
 
 Why it doesn't process the variables?
 (%w) should return to %1 the doorname and %lastinput should return U.
 |  | 
	
	  |  | 
	
		|  | 
	
		| hadar Apprentice
 
 
 Joined: 30 Aug 2009
 Posts: 198
 Location: my apt, in california
 
 | 
			
			  |  Posted: Mon Feb 15, 2010 6:49 am 
 |  
				| its not lastinput its %lastcom 
 |  | 
	
	  |  | 
	
		|  | 
	
		| leonardofaoro Novice
 
 
 Joined: 07 Feb 2008
 Posts: 40
 Location: Italy
 
 | 
			
			  |  Posted: Mon Feb 15, 2010 9:12 am 
 |  
				| 
 
	  | hadar wrote: |  
	  | its not lastinput its %lastcom |  
 |(309%/47)](100%[3756/3756])(100%)(99%)[226/113]> u
 The door seems to be closed.
 open %1 %lastcom
 %lastcom
 |  | 
	
	  |  | 
	
		|  | 
	
		| charneus Wizard
 
  
 Joined: 19 Jun 2005
 Posts: 1876
 Location: California
 
 | 
			
			  |  Posted: Mon Feb 15, 2010 9:23 am 
 |  
				| 
 
	  | hadar wrote: |  
	  | its not lastinput its %lastcom |  
 Depends on which version of CMUD you have.  %lastinput is in the beta version of CMUD, as is %input.
 
 As for the issue, not sure why it's not working, don't know why, as it's working fine for me.  Have you tried making a new trigger for it instead?  And make sure you don't have any other triggers that are interfering with it somehow?
 
 Keep in mind that %lastinput does not fire from macro keys.  The input comes directly from the command line, so if you're using the numpad to move around, it'll not work correctly.
 
 Charneus
 |  | 
	
	  |  | 
	
		|  | 
	
		| leonardofaoro Novice
 
 
 Joined: 07 Feb 2008
 Posts: 40
 Location: Italy
 
 | 
			
			  |  Posted: Mon Feb 15, 2010 9:35 pm 
 |  
				| #tr {^The (%w) seems to be closed.} {open %1 %lastinput;#SEND %lastinput} 
 Neither the %1 gets processed.
 |  | 
	
	  |  | 
	
		|  | 
	
		| charneus Wizard
 
  
 Joined: 19 Jun 2005
 Posts: 1876
 Location: California
 
 | 
			
			  |  Posted: Tue Feb 16, 2010 1:43 am 
 |  
				| I get that.  No use in repeating the problem that was stated in the first post. ;) 
 Again are you using macros (e.g., the numpad for directions)?  If so, then it won't work.  There's no command on the line to enter.
 
 Charneus
 |  | 
	
	  |  | 
	
		|  | 
	
		| leonardofaoro Novice
 
 
 Joined: 07 Feb 2008
 Posts: 40
 Location: Italy
 
 | 
			
			  |  Posted: Sat Feb 20, 2010 3:23 pm 
 |  
				| No I'm using no macros - I'm typing NORTH or N from the command line - my char goes north and a closed door message appear that is parsed by the trigger 
 |  | 
	
	  |  | 
	
		|  | 
	
		| MattLofton GURU
 
 
 Joined: 23 Dec 2000
 Posts: 4834
 Location: USA
 
 | 
			
			  |  Posted: Sat Feb 20, 2010 5:32 pm 
 |  
				| Is: 
 1)the trigger enabled?
 2)the class the trigger is in enabled?
 3)the trigger in a package that the main window can see (that is, the Window Properties show a checkmark next to the trigger's package)?
 4)the trigger in a different window than the one with the commandline?
 5)is there a red X on either the Computer or the Gun icon next to the command line?
 |  | 
	
	  | 
		    
			  | _________________ EDIT: I didn't like my old signature
 |   |  | 
	
		|  | 
	
		|  | 
	
		|  |