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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
ArjenJ
Wanderer


Joined: 30 Jan 2006
Posts: 66

PostPosted: Sat Dec 29, 2007 12:10 am   

[2.18] Triggering on a var list
 
I have this Variable in which I store names of enemies I have: @enemies
I have a trigger like this
Code:

<trigger priority="19740" id="1974">
pattern: ({@enemies})</pattern>
  <value>#CW red
#IF (@getenemies) {enemy %1}</value>
</trigger>

When I get a long line containing several enemies I want it to do a "enemy %1" for all the enemies that come by. But when that happens it fires the right number of times but the %1 contains only the first enemy listed during the procedure. So when I get a line like this:
Code:

blabla, enemy1, william, enemy2, dorothea, anna, enemy3, john.

My trigger colors all the enemies red but somehow sends the following to the mud
Code:

enemy enemy1
enemy enemy1
enemy enemy1

Not sure if this is a clear description but I hope you people know what I'm trying to get and what is going wrong. If anybody knows how to fix this please let me know.
Reply with quote
ArjenJ
Wanderer


Joined: 30 Jan 2006
Posts: 66

PostPosted: Sat Dec 29, 2007 12:19 am   
 
actually it seems to color all the enemies but only sends a enemy command once.
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sat Dec 29, 2007 2:42 pm   
 
Go in and edit the trigger by checking the 'Repeat within line' option.

I'm going to post the bug of the xml not remembering the trigger within line option now.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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