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

Offline Magus_BGforge

  • Planewalker
  • *****
  • Posts: 75
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: 1176
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 Magus_BGforge

  • Planewalker
  • *****
  • Posts: 75
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.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

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)?: