Author Topic: cannot replace certain trigger text  (Read 145 times)

Offline qwertyqwerty

  • Planewalker
  • *****
  • Posts: 61
cannot replace certain trigger text
« 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?

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 899
Re: cannot replace certain trigger text
« Reply #1 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.

Offline qwertyqwerty

  • Planewalker
  • *****
  • Posts: 61
Re: cannot replace certain trigger text
« Reply #2 on: September 15, 2017, 07:09:07 AM »
Riiight... how stupid of me. Thanks.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: