main(void)1 void main( void )
2 {
3 int &guy;
4 int &what;
5 &what = random(3,1);
6 //Spawn the guy...
7 &guy = create_sprite(258, 146, 0, 0, 0);
8 sp_brain(&guy, 0);
9 sp_base_walk(&guy, 410);
10 sp_speed(&guy, 1);
11 sp_timing(&guy, 0);
12 //set starting pic
13 sp_pseq(&guy, 417);
14 sp_pframe(&guy, 1);
15 //Coversation
16 freeze(1);
17 freeze(&guy);
18 move_stop(1, 8, 222, 1);
19 move_stop(&guy, 3, 265, 1);
20 wait(250);
21 if (&what == 1)
22 {
23 say_stop("`9Can I HELP you?", &guy);
24 wait(250);
25 say_stop("Uhh ... maybe.", 1);
26 wait(1000);
27 say_stop("`9Yeah well, what the hell are you doing??", &guy);
28 wait(250);
29 say_stop("What do you mean?", 1);
30 wait(250);
31 say_stop("`9I mean you just barging in here, no knocking, nothing!", &guy);
32 say_stop("`9What's with that?", &guy);
33 wait(500);
34 sp_dir(1, 2);
35 wait(500);
36 sp_dir(1, 8);
37 wait(1000);
38 say_stop("And there's like ... something WRONG with that?", 1);
39 wait(250);
40 say_stop("`9YES, now get the HELL OUT!!", &guy);
41 }
42 if (&what == 2)
43 {
44 say_stop("`9Can I HELP you?", &guy);
45 wait(250);
46 say_stop("Nope, just looking through houses and stuff.", 1);
47 wait(750);
48 say_stop("`9You know, you've got a lot of nerve.", &guy);
49 wait(250);
50 say_stop("Yea whatever ...", 1);
51 wait(250);
52 say_stop("`9Hmmmph.", &guy);
53 wait(250);
54 say_stop("Hey old man, the funeral house called ...", 1);
55 say_stop("they're ready for you now!", 1);
56 wait(250);
57 say_stop("`9WHAT, now get OUT!!", &guy);
58 }
59 if (&what == 3)
60 {
61 say_stop("`9What do you want?", &guy);
62 wait(250);
63 say_stop("I've come for your daughter.", 1);
64 wait(250);
65 say_stop("`9Just ... just please leave.", &guy);
66 }
67 //Leave.
68 unfreeze(1);
69 move_stop(1, 2, 640, 0);
70 unfreeze(&guy);
71 }
72