Trigger to strip numbers from line ?

Trigger to strip numbers from line ?

Postby 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!"
Angahran
 
Posts: 19
Joined: Thu Jul 17, 2014 8:04 pm

Re: Trigger to strip numbers from line ?

Postby Sirene » Sat Jul 07, 2018 1:59 pm

Try this one:

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

Display Text: ${zone}
Sirene
 
Posts: 37
Joined: Fri Sep 27, 2013 2:52 pm

Re: Trigger to strip numbers from line ?

Postby 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: 19
Joined: Thu Jul 17, 2014 8:04 pm

Re: Trigger to strip numbers from line ?

Postby Angahran » Mon Aug 13, 2018 3:36 pm

This seems to be working:

has planted a banner in (?<zone>.[a-zA-Z:\- ]*)\s*\d*!
Angahran
 
Posts: 19
Joined: Thu Jul 17, 2014 8:04 pm


Return to Specific Trigger Questions

Who is online

Users browsing this forum: No registered users and 1 guest