![](templates/Classic/images/spacer.gif) |
Josiah.Bruns Apprentice
Joined: 04 Mar 2007 Posts: 103
|
Posted: 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. |
|
|
![](templates/Classic/images/spacer.gif) |
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: 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 |
|
|
![](templates/Classic/images/spacer.gif) |
Josiah.Bruns Apprentice
Joined: 04 Mar 2007 Posts: 103
|
Posted: 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.
|
|
|
![](templates/Classic/images/spacer.gif) |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
![](templates/Classic/images/spacer.gif) |
Dharkael Enchanter
![](images/avatars/9583916094231d31d8f24f.png)
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: 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." |
|
|
![](templates/Classic/images/spacer.gif) |
|
|