|
krohnu Beginner
Joined: 09 Mar 2003 Posts: 28
|
Posted: Mon Aug 28, 2006 11:20 pm
Second windows. |
I have some conversation triggers that captures a tell from someone and only displays it in a secondary window. They work quite well as llong as I only have one char logged in and using them.
#trigger {(%w) tells you, '} {
:comm:#Sayp %time( "h:nn:ss am/pm") " "
#cap comm
#gag
#beep
}
My trouble is when I have more then one char logged in they both use the same window. I dont have any other problems with the other #vars and such being over run, just the same window getting all the output. Is there a way to fix this in a generic fashion? I do not want to make seperate triggers for each char that I play, I play up to 10 differnet chars and dont want to maintain 10 different trigger lists. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Aug 29, 2006 3:53 am |
I dunno if this will work, but here's a possible solution.
Use the %window predefined variable. This should allow you to determine which window was firing the trigger:
#case (%ismember(%window,@CharacterWindowNames)) {} {} {} {} ...
Your #sayprompts for each character can go into the appropriate {} in the #case |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|