SRL Archive - Research & Development Lounge

The Random SCAR Name Game.


turbobk

2008-08-01 12:27:48

HEY!

I'm glad to see your reading my thread,
Ok now, I used to play this game a while ago for laughs using paper.

But then I thought.. Hang on this would be heaps easier in SCAR.
All you have to do is:

1. Pick 5 boys names.
2. Pick 5 male body parts.
3. Pick 5 girls names.
4. Pick 5 girls clothing items.
5. Pick 5 funny/random comments.

Then hit RUN!

Also, this game will be TOTALLY RUINED if you read the code before you play it.. So play the game at least once, before you read the code. :)

If you use other forum member's name's then post what it said in the Debug Box.

SO HERE IT IS :D
*Attached*

MasterKill

2008-08-01 12:34:02

Rick put his arm in jennifer's bra and said, hastalapasta baby


lol epic win?!

kinda easy but fun! next time use array's though :p

Hugolord

2008-08-01 12:47:11

mike put his penis in kate's skirt and said, whats this?

david put his armpit in lola's bra and said, detecting big lulz

sean put his eye in marina's g-string and said, eureka

jason put his balls in jenna's corset and said, bingo

tom put his ass in sophie's sock and said, spot on

rofl, nice.

PvH

2008-08-01 12:49:49

Nice game,
Maybe let it do:
random(5)
?
So it will return something random, and not just boy 1, girl1, and so on:p

Quite fun though

PvH

turbobk

2008-08-01 12:51:03

Hahah guys!!

Yeah MasterKill it's very simple but funny.. Also I know Array's but I just cbf using them for such a small simple but funny game. It compiles in 21ms anyways :)

Da 0wner

2008-10-02 19:33:16

Sorry to gravedig but I was reading this and made a quick improvement on it so here you go. There's still a problem where it repeats the people's name and stuff but I'll fix that later


program RandomGame; // Idea by TurboBk script improved by Da 0wner

type Male = record
Name : string;
Clothing : string;
BodyPart : string;
end;

type Female = record
Name : string;
Clothing : string;
end;

var
FunnySayings : array [1..5] of string;
Males : array [1..5] of Male;
Females : array [1..5] of Female;
i : integer;

procedure Setup;
begin
Males[1].Name := 'n1';
Males[1].BodyPart := 'bp1';

Males[2].Name := 'n2';
Males[2].BodyPart := 'bp2';

Males[3].Name := 'n3';
Males[3].BodyPart := 'bp3';

Males[4].Name := 'n4';
Males[4].BodyPart := 'bp4';

Males[5].Name := 'n5';
Males[5].BodyPart := 'bp5';

Females[1].Name := 'f1';
Females[1].Clothing := 'c1';

Females[2].Name := 'f2';
Females[2].Clothing := 'c2';

Females[3].Name := 'f3';
Females[3].Clothing := 'c3';

Females[4].Name := 'f4';
Females[4].Clothing := 'c4';

Females[5].Name := 'f5';
Females[5].Clothing := 'c5';

FunnySayings[1] := 'fs1';
FunnySayings[2] := 'fs2';
FunnySayings[3] := 'fs3';
FunnySayings[4] := 'fs4';
FunnySayings[5] := 'fs5';

end;


{#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*

DO NOT READ BELOW!!!!!!!!!!!!

#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*
*#*#*#*#*#*#*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#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#
#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*
*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*}

begin
ClearDebug;
Setup;

for i := 1 to 5 do
begin
Writeln(Males[RandomRange(1, 5)].Name + ' put his ' + Males[RandomRange(1, 5)].BodyPart + ' in ' + Females[RandomRange(1, 5)].Name + '''s ' + Females[RandomRange(1, 5)].Clothing + ' and said, ' + FunnySayings[(RandomRange(1, 5))]);
Writeln('');
end;

end.

P1nky

2008-10-02 21:59:44

lol hahaha

funny simple :P
yeah be better if you made it in a form.

Dan Cardin

2008-10-03 16:47:49

your way is kinda silly. This is much shorter :). I personally like this script because of its uselessness (yet also its laughs):).
var
people: array of TStringArray;
i : integer;

begin
ClearDebug;
SetArrayLength(people, 5);
//male name
people[0] := ['Bob','Bill', 'Frank', 'Charlie', 'Rob', 'Phil', 'Rick'];
//male bodypart
people[1] := ['face', 'mom'];
//female name
people[2] := ['Lola', 'his mom'];
//female clothing
people[3] := ['shirt', 'pants'];
//saying
people[4] := ['holy #%$*@!', 'oops!'];
for i := 1 to 5 do
begin
Writeln(people[0][random(length(people[0]))] + ' put his ' + people[1][random(length(people[1]))] + ' in ' + people[2][random(length(people[2]))] + '''s ' + people[3][random(length(people[3]))] + ' and said, ' + people[4][random(length(people[4]))]);
Writeln('');
end;
end.