Trigger to strip numbers from line ?

Post Reply
Angahran
Posts: 26
Joined: Thu Jul 17, 2014 8:04 pm

Trigger to strip numbers from line ?

Post by Angahran » Thu Jul 05, 2018 10:23 pm

Hi,

Trying to make a trigger for planting banner/pulling up banner.
I'd really like to have it not display/say the numbers on instanced zones.

e.g.
{s1} has planted a banner in {s2}!
Would give "GuildX has planted a banner in Chardok123456!"

I'd like to have it output "GuildX has planted a banner in Chardok!"

Sirene
Posts: 38
Joined: Fri Sep 27, 2013 2:52 pm

Re: Trigger to strip numbers from line ?

Post by Sirene » Sat Jul 07, 2018 1:59 pm

Try this one:

has planted a banner in (?<zone>.*)\s\d*!

Display Text: ${zone}

Angahran
Posts: 26
Joined: Thu Jul 17, 2014 8:04 pm

Re: Trigger to strip numbers from line ?

Post by Angahran » Sun Aug 05, 2018 9:39 pm

Thanks,

That works perfectly when there is a number in the line, e.g.
has planted a banner in chardok 12345!

But it doesn't trigger on:
has planted a banner in chardok!

Update:
This appears to work:
has planted a banner in (?<zone>.[a-zA-Z]*)\s*\d*!

Angahran
Posts: 26
Joined: Thu Jul 17, 2014 8:04 pm

Re: Trigger to strip numbers from line ?

Post by Angahran » Mon Aug 13, 2018 3:36 pm

This seems to be working:

has planted a banner in (?<zone>.[a-zA-Z:\- ]*)\s*\d*!

Post Reply