These are the two functions that handle the messages during combat and both are found in
fight.c.
Code:
skill_message()
dam_message()
This excerpt from skill_message() shows the colour changed to
CCYEL on missed hits for players who have their colour setting set to
C_CMP.
Code:
if (msg->miss_msg.attacker_msg) {
send_to_char(ch, CCYEL(ch, C_CMP));
act(msg->miss_msg.attacker_msg, FALSE, ch, weap, vict, TO_CHAR);
send_to_char(ch, CCNRM(ch, C_CMP));
}
This except is from dam_message() shows us adding a coloured damage indicator to the damage message for characters who are immortal.
Code:
/* damage message to damagee */
if (GET_LEVEL(victim) >= LVL_IMMORT)
send_to_char(victim, "\tR(%d)", dam);
buf = replace_string(dam_weapons[msgnum].to_victim,
attack_hit_text[w_type].singular, attack_hit_text[w_type].plural);
act(buf, FALSE, ch, NULL, victim, TO_VICT | TO_SLEEP);
send_to_char(victim, CCNRM(victim, C_CMP));
----
You can also individually colour messages in the messages file found in the misc folder using colour tags if you'd prefer and output similar to:
You have been burned to death by PLAYER!