imafatmess
2006-05-14 18:57:51
I don't know what you think of this but anyways, I got bored so I did it…
Here is a better ghost speak which randomly types it with actions too (colours for the words i.e. white:scroll:)
[PHP]var
colourEffects: array[1..11] of String;
actionEffects: array[1..5] of String;
procedure loadEffects;
begin
colourEffects[1]:= 'red:'
colourEffects[2]:= 'white:'
colourEffects[3]:= 'green:'
colourEffects[4]:= 'purple:'
colourEffects[5]:= 'cyan:'
colourEffects[6]:= 'flash1:'
colourEffects[7]:= 'flash2:'
colourEffects[8]:= 'flash3:'
colourEffects[9]:= 'glow1:'
colourEffects[10]:= 'glow2:'
colourEffects[11]:= 'glow3:'
actionEffects[1]:= 'scroll:'
actionEffects[2]:= 'shake:'
actionEffects[3]:= 'slide:'
actionEffects[4]:= 'wave:'
actionEffects[5]:= 'wave2:'
end;
procedure ghostSpeak(action:String);
var
rn: array[1..5] of integer;
begin
rn[1]:= random(25) + 1;
if(rn[1] = 1)then
begin
rn[2]:= random(30) + 1;
rn[3]:= random(100) + 1;
rn[4]:= random(11) + 1;
rn[5]:= random(5) + 1;
loadEffects;
loadGhostSpeakWords(action);
if((rn[3] > 0) and (rn[3] < 10))then
begin
typeSend(colourEffects[rn[4]] + ' ' + say[rn[2]]);
wait(100+random(100));
end
else if((rn[3] > 10) and (rn[3] < 20))then
begin
typeSend(actionEffects[rn[5]] + ' ' + say[rn[2]]);
wait(100+random(100));
end
else if((rn[3] > 20) and (rn[3] < 25))then
begin
typeSend(colourEffects[rn[4]] + actionEffects[rn[5]] + ' ' + say[rn[2]]);
wait(100+random(100));
end
else
begin
typeSend(say[rn[2]]);
wait(100+random(100));
end;
end;
end;[/PHP]
Here is a better ghost speak which randomly types it with actions too (colours for the words i.e. white:scroll:)
[PHP]var
colourEffects: array[1..11] of String;
actionEffects: array[1..5] of String;
procedure loadEffects;
begin
colourEffects[1]:= 'red:'
colourEffects[2]:= 'white:'
colourEffects[3]:= 'green:'
colourEffects[4]:= 'purple:'
colourEffects[5]:= 'cyan:'
colourEffects[6]:= 'flash1:'
colourEffects[7]:= 'flash2:'
colourEffects[8]:= 'flash3:'
colourEffects[9]:= 'glow1:'
colourEffects[10]:= 'glow2:'
colourEffects[11]:= 'glow3:'
actionEffects[1]:= 'scroll:'
actionEffects[2]:= 'shake:'
actionEffects[3]:= 'slide:'
actionEffects[4]:= 'wave:'
actionEffects[5]:= 'wave2:'
end;
procedure ghostSpeak(action:String);
var
rn: array[1..5] of integer;
begin
rn[1]:= random(25) + 1;
if(rn[1] = 1)then
begin
rn[2]:= random(30) + 1;
rn[3]:= random(100) + 1;
rn[4]:= random(11) + 1;
rn[5]:= random(5) + 1;
loadEffects;
loadGhostSpeakWords(action);
if((rn[3] > 0) and (rn[3] < 10))then
begin
typeSend(colourEffects[rn[4]] + ' ' + say[rn[2]]);
wait(100+random(100));
end
else if((rn[3] > 10) and (rn[3] < 20))then
begin
typeSend(actionEffects[rn[5]] + ' ' + say[rn[2]]);
wait(100+random(100));
end
else if((rn[3] > 20) and (rn[3] < 25))then
begin
typeSend(colourEffects[rn[4]] + actionEffects[rn[5]] + ' ' + say[rn[2]]);
wait(100+random(100));
end
else
begin
typeSend(say[rn[2]]);
wait(100+random(100));
end;
end;
end;[/PHP]