BroadcastMessage, Colors, and storing variables to .TXT

Alright I have a few questions and I would like to know if anyone can help me. Ive been working on a small stats mutator, and This is what I have so far. I left out all the properties and junk so that you could see the code Im focusing on. Also, I would like to know how to store record variables into a text file so that I can keep track of people’s stats.
==================================================
local RunePlayer Player;
local string PlayerName;
local float Score;
local float Deaths;
local int HeadKills;
if(Other.IsA(‘RunePlayer’))
{
Player = RunePlayer(Other);
PlayerName = Player.PlayerReplicationInfo.PlayerName;
Score = Player.PlayerReplicationInfo.Score;
Deaths = Player.PlayerReplicationInfo.Deaths;
HeadKills = Player.PlayerReplicationInfo.HeadKills;

BroadcastMessage(" Stats for “$PlayerName$” “);
BroadcastMessage(” Kills: “$Score$” Deaths: “$Deaths$” “);
BroadcastMessage(” Decapitated Enemys: “$HeadKills$” ");
==================================================Now, there are a few things bothering me about it. For one, it is all in default red. Does anyone know how to,
a. make it a runemessage.
b. reposition the text.
c. colorize the text.

The only other thing I really want to change is how when used, Deaths and Score return numbers with a lot of decimal places! Anyways, if anyone has anything to comment on or add, It would be appreciated.

Original thread: https://lowcaliber.com/eve/forums/a/tpc/f/3886011002/m/7406090824

BroadcastMessage takes two optional parameters in addition to message text:

The following, therefore:

would produce a white, beepless message at the bottom of the screen. There are fourteen message types with distinct color and placement:

  • ‘Subtitle’

  • ‘SubtitleMessage’

  • ‘RedSubtitle’

  • ‘SubtitleRed’

  • ‘Pickup’

  • ‘PickupMessage’

  • ‘Say’

  • ‘TeamSay’

  • ‘SayMessage’

  • ‘NoRunePower’

  • ‘NoRunePowerMessage’

  • ‘CriticalEvent’

  • ‘DeathMessage’

  • ‘Event’

If you want absolute control over the spacing and color, take a closer look at the function LocalizedMessage contained in RuneHUD.uc on line 592; you would do well to specify your own type and the means to interpret it.

Thank you very much Unter!