I'm trying to make an alias with an input: "molest <MOB>" with <MOB> Being anything (AKA .*) with the effect that a lot of commands, seperated with an enter, are executed.
Those commands could range from "strike <MOB>" to
"hellfire <MOB>", <MOB> in the output would refer to <MOB> in the input, with the following result:
Input: "molest golem"
Output: "strike golem"
"kick golem"
"backstab golem"
There is one problem though. in the MUD that I play, Those commands have a chance to "fail" giving the command no effect, and sending a line of text back being one of the following:
for some commands it is:
"You get a mental block mid-way through the casting."
"You lost your concentration."
When the command succeeds, you get a different slab of text:
"Uttering an ancient phrase you wrap a spell of blindness about a <MOB>."
My question now, is: Is is possible to repeat, when you type in the alias: "molest <MOB>" that you repeat the command
"strike <MOB>" until you get a set succeed output from the MUD, then move on to the next one in the list, repeat "kick golem" until you get another set succeed output. etc.
I hope this doesn't confuzzle you, and any hints in the right direction will be a great help.
Those commands could range from "strike <MOB>" to
"hellfire <MOB>", <MOB> in the output would refer to <MOB> in the input, with the following result:
Input: "molest golem"
Output: "strike golem"
"kick golem"
"backstab golem"
There is one problem though. in the MUD that I play, Those commands have a chance to "fail" giving the command no effect, and sending a line of text back being one of the following:
for some commands it is:
"You get a mental block mid-way through the casting."
"You lost your concentration."
When the command succeeds, you get a different slab of text:
"Uttering an ancient phrase you wrap a spell of blindness about a <MOB>."
My question now, is: Is is possible to repeat, when you type in the alias: "molest <MOB>" that you repeat the command
"strike <MOB>" until you get a set succeed output from the MUD, then move on to the next one in the list, repeat "kick golem" until you get another set succeed output. etc.
I hope this doesn't confuzzle you, and any hints in the right direction will be a great help.