Beispiel #1
0
        public void PrintRollNames(Entity player, string name, int index, int?roll)
        {
            HudElem elem = player.HasField("rtd_rolls") ? player.GetField <HudElem>("rtd_rolls") : HudElem.CreateFontString(player, HudElem.Fonts.HudBig, 0.6f);

            elem.SetPoint("RIGHT", "RIGHT", -90, 165 - ((index - 1) * 13));
            elem.SetText(string.Format("You Have {1}", roll + 1, name));
            player.SetField("rtd_rolls", new Parameter(elem));
            player.IPrintLnBold(string.Format("You Got {1}", roll + 1, name));
            GSCFunctions.IPrintLn(string.Format("{0} got {2}", player.Name, roll + 1, name));
        }