I'm looking to create a trigger to match my prompt but rather than hardcode the match pattern I'd like to use the mud output of the prompt change command to rewrite the trigger.
eg (apologies ... I'm used to zmud but looking to get a lot better at mush's scrpiting system):
#trig {matchMyPromptRegEx} {assignVariables}
#trig {matchMultiLinePromptChangeText} {#untrig matchMyPromptRegEx;#trig {newMatchMyPromptRegEx} {assignVariables}}
In essence either I'd like to have a trigger that tests for a match against a variable in which would be stored a regex or a method to delete/modify an existing trigger from within the lua scripting (sort of akin to the way you can use javascript to rewrite a drop down box in html).
The idea is that if I change my prompt I don't have to go hand editing my scripts, that the change will be registered.
Thanks
eg (apologies ... I'm used to zmud but looking to get a lot better at mush's scrpiting system):
#trig {matchMyPromptRegEx} {assignVariables}
#trig {matchMultiLinePromptChangeText} {#untrig matchMyPromptRegEx;#trig {newMatchMyPromptRegEx} {assignVariables}}
In essence either I'd like to have a trigger that tests for a match against a variable in which would be stored a regex or a method to delete/modify an existing trigger from within the lua scripting (sort of akin to the way you can use javascript to rewrite a drop down box in html).
The idea is that if I change my prompt I don't have to go hand editing my scripts, that the change will be registered.
Thanks