 |
illusaen Newbie
Joined: 20 May 2006 Posts: 2
|
Posted: Sat May 20, 2006 5:35 pm
Interlacing 2 String Lists |
The text from my mud is this:
The targets for this quest were:
Kill at least 1 * Wight (Stairwell).
Kill at least 1 * Captain Snow (Abandoned Farmhouse).
Kill at least 1 * Percy (A Noisier Hall).
Kill at least 2 * a dove archer (Along the Walls).
Kill at least 1 * An Adeptus Minor (The Hallway Ends).
Kill at least 1 * Guild Navigator (Spice Navigator's Tank).
Kill at least 1 * a Dagashi Assassin (Travelling through a Wind-Swept Rocky Wasteland ).
Kill at least 1 * a cobra (The Edge).
[Enter key for more or 'q' to stop]
Kill at least 1 * A Demon School student (Inside the Engineering Class).
Kill at least 1 * Genkil (Inside the Bouncing Wench).
---------------------------------------------------------------------------
What I'm looking for is a trigger that will allow me to put this information in a status window - for example:
a cobra (The Edge) 1
A Demon School student (Inside the Engineering Class) 1
Genkil (Inside the Bouncing Wench) 1
To start this, I've made the words into one string list and the numbers into another with:
#TRIG {Kill at least (%d) ~* (*).} {#va gqmobs %additem( %2, @gqmobs, %cr);#va gqnumbers %additem( %1, @gqnumbers, %cr)}
When I try to display the gqmobs into a status window it works. However, I cannot seem to combine the two lists to do the above-mentioned goal.
I'd be grateful for any ideas at all. Thanks! |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4772 Location: Pensacola, FL, USA
|
Posted: Sat May 20, 2006 6:06 pm |
#TR {^The targets for this quest were} {#STW %line}
#TRIG {^Kill at least (%d) ~* (*).} {#STW + %2 %1} |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
illusaen Newbie
Joined: 20 May 2006 Posts: 2
|
Posted: Sat May 20, 2006 6:37 pm Re: Interlacing String Lists |
Is it possible to do it without the "The targets for this quest were"?
|
|
|
 |
edb6377 Magician

Joined: 29 Nov 2005 Posts: 482
|
Posted: Sun May 21, 2006 1:09 am |
Use the trigger ^the targets blah blah with a condition statement
Something similar to
#TRIGGER {^The Targets for this quest were} {}
#COND {{^Kill at least (%d) ~* (*).} {#STWIN + %2 %1} {within|param=10} |
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
 |
|
|