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


Joined: 01 Mar 2008
Posts: 64

PostPosted: Sat Nov 15, 2008 8:51 pm   

grouping health
 
I play Realms of Despair, and when we group, this is the output of the group or gr command

Following Palatinae [hitpnts] [ magic ] [mst] [mvs] [race]
[50 A Pal] Palatinae 1731/1731 779/779 === 640 elf
[50 A Ran] Kendal 1615/1615 926/926 === 640 dwarf

There is a blank line around the list.
I am trying to capture the entire list from 'following' to the end of the group (can be several characters) in either a status window, or a child "group" window.
Starting off, a basic listing will be fine, ultimately, I'd like to maybe put them into variables, and have the stwin or child win update with the char name and hp.
so far, this is what I have..

Code:

#ali group {#t+ {group} {:group:#clr;gr}
#CLASS {group}
#TRIGGER {Following (%w)} {#cap Group;#gag}
#TRIGGER {(%w)%s(%n)/(%n)} {#if (%trigger==$) {#t- group} {#cap group;gag}}
#CLASS 0



the problem is, the class isn't turning off, and continues to capture my prompt line into the "group" window.
<1731/1731hp 779/779m 640/640mv 2,274,709gp 1000 H A [728wt] New Darkhaven ( - )>{ }

The group command in the group window results in the this:

<1731/1731hp 779/779m 640/640mv 2,274,709gp 1000 H A [728wt] New Darkhaven ( - )>{ } gr
Following Palatinae [hitpnts] [ magic ] [mst] [mvs] [race]
[50 A Pal] Palatinae 1731/1731 779/779 === 640 elf
[50 A Ran] Kendal 1615/1615 926/926 === 640 dwarf
<1731/1731hp 779/779m 640/640mv 2,274,709gp 1000 H A [728wt] New Darkhaven ( - )>{ } l
As stated above, there are blank lines in the main window (pre-gag) that has leading and trailing blank lines.

I'm stumped.. any suggestions?
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Sun Nov 16, 2008 1:01 am   
 
Sure... capture the whole line ;)

#TRIGGER {~[%d%sA%s%w~] (%w) (%d)~/(%d) %d~/%d ~=~=~= %d %w}

Then you don't NEED to turn it off since it won't capture any lines except group lines. I don't see in your pasted example a blank line between the end of the group command and your next prompt, but if there is you can use the following to disable it:

#TRIGGER {^$} {#T- group}
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
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