 |
Zelex Newbie
Joined: 09 Nov 2008 Posts: 3
|
Posted: Thu Nov 20, 2008 8:58 am
Wierd interaction #wait, #window |
I have a button performing a #wait, if in a trigger a #window command is executed during the wait, the #wait waits forever.
|
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Nov 20, 2008 9:50 am |
What are you doing after the wait? You need to be careful when and how you use #wait because it uses threading, which can cause all kinds of problems if you're not careful. Give us your code.
|
|
|
|
 |
Zelex Newbie
Joined: 09 Nov 2008 Posts: 3
|
Posted: Thu Nov 20, 2008 5:37 pm |
There is zero interaction between these two pieces. No global variables are shared between them. In fact, the trigger with the #window has no variables at all. This is very much a bug in cmud.
|
|
|
|
 |
Tarken Aurelius Apprentice

Joined: 23 Oct 2008 Posts: 120 Location: Cincinnati, Ohio
|
Posted: Thu Nov 20, 2008 5:49 pm |
Zelex, given the information you have provided, I was unable to duplicate the bug. Perhaps check somewhere if you have a #SUSPEND hanging around or doing something you hadn't anticipated or intended. But in agreement with Fang, we would be able to help you more if you showed us your code.
Try this though to see what is going on:
I want you to go to Options in the menu, then click on General.
On the Scripting tab click the 'Show trigger debug messages'. This will visually show you all the patterns that CMUD is reacting to as they happen. A bit spammy, but incredibly informative. If you can't seem to figure it out from this, but you can duplicate the bug while this option is on, please take a screenshot and post it here.
I hope this helps you. |
|
_________________ Tarken Aurelius, quality triggers since 2004! Trigger consulting since 2008! Content Developer at BatMUD (www.bat.org) |
|
|
 |
Zelex Newbie
Joined: 09 Nov 2008 Posts: 3
|
Posted: Sat Nov 22, 2008 4:40 am |
k, I'll give it a shot and let you know how it goes. I'd rather give out the code privately though.
|
|
|
|
 |
|
|
|