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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
krohnu
Beginner


Joined: 09 Mar 2003
Posts: 28

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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