|
dazed-n-confused Novice
Joined: 14 Jan 2004 Posts: 31
|
Posted: Thu Feb 12, 2004 6:25 am
triggers to recognize a variable |
Back to the drawing board. Im trying to create a trigger to auto-fill my pipes during combat. Here is the idea, when I type pipelist I get the following:
Pipe#15635 An ebony pipe No herb.
Pipe#63829 An ebony pipe Megillos (11 puffs).
Pipe#83592 An ebony pipe Arkasu (3 puffs).
I would like a trigger to recognize which herb goes into pipe#15635, and automatically outpouch herb;fill pipe#15635 with herb.
Someone please help, I can't count the times this would have saved my life. |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Thu Feb 12, 2004 7:01 am |
Something like this:
#TRIGGER {^Pipe~#(%d) * (%w) ~(%d puffs~).} {#ADDKEY PipeList %1=%2}
#TRIGGER {^Pipe~#(%d) * No herb.} {outpouch %db(@PipeList,%1);fill Pipe~#%1 with %db(@PipeList,%1)} |
|
|
|
dazed-n-confused Novice
Joined: 14 Jan 2004 Posts: 31
|
Posted: Thu Feb 12, 2004 8:02 am |
Oh that is so close. When it goes to fill pipe#1234 with megillos, the trigger should fill pipe1234 with megillos not pipe#1234. How it appears in pipelist and how you issue the command are different. Being the master programmer that I am I tried to alter the code a little myself, but it had undesirable results.
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Thu Feb 12, 2004 8:48 am |
#TRIGGER {^Pipe~#(%d) * No herb.} {outpouch %db(@PipeList,%1);fill Pipe%1 with %db(@PipeList,%1)}
Remove the ~# in the last part :P |
|
|
|
|
|