shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Thu Jul 18, 2019 12:09 pm |
Code: |
#TR {'s group:} {}
#COND {~[(%d) %w~] (%w) %s (%d)% hp (%d)% mana (%d)% mv (%d) xp} {
#STATE 1
#VAR %concat(%2, "_hp") {%3}
#VAR %concat(%2, "_mana") {%4}
#VAR %concat(%2, "_mv") {%5}
} {within|param=1} |
Would make all the variables you want, which could in turn be used to define an #STWIN, but unless you need to make use of these variables elsewhere, there is an easier way:
Code: |
#TR {'s group:} {#EXECWIN GroupStats {#CLR}}
#COND {~[(%d) %w~] (%w) %s (%d)% hp (%d)% mana (%d)% mv (%d) xp} {
#STATE 1
#WIN GroupStats {%format("&3d&s &3d&s &3d&s &s &s", %3, "%hp", %4, "%m", %5, "%mv", "--", %2)}
} {within|param=1} |
That %format might need some touchups: #HELP %format |
|