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
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: 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!!!
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: 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.
_________________
http://www.Aardwolf.com
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Wed Aug 09, 2006 5:05 pm   
 
403 was the damage each attack did.... so 11 * 403.... 4433
Reply with quote
saet
Apprentice


Joined: 12 Jun 2006
Posts: 106

PostPosted: Wed Aug 09, 2006 10:27 pm   
 
#PSUB {<color white>~[ %eval("%3*%6") ~]</color> %1} %x1
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Wed Aug 09, 2006 10:44 pm   
 
Beautiful! Now the available colors ansi colors? Or...?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
saet
Apprentice


Joined: 12 Jun 2006
Posts: 106

PostPosted: Thu Aug 10, 2006 12:59 am   
 
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=23870

I have an alias that lists all the color names and a trigger for each one to color them. I find it very useful when selecting colors so I can see what they look like.
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