Plugin error "Failed: nothing to repeat at offset 90"

Posted by NeoFryBoy on Sun 30 Jul 2006 05:28 AM — 3 posts, 14,497 views.

USA #0
I get this error, but it pops up in a message box as compared to a special window like normal.

As far as I can tell, it's this trigger:

<trigger
enabled="y"
expand_variables="y"
group="CPHighlight"
match="^Find and kill \d \* (.*) \(.*\)$"
regexp="y"
send_to="10"
sequence="100"
script="CPAdder"
>
<send></send>
</trigger>

breaking on one of these lines...

Find and kill 1 * a flying donkey???!!! (The Land of Oz)
tell
Find and kill 1 * the great sorcerer (The Isle of Quake)
Australia Forum Administrator #1
Testing that trigger on your test data does not raise that error.

Why do you have "expand variables" checked, when there are no variables in the trigger?

Possibly the error is in the CPAdder function.
USA #2
Figured it out.
The line:
Find and kill 1 * a flying donkey???!!! (The Land of Oz)

triggers a capture of the a flying donkey???!!! which is placed in a variable and then another trigger uses
(@!mob_name)$.

The problem was the third ? was breaking the regexp so I just added another function to comment out special characters.