Critical Hits

Post Reply
EarthlingZero
Posts: 4
Joined: Wed Jan 23, 2019 5:27 am

Critical Hits

Post by EarthlingZero » Wed Jan 23, 2019 5:33 am

Hello folks,

I am fairly new to this and I am having trouble setting up a trigger and I'd be grateful if anybody could help me out.

I basically want it displayed on my screen when I score a critical hit, what value it was and what skill was used.

This is an expample line that appears in the log:
You kick a Broken Skull bloodguard for 79 points of damage. (Critical)

I was using serach text "^.* {N} points of damage. (Critical)" and display text "CRIT! {N}" to show the number at least. But that doesn't work.

Anyone? :)

EarthlingZero
Posts: 4
Joined: Wed Jan 23, 2019 5:27 am

Re: Critical Hits

Post by EarthlingZero » Wed Jan 23, 2019 7:24 am

After some research I am now able to respond to my own post in hope it might help anybody out:

search text:
You ([^\s]*) (.*) for (\d*) points of damage. (Critical)

display:
SKILL ${1} -- MOB ${2} -- DMG ${3}


Works like a charm.


Cheers!

EarthlingZero
Posts: 4
Joined: Wed Jan 23, 2019 5:27 am

Re: Critical Hits

Post by EarthlingZero » Fri Jan 25, 2019 2:45 pm

EarthlingZero wrote:After some research I am now able to respond to my own post in hope it might help anybody out:

search text:
You ([^\s]*) (.*) for (\d*) points of damage. (Critical)

display:
SKILL ${1} -- MOB ${2} -- DMG ${3}


Works like a charm.


Cheers!


I've been made aware that my search string is not working properly... and that's right! (I didn't notice I pasted the wrong one.)

So here comes the fix:
You ([^\s]*) (.*) for (\d*) points of damage.(.*)Critical


Reason: It cannot be "(Critical)" because the parentheses seem to be interpreted as a (invalid) group. So I just set another wildcard in front of "Critical".

If you want to omit the mob you crit on your display text could be something like this:
critical ${1} : ${3}


Cheers!

Post Reply