View previous topic :: View next topic |
Author |
Message |
thornag
Joined: 04 Dec 2012 Posts: 3
|
Posted: Wed Dec 05, 2012 2:56 pm Post subject: Matching list in regexp |
|
|
hi guys,
Is there a way I can use #list as a pattern in a #action?
My favorite mood is a rather hard fantasy mood where everything is 'in climate' and there are no numeric values etc. This is often annoying fo r aplayer especially when there is a lot of PK going on during guild wars etc
Say the idea is
Given a condition/health I want to display a numeric value next to it. I want to use lists so I can have a centralised function and just a set of variables to use with it.
I want
You are in great health to be changed to You are in great health [5/5]
You are in good health to be changed to You are in good health [4/5]
But I also want to use the same trick to achieve some special coloring for party members.
So what I'm trying to achieve in a code fashion is
#list {whatever} {create} {a} {b} {c}
#act {$whatever} {#echo {FOUND}}
#showme {a}
Expected result:
FOUND
Actual result
{nothing} |
|
Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3842
|
Posted: Thu Dec 06, 2012 8:14 am Post subject: |
|
|
You could try something like:
Code: |
#act {%1 is in great health} {#var health[%1] [5/5];#var color[%1] <afa>}
#sub {%1 is in %2 health} {$color[%1]%1<ddd> is in %2 health $health[%1].}
|
|
|
Back to top |
|
 |
|