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
prestojosh
Beginner


Joined: 21 Feb 2006
Posts: 19

PostPosted: Thu Oct 11, 2007 11:07 pm   

Command for repeating a command remotely
 
I'm wondering what the command is for repeating a command when the last command was sent remotely. For example I cast a spell, then i have a trigger for if a spell fails to cast, I want to repeat the spell, but !! wont work because it just puts in the last one i typed in the box. The command i need to be repeated was triggered remotely.
_________________
-Presto
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Fri Oct 12, 2007 12:30 am   
 
Your best bet would be to use a placeholder variable that the trigger would define for you.
_________________
Discord: Shalimarwildcat
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Fri Oct 12, 2007 2:00 am   
 
Yeah so the trigger sets a variable called, e.g. @LastRemoteCommand.

Then you can make an alias to repeat it using this variable.
Reply with quote
prestojosh
Beginner


Joined: 21 Feb 2006
Posts: 19

PostPosted: Fri Oct 12, 2007 6:02 am   
 
Is that really the only way to do it? There is no function in zmud?
_________________
-Presto
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Fri Oct 12, 2007 8:56 am   
 
Not currently
_________________
Discord: Shalimarwildcat
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Fri Oct 12, 2007 10:42 am   
 
What do you mean by remotely anyway, because there is %lastcom, etc. I presume you mean the last command that was sent by a script?
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