Ralph1971 Wanderer
Joined: 01 Mar 2008 Posts: 64
|
Posted: 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? |
|