My prompt can and will change, (eb) is for Equilibrium and Balance, if I don't have balance, for example it will look like this (e-) and there can be more to it, (eb)dbp for example (deaf, blind,prone).
I tried just to have it going like this first;
* You are taken by a sudden and overwhelming affection for *.
But that would trigger anything before and after the actual line I want to trigger, of course it works. But it would mess up too much just to have it that way.
I looked at someones plugin for Aetolia/Achaean games,
where the man behind the plugin was using regexp, but I'm having some major problems just to understand it all.
^(.*?)You are taken by a sudden and overwhelming affection for \.$
The above code is simply a regexp that that author of the plugin was using a lot. I understant that the ^ will match the trigger if it -starts- with the text, but the prompt will mess that up. And, testing that a bunch of times, changing the regexp aswell has been somewhat useless, either it won't trigger at all, or it will trigger on everything before and after the actual text I want to trigger.
I'm reading the help files for regexp all the time, and trying to understand, but it's still hard.
Edit Start: Would it work if I had the trigger like this...
* You are taken by a sudden and overwhelming affection for$
So it would end at 'for'? Then it wouldn't care what text shows up before, but it won't work if anything shows up after 'for'? Or the $ would work so that is something comes up after 'for' it won't trigger at all?
...if that makes any sense..
Edit end. |