main(void)1 void main( void )
2 {
3  if (&caveguy == 5)
4  {
5   script_attach(1000);
6   //preload_seq(740);  <-- for sucking.
7 preload_seq(375);
8   preload_seq(168);
9   int &junk;
10   int &dude;
11   int &evil;
12   int &evil2;
13   int &evil3;
14   freeze(1);
15   &dude = create_sprite(551, 157, 0, 0, 0);
16   sp_brain(&dude, 0);
17   sp_base_walk(&dude, 370);
18   sp_speed(&dude, 2);
19   sp_timing(&dude, 0);
20   //set starting pic
21   sp_pseq(&dude, 371);
22   sp_pframe(&dude, 1);
23   //Now EVIL
24   &evil = create_sprite(-20, 130, 0, 0, 0);
25   sp_brain(&evil, 0);
26   sp_base_walk(&evil, 300);
27   sp_speed(&evil, 1);
28   sp_timing(&evil, 0);
29   //set starting pic
30   sp_pseq(&evil, 303);
31   sp_pframe(&evil, 1);
32   //Now EVIL's friend
33   &evil2 = create_sprite(-20, 210, 0, 0, 0);
34   sp_brain(&evil2, 0);
35   sp_base_walk(&evil2, 300);
36   sp_speed(&evil2, 1);
37   sp_timing(&evil2, 0);
38   //set starting pic
39   sp_pseq(&evil2, 303);
40   sp_pframe(&evil2, 1);
41   //And the third EVIL
42   &evil3 = create_sprite(300, 470, 0, 0, 0);
43   sp_brain(&evil3, 0);
44   sp_base_walk(&evil3, 300);
45   sp_speed(&evil3, 1);
46   sp_timing(&evil3, 0);
47   //set starting pic
48   sp_pseq(&evil3, 307);
49   sp_pframe(&evil3, 1);
50   Playmidi("1004.mid");
51   say_stop("`5Ok, let's get going before they come.", &dude);
52   wait(500);
53   say_stop("`5This way.", &dude);
54   move(&dude, 4, 500, 1);
55   wait(50);
56   move(1, 4, 550, 1);
57   wait(150);
58   say("`4Not so fast.", &evil);
59   move(&evil, 6, 100, 1);
60   wait(850);
61   move(&evil3, 8, 380, 1);
62   move_stop(&evil2, 6, 67, 1);
63   say_stop("`4We have a small matter to discuss with your friend.", &evil);
64   say("`4Hahahaaahaha", &evil);
65   say("`4Haha ha ha", &evil2);
66   say_stop("`4Ha ha haaa", &evil3);
67   wait(800);
68   sp_dir(&dude, 3);
69   say_stop("`5It's okay Dink, I can take 'em.", &dude);
70   wait(250);
71   say("`5Allright.", &dude);
72   move_stop(&dude, 4, 400, 1);
73   sp_dir(&dude, 1);
74   say_stop("`5Which one of you is first?", &dude);
75   wait(250);
76   say("`4Haha ha ha", &evil2);
77   wait(500);
78   say_stop("`4Ha ha haaa", &evil3);
79   wait(500);
80   say_stop("`4I am!!", &evil);
81   move_stop(&evil, 2, 157, 1);
82   move_stop(&evil, 6, 170, 1);
83   wait(500);
84   //say("`4I'm attacking now...", &evil);
85   &junk = create_sprite(240, 157, 11, 506, 1);
86   sp_seq(&junk, 506);
87   sp_dir(&junk, 6);
88   sp_speed(&junk, 6);
89   sp_flying(&junk, 1);
90   wait(390);
91   sp_active(&junk, 0);
92   &junk = create_sprite(390, 157, 7, 168, 1);
93   sp_seq(&junk, 168);
94   sp_pseq(&dude, 375);
95   sp_pframe(&dude, 1);
96 
97   say_stop("`5Ahhhhhh!", &dude);
98   wait(50);
99   sp_active(&junk, 0);
100   //Kill guy too
101 
102   say("Noooo!!", 1);
103   move(1, 4, 450, 1);
104   wait(500);
105   say("`4Haha ha ha", &evil2);
106   say_stop("`4Ha ha haaa", &evil3);
107   wait(500);
108   say_stop("`4Our work is done here.", &evil);
109   wait(500);
110   say_stop("`4You may live, if you forget all that you've seen here.", &evil);
111   wait(250);
112   say_stop("Forget ...", 1);
113   wait(500);
114   say_stop("I'll forget allright.", 1);
115   wait(250);
116   move(&evil, 4, -20, 1);
117   wait(360);
118   move(&evil2, 4, -20, 1);
119   move_stop(&evil3, 4, 180, 1);
120   move_stop(&evil3, 2, 470, 1);
121   sp_active(&evil, 0);
122   sp_active(&evil2, 0);
123   sp_active(&evil3, 0);
124   wait(250);
125   say_stop("Forget to remove my foot from your ASS!!", 1);
126   wait(500);
127   say_stop("Are you okay?", 1);
128   wait(500);
129   say_stop("`5I just got hit by a fireball", &dude);
130   wait(500);
131   say_stop("`5I'm going to die!", &dude);
132   wait(250);
133   say_stop("I'm sorry I wasn't fast enough.", 1);
134   wait(500);
135   say_stop("`5It's not your fault", &dude);
136   wait(500);
137   say_stop("`5Just .. just be careful... also, take this...", &dude);
138   wait(500);
139   say_stop("Alright.. what is it?", 1);
140   wait(500);
141   say_stop("`5The Mordavia scroll.  It contains magic I needed to...", &dude);
142   say_stop("`5Ahhhhhh.", &dude);
143   wait(1000);
144   say_stop("Ah man...", 1);
145   sp_active(&dude, 0);
146   &caveguy = 6;
147   add_magic("item-p1", 438,14);
148   &story = 7;
149   unfreeze(1);
150   //Fade
151   fade_down();
152   fill_screen(0);
153   //move Dink
154   &player_map = 625;
155   sp_x(1, 268);
156   sp_y(1, 173);
157   sp_dir(1, 8);
158   load_screen();
159   draw_screen();
160   draw_status();
161   fade_up();
162   kill_this_task();
163  }
164 }
165