Author Topic: multicolored text  (Read 1988 times)

0 Members and 2 Guests are viewing this topic.

Offline Dr.Thrax

  • Major
  • *
  • Posts: 70
    • Lostgalaxy.de
multicolored text
« on: June 03, 2009, 07:54:26 am »
Script Name: multicolored text
Script Description: it came into my mind when i was doing a completely other thing but it worked and I want to show it to you because it is a funny way to combine different colors in one WriteConsole message
Original Author(s): Dr.Thrax
Core Version: 2.6.5
Code:

Here is one example:

Quote
const
DIST = '     '; // 5 spaces

function OnCommand(ID: Byte; Text: string): boolean;
begin
if text = '/test' then
   begin
         WriteConsole(0,+chr(13)+chr(13)+DIST+'This',RGB(255,0,0));
         WriteConsole(0,+chr(13)+DIST+'     is',RGB(0,0,255));
         WriteConsole(0,'        a TEST!',RGB(0,255,0));
         end;
end;

Screen:




maybe someone finds a use for it :)

EDIT: if the red one disapears , also the red text in the last message disappears and so on :(

kind regards Dr.Thrax
« Last Edit: June 03, 2009, 08:46:59 am by Dr.Thrax »

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: multicolored text
« Reply #1 on: June 03, 2009, 08:16:02 am »
Cool, I like it :)

I might implement this into my loginsystem script to highlight particular stats.
Soldat Global Account System: #soldat.sgas @ quakenet

Offline ~Niko~

  • Rainbow Warrior
  • *****
  • Posts: 2410
Re: multicolored text
« Reply #2 on: June 03, 2009, 10:02:08 am »
too hard to use it... also to read it...nevermind, good way to do so.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: multicolored text
« Reply #3 on: June 03, 2009, 11:14:08 am »
I've experimented with this a little, and ended up failing because they do not align for me, and probably won't align for everybody. If this is to be used in scripts, it definitely should be optional per user.

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: multicolored text
« Reply #4 on: June 03, 2009, 12:04:23 pm »
I really like the idea.
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: multicolored text
« Reply #5 on: June 03, 2009, 01:23:23 pm »
Good but it leaves few lines before and I don't like such stuff.

Offline y0uRd34th

  • Camper
  • ***
  • Posts: 325
  • [i]Look Signature![/i]
Re: multicolored text
« Reply #6 on: June 03, 2009, 03:26:11 pm »
looks cool, but yeah the lines it leave are bad ;D But anyway :D good work^^

Offline homerofgods

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2029
  • We can do better!
Re: multicolored text
« Reply #7 on: June 03, 2009, 04:12:25 pm »
Nice!, can someone make a test server with this on? I really wanna see :P I hope many will use it to customize their awsum server.