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
Solaras
Wanderer


Joined: 11 Mar 2002
Posts: 93

PostPosted: Fri Oct 03, 2003 4:53 pm   

colour trigger not working as hoped
 
I am trying to make a trigger to colour and flash the death message when an ally is killed

I have a stringlist of said allies called @ALLY and a trigger that looks like this

^(*) has been slain(*)

#IF (@ally = %1) {#color %eval( %color( blink)+%color( yellow, blue))}

but it doesnt work

it supposed to trigger on

Joe has been slain by the might of a rabbit

if Joe is in the Ally list it should blink the death message and colour it.

can someone show me what is going wrong?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Oct 03, 2003 5:23 pm   
 
Unless Joe is the only name in the list, @ally won't equal Joe. And = is also case sensitive, so joe isn't equal to Joe. You should either use the %ismember function, which is also case sensitive, or put the list in the pattern, which isn't case sensitive.

Blink, yellow, and blue are all valid arguments to #COLOR so there's no need to use the %color or %eval functions.

Pattern: {@ally} has been slain
Value: #COLOR blink,yellow,blue
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