|
smartturkeycj@gmail.com Beginner
Joined: 24 Dec 2010 Posts: 16
|
Posted: Fri Dec 24, 2010 9:14 am
#Capture |
Hey guys, I seem to be having issues with the #Capture function. When the trigger fires, the new window opens, but CMUD freezes up, and it doesn't allow me to interact with CMUD at all, but the everything still runs.
Game: Achaea
Trigger Pattern: ~((%*)~): (%w) {say|says}, "(%*)"
Example Pattern: (Channel): Dude says, "Thanks for the help guys, appreciate it."
Script: $chan = %trim(%1)
#capture $chan |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Fri Dec 24, 2010 3:30 pm |
Make sure the trigger for capture is only in your main window. Sounds like your running into an infinite loop because it's in your child windows as well.
|
|
_________________ Asati di tempari! |
|
|
|
smartturkeycj@gmail.com Beginner
Joined: 24 Dec 2010 Posts: 16
|
Posted: Fri Dec 24, 2010 3:32 pm |
Tech wrote: |
Make sure the trigger for capture is only in your main window. Sounds like your running into an infinite loop because it's in your child windows as well. |
How do I ensure that? |
|
|
|
smartturkeycj@gmail.com Beginner
Joined: 24 Dec 2010 Posts: 16
|
Posted: Fri Dec 24, 2010 4:56 pm |
I tried doing #if (%window(Achaea)) {#cap $chan} it works great for one window! But after that....POOF :*(
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Sat Dec 25, 2010 4:42 pm |
Make sure the trigger is defined within your main window, instead of in a module
|
|
|
|
|
|