|
blkno1 Novice
Joined: 26 May 2002 Posts: 30 Location: USA
|
Posted: Sat Aug 07, 2004 1:10 pm
Help with assigning var from prompt |
This is my prompt
<[81%]Kjeldar>[Slqvwfp] <315/315hp 1068/1068m 580/580mv 100br> [AL1000 AC-128] < -263,363,128xp 240aq 206ep -184,041,238lp 3,111,330tp NPK >
I want to assign var to the 81 and the name (Kjeldar). Whats the best way to do this?
Is this close? ~<~[%1~%~]%2~>*
I want to make an auto healer for say when the percentage drop to a certain amount.
-jim |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Aug 07, 2004 2:31 pm |
No, you really need limited wildcards for this.
Pattern: ~<~[(%d)~%~](%w)
Value: #VAR pct {%1};#VAR name {%2}
%1-%99 aren't documented as pattern wildcards so it's recommended that you don't use them in trigger patterns. While they do work, they are equivalent to (*) which matches anything and is difficult to use when you only want to match a specific portion of the line. Also, being undocumented, they could stop working in future versions.
They are documented for use in trigger values. |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
|
|
|
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
|
|