Making a trigger 'resend previous command'?

Share your scripts and packages with other Mudlet users.
Post Reply
twixt
Posts: 10
Joined: Sun Aug 23, 2015 8:15 pm

Making a trigger 'resend previous command'?

Post by twixt »

Is there any way I can access command history in a trigger? For instance, if I get an 'ability failed' message from the game that means I can reattempt the ability I just attempted; however, the game text doesn't include specifics so I have to manually enter in the previous command.

I googled but couldn't find out if this exists, and if not, how to make it happen. The only way I can think of doing it is making a variable that saves every command entered in a 'lastCommand' buffer but... that seems unwieldy.

User avatar
SlySven
Posts: 1023
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Making a trigger 'resend previous command'?

Post by SlySven »

Can you not have an alias that stores the ability you attempt for a subsequent trigger to refer to?

Davyde84
Posts: 7
Joined: Mon May 09, 2016 9:55 pm

Re: Making a trigger 'resend previous command'?

Post by Davyde84 »

in many MUDs if you give a the single command ! it will repeat last command sent

Post Reply