Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
leonardofaoro
Novice


Joined: 07 Feb 2008
Posts: 40
Location: Italy

PostPosted: 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.
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: Mon Feb 15, 2010 6:49 am   
 
its not lastinput its %lastcom
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
leonardofaoro
Novice


Joined: 07 Feb 2008
Posts: 40
Location: Italy

PostPosted: 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
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
leonardofaoro
Novice


Joined: 07 Feb 2008
Posts: 40
Location: Italy

PostPosted: Mon Feb 15, 2010 9:35 pm   
 
#tr {^The (%w) seems to be closed.} {open %1 %lastinput;#SEND %lastinput}

Neither the %1 gets processed.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
leonardofaoro
Novice


Joined: 07 Feb 2008
Posts: 40
Location: Italy

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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

© 2009 Zugg Software. Hosted by Wolfpaw.net