 |
daemoan.vermillious Apprentice

Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Sun Oct 18, 2009 2:09 am
Line Variable Trigger...???? |
This Is The line:
Encumbrance: 58% Quest Points: 6024 (0 quests completed)
Iam trying to:
#trigger Encumbrance: %1
#var holdvar %1
#trigger Gold: %1
#var goldvar %1
Its returning the whole line on the trigger and not jsut the stat |
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Oct 18, 2009 6:18 am |
%1 when used in a trigger pattern is the same thing as *. Change your pattern per the Pattern Matching help.
#trigger {Encumbrance: &%dholdvar~%} {}
If you would prefer to have the % in the variable, change &%dholdvar~% to (%d~%) and use the #var you had before. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sun Oct 18, 2009 5:50 pm |
Using %1 as a pattern is never recomended, and has been considered pretty much a bug. You need to stick with the pattern matching symbols (%x, %d, %w, %n, etc) and not use %1, %2, etc. Just a heads up.
Charneus |
|
|
|
 |
daemoan.vermillious Apprentice

Joined: 28 Feb 2009 Posts: 135 Location: Chico, Ca
|
Posted: Sun Oct 18, 2009 6:50 pm |
When useing this pattern matching...
Encumbrance: 58% Quest Points: 6024 (0 quests completed)
This Works For The Encumber but I cant seem to get it for the qps, does the qps need to be %dd?
or my gold for that matter...
*FIXED*
END THREAD |
|
|
|
 |
|
|
|