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
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Fri Mar 30, 2007 10:15 pm   

trigger color question
 
this is the text:

(46 damage)
(46 damage)

If it shows up in red i was hit ... if green its damage i did.

I want to have one trigger something like this ~((%d) damage~)
and i want and if statement to do different things depending on the color of the text.
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Fri Mar 30, 2007 10:46 pm   
 
It would be easier to make a trigger that fires on red text or a trigger that fires on green text.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Sun Apr 01, 2007 12:13 am   
 
The problem with that is i want to put the triggers in the same class and since the patterns are the same, it wouldn't let me put two triggers in the same class firing on the same pattern.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Apr 01, 2007 12:34 am   
 
Name your triggers. As long as either pattern or id is different, ZMud doesn't see them as the same.
_________________
EDIT: I didn't like my old signature
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Sun Apr 01, 2007 12:52 am   
 
Also if you use ANSI triggers the patterns wouldn't be the same for the red and green since its two distinct codes
one would be something like %e[35~((%d) damage~)%e[0m
and the other [code]%e[31~((%d) damage~)%e[0m

or something like that anyways
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
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