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
Veldrin
Newbie


Joined: 19 Jun 2003
Posts: 2
Location: USA

PostPosted: Thu Jun 19, 2003 3:07 pm   

Triggering on a list.
 
I use a fairly common name highlighting trigger with the pattern of:
{@pk_list}

I also want to use that multvariable list, since it already colors the names of those that are in the list and are on, to put the names it triggered on into another variable.

As in my @pk_list is a complete list of enemies, but i want a @pk_curn to hold the ones that are currently on.

It colors fine, so I know its triggering, I just need a way to pass which name triggered from the list to another.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Jun 19, 2003 3:11 pm   
 
Surround it with parenthesis in the pattern and the item of the list that matched will be available to you by using %1. Example:
#TRIGGER {({@pk_list})} {#SH It matched with item: %1}

Kjata
Reply with quote
Veldrin
Newbie


Joined: 19 Jun 2003
Posts: 2
Location: USA

PostPosted: Thu Jun 19, 2003 3:16 pm   
 
Ahh. :)

You managed to reduce my headache in a matter of moments.

My Eternal thanks to you.
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