Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: qwertyqwerty on September 12, 2017, 08:15:09 PM

Title: cannot replace certain trigger text
Post by: qwertyqwerty on September 12, 2017, 08:15:09 PM
This works
Code: [Select]
REPLACE_TRIGGER_TEXT wtpfamp4
~NextTriggerObject(Player1)~
~True()~

REPLACE_TRIGGER_TEXT wtpfamp4
~CombatCounterLT(1)~
~True()~
But this doesn't (no change)
Code: [Select]
REPLACE_TRIGGER_TEXT wtpfamp4
~!Detect([ENEMY])~
~True()~
Am I doing something wrong?
Title: Re: cannot replace certain trigger text
Post by: Wisp on September 14, 2017, 02:02:39 PM
Escape the square bracers. It's a regexp and it does not match because you are asking it to look for one letter out of the set E, N, M and Y.
Title: Re: cannot replace certain trigger text
Post by: qwertyqwerty on September 15, 2017, 07:09:07 AM
Riiight... how stupid of me. Thanks.