 |
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Tue Nov 29, 2005 5:33 am
wildcard help in trigger |
to pick up items i made this trigger:
#tr "picker" {^{@items}} {#var item %lower( %word( %param( %i), %numwords( %param( %i))));get @item}
i did this so i can have 1 trigger to control a bunch of items within a variable in the layout of {Big red boots|deadly dagger|...} and just add new items by using #additem and be able to keep this picker system under control using 2 variables and a trigger.
the problem i've run into is some items i want to pick up are named say flower, but the adjectives before are random, so normally i would use #tr {^* flower} {get flower}. i was wondering if anyone has an idea how to make it so i can still use my variable setup for ease of use and be able to put these wildcards somehow inside? |
|
|
|
 |
Slaem Apprentice
Joined: 20 Sep 2005 Posts: 135
|
Posted: Tue Nov 29, 2005 9:17 am |
#tr "picker" {^{|%w |%w %w }{@items}}
Something like that should take into account none/some adjectives. You'll need to enable wildcards patterns under Preferences > General Scripting (IIRC). |
|
|
|
 |
|
|
|