|
shaun.murray Magician
Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: Wed Aug 09, 2006 1:30 pm
#psub and %ansi |
Code: |
#TRIGGER {(*) land(*) ~[ (%d) of (%d) ~] (*) ~((%d)~) (*)} {#PSUB {~[ %eval("%3*%6") ~] %1} %x1} |
Here's what I"m getting...
You land [ 11 of 11 ] attacks on a religious servant: RUPTURING (403) damage!
--#PSUB--
[ 4433 ] You land [ 11 of 11 ] attacks on a religious servant: RUPTURING (403) damage!
Looks fine in black and white, huh? Well... [ 11 of 11 ] and RUPTURING (403) is in white, whereas the rest of the line is blue. Including the [ 4433 ]. I've tried to incorporate an %ansi to make it white... Looked like this:
Code: |
#TRIGGER {(*) land(*) ~[ (%d) of (%d) ~] (*) ~((%d)~) (*)} {#PSUB {%ansi( white)~[ %eval("%3*%6") ~] %1} %x1} |
Which worked... Kinda... But it changed the You to white as well... Anyone know how I can get just that first [ 4433 ] to be white, and keep the rest of it the same color? I also tried this...
Code: |
#TRIGGER {(*) land(*) ~[ (%d) of (%d) ~] (*) ~((%d)~) (*)} {#PSUB {%ansi( white)~[ %eval("%3*%6") ~] %ansi( blue)%1} %x1} |
But its the wrong color blue.... =[ Thanks in advance!!! |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Wed Aug 09, 2006 3:27 pm |
On your mud it actually means that you hit 11 times for 403 EACH time?
I woulda thought that the 403 was the TOTAL damage from all 11 hits.
Yeah, not a help to your question i know sorry. |
|
|
|
shaun.murray Magician
Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: Wed Aug 09, 2006 5:05 pm |
403 was the damage each attack did.... so 11 * 403.... 4433
|
|
|
|
saet Apprentice
Joined: 12 Jun 2006 Posts: 106
|
Posted: Wed Aug 09, 2006 10:27 pm |
#PSUB {<color white>~[ %eval("%3*%6") ~]</color> %1} %x1
|
|
|
|
shaun.murray Magician
Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: Wed Aug 09, 2006 10:44 pm |
Beautiful! Now the available colors ansi colors? Or...?
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Wed Aug 09, 2006 10:53 pm |
%colorword or %colorname the helpfile on whichever of those is correct has a listing of available colors, i believe you can use the hexidecimalcolors as well
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
saet Apprentice
Joined: 12 Jun 2006 Posts: 106
|
|
|
|
|
|