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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Alabaster
Beginner


Joined: 25 Jun 2002
Posts: 11

PostPosted: Thu Nov 06, 2003 3:05 am   

Repeating last sent command
 
Hello,
What I am looking for is a trigger to resend the last command I types and sent to the mud. I want this to trigger when I see "You fail."

#tr {^You fail.} {%lastcom}

The problem is I have two other trigger one to calculate exp per mob and another to insert comma's into all numbers larger than 3 digits that are set off my my prompt. So I get the other commands resent to the mud instead of the one I types. Is there someting obviuos I'm missing or am I just out of luck?

Any help would be appreciated,
Alabaster
Reply with quote
jurz
Novice


Joined: 22 Feb 2002
Posts: 48
Location: Latvia

PostPosted: Fri Nov 07, 2003 2:23 pm   
 
Try using one of these if numer is always the same
%lastcom the last command executed
%lastcom2 the command before the last command executed
%lastcom3 the command before %lastcom2
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Nov 07, 2003 6:26 pm   
 
If your MUD has a "repeat last command" symbol (many use ! for this), you can use that. This applies to all commands sent to the MUD, whether you typed them or not, but won't repeat zMUD commands that you typed.
#TR {^You fail.} {~!}

If you are only trying to repeat commands that you typed (not commands that triggers sent to the MUD), zMUD uses !! for the last command typed. This applies to all commands that you typed, whether they are sent to the MUD or are zMUD commands, but won't repeat commands sent by triggers, macros, buttons, etc.
#TR {^You fail.} {!!}
Reply with quote
Andromeda
Beginner


Joined: 29 Aug 2003
Posts: 25
Location: USA

PostPosted: Fri Nov 07, 2003 9:57 pm   
 
Is there a way to get the last command sent to the mud regardless of where it originated from as opposed to commands that operate on zMUD itself.

For instance I have a trigger that resends %lastcom after the appropriate delay if the command failed due to round time. Sometimes this works but sometimes it repeats a command like #add rt 1.

I do have triggers that run tracking round time.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Nov 07, 2003 11:50 pm   
 
NO.
Reply with quote
Alabaster
Beginner


Joined: 25 Jun 2002
Posts: 11

PostPosted: Fri Nov 07, 2003 11:55 pm   
 
Thanks Lightbulb, both of your solutions worked!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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