|
Zorvok Newbie
Joined: 16 Dec 2006 Posts: 6
|
Posted: Sat Dec 16, 2006 4:53 am
{1.24]Capturing Scripts |
I was wondering if someone could help me figure out how to capture this line properly to store variables.
Quote: |
You have a total of [79,943] gp in 1 account, with [87,541] gp on hand.
|
I've been trying to figure it out, and was having a hard time.
Here's what I want
I want the number 79,943 ( or what ever number will be in there after changes) to be in a variable of BGP without the commas in the number.
Then the 87,541 to be in a variable of GP without the commas in the number.
Help will be greatly appreciated. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Dec 16, 2006 6:15 am |
#trigger {You have a total of ~[(%n)~] gp in 1 account, with ~[(%n)] gp on hand.} {BGP = %1;GP = %2}
%n matches a comma-delimited number, and should be removing that comma when referencing the system variable you captured it to (%1, %2, etc). |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|
|
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
|
|