It's been a while since I've used mushclient/lua and I can't remember how to do this anymore.
I'm trying to count the number of items I have in a certain line.
Here's an example of raw-output:
In the leather utility belt you see some average ground arnica (x31), some average ground yora root (x10), some potent ground yora root (x2), some average ground stems of thistleweed (x5) and some potent ground stems of thistleweed.
What I'm trying to do is make triggers for each 'type' of herb that will count the numeric value. My trigger right now is:
.*some average ground stems of thistleweed \(x*\).*
with the body containing:
averagethistleweed = %2
Note (averagethistleweed)
But it doesn't seem to be working. What I was then going to do was have an alias list all these items, but that's a separate issue and one I know how to do. I just can't seem to catch that '5' in the 'average ground stems of thistleweed (x5)' line.
I also have the 'keep evaluating, enabled, and regular expression' boxes checked on the right hand side.
If I can get help with this that would be great.
I'm trying to count the number of items I have in a certain line.
Here's an example of raw-output:
In the leather utility belt you see some average ground arnica (x31), some average ground yora root (x10), some potent ground yora root (x2), some average ground stems of thistleweed (x5) and some potent ground stems of thistleweed.
What I'm trying to do is make triggers for each 'type' of herb that will count the numeric value. My trigger right now is:
.*some average ground stems of thistleweed \(x*\).*
with the body containing:
averagethistleweed = %2
Note (averagethistleweed)
But it doesn't seem to be working. What I was then going to do was have an alias list all these items, but that's a separate issue and one I know how to do. I just can't seem to catch that '5' in the 'average ground stems of thistleweed (x5)' line.
I also have the 'keep evaluating, enabled, and regular expression' boxes checked on the right hand side.
If I can get help with this that would be great.