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
Atreides_096
Wanderer


Joined: 21 Jan 2005
Posts: 99
Location: Solvang, CA

PostPosted: Tue Apr 19, 2005 7:29 am   

#makewindow + #window defaults
 
I have a script that re-routes various channels from the MUD I play (Aardwolf) to capture windows windows located at the top of the screen. The trigger sequence is fairly simple:

Code:
#Trigger {^(%w) tells you '(*)'$} {
#var lastcap {%2} {} {Captures}
#if { %ismember( %1, @npc_list)} {#NOOP} {#win Personal %ansi( bright, white)~(%ansi( bright, red)%1%ansi( bright, white))%ansi( bright, red) tells you '@lastcap'}}

The reason for the lastcap variable is to prevent abuse (tell atreides hello;remove all;sac all) for example.

I have 2 problems with this script, I'm hoping someone can help with:

1) I was unable to get the #makewindow command to work how I wanted it. The goal is to have each window anchored inside the top of the main Zmud window. I could not get this done with #makewindow, but I was able to anchor them in manually, then use lock and save layout options so that the windows would re-load in the correct place and order each time I restarted Zmud. However, each time I restart Zmud, for each of the windows I need to go through and uncheck two options:
a) Show status bar
b) Attached command line

I want to find out how to make these windows start without those options default...

2) Even funneling the message into a variable, I still have problems with semicolons in the captures (generally when I give someone a speedwalk, such as run 4e3s;open w;run 3w it'll cut off at the semicolon and then try to make me walk the rest). What is the best way to eliminate this problem?

Thanks a lot
Reply with quote
Kiasyn
Apprentice


Joined: 05 Dec 2004
Posts: 196
Location: New Zealand

PostPosted: Tue Apr 19, 2005 10:22 am   
 
#Trigger {^(%w) tells you '(*)'$} {
#var lastcap {%2} {} {Captures}
#if { %ismember( %1, @npc_list)} {#NOOP} {#win Personal %ansi( bright, white)~(%ansi( bright, red)%1%ansi( bright, white))%ansi( bright, red) tells you '@lastcap'}}

#TRIGGER {^(%w) tells you '(*)'$} {#if ( !%ismember( %1, @npc_list) ) {#CAPTURE Personal}}
Doesn't have the colour but yeah :P

To make the windows start without that (I think)
Just click inside the window after you have removed the status bar and command line then click alias or variables, it doesn't really matter, once it puts you inside the Settings Editor do File->Save... enter a filename (if it asks) and it should stay like that...
_________________
Kiasyn
Owner of Legends of Drazon
Coder on Dark Legacy
Check out Talon, an easy IMC connection.
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Tue Apr 19, 2005 12:50 pm   
 
Do you really need to store it in a variable? maybe just check if the persont telling you is not an NPC and just use capture command, its easier

Code:

#Trigger {^(%w) tells you '} {
#IF (%ismember(%1,@npc_list)) {#NOOP} {#CO {%1} high,red;#CAP Personal}


As for the windows, I found it easier to just have 1 for communication, and just save and lock the layout. Making a new window every time someone sends you a tell is just 2 spammy for me at least
[/code]
Reply with quote
Atreides_096
Wanderer


Joined: 21 Jan 2005
Posts: 99
Location: Solvang, CA

PostPosted: Tue Apr 19, 2005 1:22 pm   
 
Well I have about 20 channels captured, and they get pretty heavy traffic (some do, anyway). I split them over roughly 7 wndows, so I can follow like-typed threads (if I'm in 3-4 heavy convos with tells, I don't like to see constant barters interspersed). I also want to try to keep the color-coding (it's mental I suppose, but I find it easier to read when it's colors I know... I tend to skim and skip a lot of MUD text simply by the color.. I think many people do..).

For color coding purposes, trying to avoid the #capture command if possible... Is there any way to simply run a check for if a line contains a semicolon, and if so to not capture that one? Or to verbatim capture it? (using #win, or like command for capture)
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Tue Apr 19, 2005 3:18 pm   
 
I think it was explained on a previous post that using "*" to capture something will not parse any of the ";" or any other separator as such, so I wouldnt worry bout it 2 much, unless of corse you already did it and had some trouble with it
Reply with quote
Atreides_096
Wanderer


Joined: 21 Jan 2005
Posts: 99
Location: Solvang, CA

PostPosted: Wed Apr 20, 2005 11:45 pm   
 
Quote:
To make the windows start without that (I think)
Just click inside the window after you have removed the status bar and command line then click alias or variables, it doesn't really matter, once it puts you inside the Settings Editor do File->Save... enter a filename (if it asks) and it should stay like that...


If anyone was watching this string, thought I would say that that did work.. thanks a lot!!! That was an irritant to me for many many months :P
Reply with quote
Kiasyn
Apprentice


Joined: 05 Dec 2004
Posts: 196
Location: New Zealand

PostPosted: Thu Apr 21, 2005 1:35 am   
 
woot
_________________
Kiasyn
Owner of Legends of Drazon
Coder on Dark Legacy
Check out Talon, an easy IMC connection.
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