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
Sapphron
Newbie


Joined: 04 Nov 2006
Posts: 3

PostPosted: Wed Jan 03, 2007 6:53 am   

Capture/Gag who list
 
I'm trying to capture my who list. I can capture the entire list with #CAP -1. Here what my who list looks like:

EverDark (everdark.org 3000)
---
Brand Vessig the Hunter
Viscountess Esther, Dairy Queen [21m35s] <Got Tythae?>
Viceroy Forsaken
Count Sapphron Eukarius Velspeth, Soul Raper
Nysia the Experienced Tracker
---
No wizards and 5 players on.

I'm trying to basically move that entire list into floating window. I can get that to work but I'm having problem when trying to gag it out of my main window. The following code seems to do that as long as I disable my capture code which just gives me a bunch of gibberish.
#TRIGGER {No wizards and &p players on.} {#ADD P 4;#gag;#gag -@p;#VAR P 0}

The biggest problem with trying to do this in one command is the fact that I'm having to add the number(s) in the last line to tell zmud how many lines to gag. And sometimes that says 1 wizards and... obviously.
Anyway I'm sure the explanation of my code isn't quite clear to everyone but can someone at least point me in the right direction here to get my who list off of my main window and into a floater? I'm probably trying to make my code too complicated here. I'm no expert but I usually get by. However this one has kinda got me licked.

Any ideas?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Jan 03, 2007 8:51 am   
 
Code:
#TRIGGER "whocap" {^EverDark ~(everdark.org 3000~)} {#CAP who;#GAG}
#COND {^---} {#CAP who;#GAG} {within|param=1}
#COND {^%w*} {#CAP who;#GAG} {looplines|param=50}
#COND {^---} {#CAP who;#GAG} {within|param=1}
#COND {*} {#CAP who;#GAG} {within|param=1}


Should work, but untested
_________________
Zmud Support Library
Zmud Knowledge Base
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