In a similar vein to the question asked here http://mushclient.com/forum/bbshowpost.php?bbsubject_id=12171
I'm having a hard time with a trigger pattern.
I need a complex pattern since the order of the variables is not guaranteed and in a follow up to my question http://mushclient.com/forum/?id=12312 where I can decode the incoming prompt and create a variable to represent my matching string I created a test case:
Input:
Lareawan (1701/1551h 746/746v |-3|A|S 54,252,377g )
Try a straight regex match of my prompt:
.* \((\d*)/(\d*)h (\d*)/(\d*)v \|.* \)
Works like magic.
Try a specific case:
.* \((@!thCurHp)/(\d*)h (\d*)/(\d*)v \|.* \)
Does not fire.
I thought that perhaps because the variable was not created it might be the problem so I went and created it manually, but no change.
Options: Keep evaluating, Regular expression, Expand variables
Send To: Output (for testing purposes)
So the two questions are, what have I goobered? If the variables do not exist, will they be created by the trigger on first match or what is the defined behaviour?
Thanks all
I'm having a hard time with a trigger pattern.
I need a complex pattern since the order of the variables is not guaranteed and in a follow up to my question http://mushclient.com/forum/?id=12312 where I can decode the incoming prompt and create a variable to represent my matching string I created a test case:
Input:
Lareawan (1701/1551h 746/746v |-3|A|S 54,252,377g )
Try a straight regex match of my prompt:
.* \((\d*)/(\d*)h (\d*)/(\d*)v \|.* \)
Works like magic.
Try a specific case:
.* \((@!thCurHp)/(\d*)h (\d*)/(\d*)v \|.* \)
Does not fire.
I thought that perhaps because the variable was not created it might be the problem so I went and created it manually, but no change.
Options: Keep evaluating, Regular expression, Expand variables
Send To: Output (for testing purposes)
So the two questions are, what have I goobered? If the variables do not exist, will they be created by the trigger on first match or what is the defined behaviour?
Thanks all