About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
nostra
Wanderer


Joined: 23 May 2001
Posts: 68
Location: Sweden

PostPosted: Wed Jan 02, 2002 2:27 am   

Repeat previous command
 
Hi,

I wonder if there is a simple way to write a trigger that repeats your previous command (one time).

For example:

<input> "cast web"
<Mud output> "You cannot move your arms"

<trigger to repeat "cast web">

Thanks in advance!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Jan 02, 2002 4:45 am   
 
quote:

Hi,

I wonder if there is a simple way to write a trigger that repeats your previous command (one time).

For example:

<input> "cast web"
<Mud output> "You cannot move your arms"

<trigger to repeat "cast web">

Thanks in advance!



Untested, so use at your own risk.

#trigger {You cannot move your arms} {#H-}

Never used that command myself, but it involves the command-history buffer.

li'l shmoe of Dragon's Gate MUD
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Wed Jan 02, 2002 9:26 pm   
 
Or you can try using !!

#trigger {You cannot move your arms} {!!}

Iljhar
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Jan 03, 2002 12:00 am   
 
The next down the line is %action. I have only read the help so I have no idea exactly what it will contain and when. You would only need to use this option if the command cast web that you mentioned was sent by an alias, trigger, or macro. Again test carefully before trying.
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