|
Ithilion Wanderer
Joined: 02 Sep 2005 Posts: 85
|
Posted: Fri Mar 06, 2009 9:32 pm
Triggers not firing.. |
Edit: Hiding my newbieness. How can I forget parentheses..
|
|
Last edited by Ithilion on Fri Mar 06, 2009 10:33 pm; edited 1 time in total |
|
|
|
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Fri Mar 06, 2009 9:47 pm |
Why do you think it not fires? Go to the XML tab for your trigger and copy everything here within [ code] tags.
And to use something like #additem @tells %1 you need to capture something in the %1 first. May be you just forget about the parentheses around %w? |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Mar 06, 2009 10:05 pm |
First, you need to put () parens around the %w if you want the captured substring to be placed into the %1 variable. Also, the #ADDITEM command takes the NAME of the list variable WITHOUT the @ character. Your syntax is doing an indirect assignment of the list pointed to by whatever is in the @tells variable. So, the proper trigger is:
#TRIGGER {(%w) just sent you a tell.$} {#additem tells %1}
To test triggers firing, I just tried this:
#TRIGGER {(%w) just sent you a tell.$} {#show %1}
and then did:
#SHOW "Zugg just sent you a tell."
and it fired just fine and displayed "Zugg" on the screen. So it's firing triggers just fine for me here. |
|
|
|
Ithilion Wanderer
Joined: 02 Sep 2005 Posts: 85
|
Posted: Fri Mar 06, 2009 10:41 pm |
Geez. wow. :P that's all I gotta say. I just cussed myself out irl because of a simple mistake like that.. c'mon, I.. I dont let myself off easily, most times..
|
|
|
|
|
|