|
Sinew Newbie
Joined: 07 Jul 2002 Posts: 1
|
Posted: Sun Jul 07, 2002 9:09 pm
Awkward string problem |
I wanna capture a line of text and use the numbers in it as variables but can't get the right syntax because of the different chars involved. Any ideas?
The trigger text is
You have 150(155) hit and 155(155) hit points
I'm trying to capture and use the 4 numbers as variables
What should the corrent sytax for the above be ? |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sun Jul 07, 2002 9:31 pm |
You need to ~ the brackets in the trigger phrase.
#TRIGGER {^You have (%d)~((%d)~) hit and (%d)~((%d)~) hit points} {#VAR V_1 %1;#VAR V_2 %2;#VAR V_3 %3;#VAR V_4 %4}
Ton Diening
Providing untested answers that tend to be
more complicated than others. |
|
|
|
|
|