Baked0420
2009-05-10 11:08:58
I had an idea for Text.Scar, or wherever it would be put, but to be able to edit your text with random colors, or effects, or both. I made a little function where you can set it to True or False to randomly pick a color or effect or both. Here's the function:
I also attatched a little script to test it. Think this should be added to help add antiban to people who want to use it in TypeSends in RS or is it not worth it?
Function ColorEffectAdd(Color, Effect:Boolean):String;
var
S1,S2,S3:String;
begin
if(Color)then
begin
case Random(5) of
0: S1:= 'red:';
1: S1:= 'green:';
2: S1:= 'cyan:';
3: S1:= 'purple:';
4: S1:= 'white:';
end;
end;
if(Effect)then
begin
case Random(5) of
0: S2:= 'scroll:';
1: S2:= 'shake:';
2: S2:= 'slide:';
3: S2:= 'wave:';
4: S2:= 'wave2:';
end;
end;
if(Color) and (Effect)then
begin
S3:= S1+S2;
{$IFDEF DEBUG}writeln('Choose S3:' + S3);{$ENDIF}
Result:= S3;
end;
if(Color) and (not(Effect))then
begin
{$IFDEF DEBUG}writeln('Choose S1:' + S1);{$ENDIF}
Result:= S1;
end;
If(not(Color)) and (Effect)then
begin
{$IFDEF DEBUG}writeln('Choose S2:' + S2);{$ENDIF}
Result:= S2;
end;
end;
I also attatched a little script to test it. Think this should be added to help add antiban to people who want to use it in TypeSends in RS or is it not worth it?