Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
illusaen
Newbie


Joined: 20 May 2006
Posts: 2

PostPosted: 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!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4772
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
illusaen
Newbie


Joined: 20 May 2006
Posts: 2

PostPosted: 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"?
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: 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"
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net