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


Joined: 01 Nov 2002
Posts: 1
Location: USA

PostPosted: Fri Nov 01, 2002 5:00 am   

Trigger for multiple targets but not always all
 
Basically what I am wanting to do is to get a trigger that will give me the health outputs for more than 1 target in a status bar. The targets that I am fighting line up one right after another in the prompt that we have on our mud so triggering it off of the same line creates redundant triggers.

Enemies: 10 10 10 10 10 10 10


This pattern can some times have 1 target's health listed or even it could have 20 of them listed I am just looking to trigger it to where up to 4 of them will show in my status bar.

Mythl
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Nov 01, 2002 5:29 am   
 
Redundancy doesn't hurt anything. If you put the same value into @enemy1 four times, it will still be the same value.
#TR {^Enemies: (%d)} {#VAR enemy1 %1}
#TR {^Enemies: (%d) (%d)} {#VAR enemy1 %1;#VAR enemy2 %2}
#TR {^Enemies: (%d) (%d) (%d)} {#VAR enemy1 %1;#VAR enemy2 %2;#VAR enemy3 %3}
#TR {^Enemies: (%d) (%d) (%d) (%d)} {#VAR enemy1 %1;#VAR enemy2 %2;#VAR enemy3 %3;#VAR enemy4 %4}

LightBulb
Senior Member
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