Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Ithilion
Wanderer


Joined: 02 Sep 2005
Posts: 85

PostPosted: 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
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: 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?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Ithilion
Wanderer


Joined: 02 Sep 2005
Posts: 85

PostPosted: 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..
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net