The bug of AddTriggerEx

Posted by Nick Gammon on Thu 03 May 2007 12:57 AM — 3 posts, 13,596 views.

Australia Forum Administrator #0
What is %2?

Trigger names must consist of a letter (A-Z) followed by letters, numbers or the underscore character.

If you try to do something like:


AddTriggerEx("the blue kobold", "^%1%2$", "abc", 1+16+32, -1, 0, "", "", 12, 3)


You will get an error because spaces are not allowed.
Australia Forum Administrator #1
Quote:

%2 is a variable!


I realise that, I was wondering what the variable might contain.

You know you don't need a name at all?

This will work:


AddTriggerEx("", "^%1%2$", "abc", 1+16+32, -1, 0, "", "", 12, 3)

#2
Sorry, I made a mistake and now I already solve my problems!
The trigger name could also be set as a varible, I was wrong before.
Sorry again!