1 //script for old guys in the bar
2
main(void)3 void main( void )
4 {
5
6 preload_seq(411);
7 preload_seq(413);
8 int &myrand;
9 sp_brain(¤t_sprite, 0);
10 sp_base_walk(¤t_sprite, 410);
11 sp_speed(¤t_sprite, 0);
12
13 //set starting pic
14
15 sp_pseq(¤t_sprite, 411);
16 sp_pframe(¤t_sprite, 1);
17
18 mainloop:
19 wait(2000);
20 if (&temp4hold == 1)
21 {
22 &myrand = random(5, 1);
23 if (&myrand == 1)
24 {
25 say_stop_npc("`0Fight!!!", current_sprite);
26 }
27 goto mainloop;
28 }
29 &myrand = random(8, 1);
30
31 if (&myrand == 1)
32 {
33 sp_pseq(¤t_sprite, 411);
34 }
35
36 if (&myrand == 2)
37 {
38 sp_pseq(¤t_sprite, 413);
39 }
40
41 &myrand = random(28, 1);
42
43 if (&myrand == 1)
44 {
45 say_stop_npc("`3Nathan, how about another story?", &temp3hold);
46 say_stop_npc("`0Alright.", ¤t_sprite);
47 say_stop_npc("`0One time I was fighting this dragon...", ¤t_sprite);
48 say_stop_npc("`0As I was about to deliver the death blow....", ¤t_sprite);
49 say_stop_npc("`0He begged me for his life. Have you ever seen a dragon cry?", ¤t_sprite);
50 wait(400);
51 say_stop_npc("`3Nope.", &temp3hold);
52 wait(400);
53 if (&temp4hold == 1)
54 {
55 goto mainloop;
56 }
57
58 say_stop_npc("`4Haw, those old codgers are so full of it...", &temphold);
59 say_stop_npc("`0Anyway, it wasn't pretty so I killed him.", ¤t_sprite);
60 say_stop_npc("`3And just where did you see a Dragon?", &temp3hold);
61 say_stop_npc("`0Uh.. Joppa Isle!", ¤t_sprite);
62 say_stop_npc("`3Liar.. Joppa Isle doesn't exist, it's a story for kids.", &temp3hold);
63
64 }
65
66 if (&myrand == 2)
67 {
68 say_stop_npc("`0Did I ever tell you about the time I trained a slayer?", ¤t_sprite);
69 say_stop_npc("`3You trained a slayer!?!", &temp3hold);
70 say_stop_npc("`0Yup. I raised him from when he was a pup. He would do anything I told him to.", ¤t_sprite);
71 say_stop_npc("`3Where is he now??!", &temp3hold);
72 say_stop_npc("`0Had to kill 'em. Ever had slayer meat?", ¤t_sprite);
73 if (&temp4hold == 1)
74 {
75 goto mainloop;
76 }
77
78 say_stop_npc("`4Give me a break...", &temphold);
79 say_stop_npc("`0It tastes better than what you serve here, barkeep!", ¤t_sprite);
80 say_stop_npc("`4I'll make a note of that...", &temphold);
81
82 }
83
84 if (&myrand == 3)
85 {
86 say_stop_npc("`0Then there was the time I found a magic scroll", ¤t_sprite);
87 say_stop_npc("`3Oh yeah?", &temp3hold);
88 say_stop_npc("`0Sure did, some strange fire spell it was.", ¤t_sprite);
89 say_stop_npc("`0I may have helped that big fire back a few seasons ago.", ¤t_sprite);
90 say_stop_npc("`0Quite toasty things got!", ¤t_sprite);
91 say_stop_npc("`3Whatever, you've had too much to drink.", &temp3hold);
92 }
93 if (&myrand == 4)
94 {
95 say_stop_npc("`0You wanna go hunting?", ¤t_sprite);
96 say_stop_npc("`3Sure I guess, why you wanna go hunting?", &temp3hold);
97 say_stop_npc("`0I hear there's a cave to the northeast with quite a catch inside it.", ¤t_sprite);
98 say_stop_npc("`3I don't know...", &temp3hold);
99 }
100
101
102 goto mainloop;
103 }
104
105
hit(void)106 void hit( void )
107 {
108 sp_speed(¤t_sprite, 0);
109 wait(400);
110 say_stop_npc("`0You'd best learn some manners quickly, boy.", ¤t_sprite);
111 wait(800);
112 goto mainloop;
113 }
114
talk(void)115 void talk( void )
116 {
117
118 freeze(1);
119 choice_start()
120 (&s2-milder == 0) "Impress the men with your tales of valour"
121 (&s2-milder == 1) "Convince the men that you ARE a warrior"
122 (&s2-milder == 2) (&story < 8) "Argue with the men even more"
123 (&s2-milder == 2) (&story > 7) "Chat with the men"
124 "Leave"
125 choice_end()
126
127 if (&result == 1)
128 {
129 wait(500);
130 say_stop("Greetings men. I bring stories of my adventures from the East.", 1);
131 //scene with Milder
132 preload_seq(401);
133 preload_seq(403);
134 preload_seq(407);
135 preload_seq(409);
136 sp_pseq(&temp3hold, 349);
137 say_stop("`0Oh really? And who might you be?", ¤t_sprite);
138 wait(500);
139 say_stop("My name is Dink Smallwood. I am a warrior!", 1);
140 wait(500);
141 sp_pseq(¤t_sprite, 413);
142 say_stop("`3You've had adventures, eh?", &temp3hold);
143 wait(500);
144 say_stop("Oh yes. Once, I was in this really scary cave...", 1);
145 wait(500);
146 say_stop("`0Yes, go on!", ¤t_sprite);
147 wait(500);
148 say_stop("Next thing I knew I was face to face with a huge monster...", 1);
149 playmidi("bullythe.mid");
150 int &milder = create_sprite(261, 440, 0, 0,0);
151 sp_base_walk(&milder, 400);
152 sp_speed(&milder, 1);
153 sp_timing(&milder, 0);
154 move_stop(&milder, 9, 420, 1)
155 move_stop(&milder, 7, 386, 1)
156 sp_dir(1, 6);
157 say_stop("`6What nonsense is this pig farmer filling your heads with?", &milder);
158 wait(300);
159 say_stop("`0He's a PIG FARMER?!", ¤t_sprite);
160 wait(300);
161 say_stop("Damn you, Milder! What are you doing here?", 1);
162 move_stop(&milder, 4, 300, 1)
163 wait(300);
164
165 say_stop("`6Just passing through... what are you doing away from the farm?", &milder);
166 wait(300);
167 say_stop("`3Farm?! What a loser!", &temp3hold);
168 wait(300);
169 sp_dir(1, 4);
170 say_stop("I don't tend pigs anymore, I'm a mighty warrior.", 1);
171 wait(500);
172 say_stop("`0Oh hogwash!", ¤t_sprite);
173 wait(500);
174 say("`3Hahahah!", &temp3hold);
175 say_stop("`6Hahaha! Good one, peasant!", &milder);
176 wait(400);
177 say_stop("That IS NOT funny.",1);
178 wait(400);
179 say_stop("`0I'm sorry Dink.. I'll make it up by buying you a drink.", ¤t_sprite);
180 wait(400);
181 say_stop("Great, what kind?",1);
182 wait(400);
183 say_stop("`0Is a bottle of SWINE ok? Bawahahah!", ¤t_sprite);
184 wait(400);
185 say("`3Hahahah!", &temp3hold);
186 say_stop("`6Hahaha!", &milder);
187 wait(200);
188 say_stop("You stupid rubes! I hate you both!", 1);
189 wait(200);
190 say_stop("`6This has been fun, pig boy, but I have REAL adventuring to do. See ya.", &milder);
191 move_stop(&milder, 3, 370, 1)
192 move_stop(&milder, 1, 210, 1)
193 playmidi("");
194
195 say_stop("`0He said pig boy...", ¤t_sprite);
196 wait(400);
197 say("`3Hahahah!", &temp3hold);
198 say("`0Hahaha!", ¤t_sprite);
199 wait(400);
200 &s2-milder = 1;
201 }
202
203 if (&result == 2)
204 {
205 wait(500);
206 say_stop("Look... My farming days are over, ok?", 1);
207 wait(500);
208 say_stop("`0Ok, you really want some adventure?", ¤t_sprite);
209 wait(500);
210 say_stop("Oh yes!",1);
211 wait(500);
212 say_stop("`0Go plow Harper's field, farmer boy.", ¤t_sprite);
213 wait(500);
214 say("`3Hahahah!", &temp3hold);
215 say_stop("`0Hahahah!", ¤t_sprite);
216 wait(500);
217 say_stop("How 'bout I plow your momma?",1);
218 &s2-milder = 2;
219 }
220
221 if (&result == 3)
222 {
223 wait(500);
224 say_stop("Look...",1);
225 wait(500);
226 say_stop("`0Save it boy, come back when you've done something important.", ¤t_sprite);
227 }
228
229
230 if (&result == 4)
231 {
232 wait(500);
233 say_stop("`0Hey, it's Dink! Great job on saving that girl!", ¤t_sprite);
234 wait(500);
235 say_stop("`3I told you he had the makings of a hero!", &temp3hold);
236 wait(500);
237 say_stop("Actually, didn't you both laugh at me and such?",1);
238 wait(500);
239 say_stop("`0No. That was uh, two other guys...", ¤t_sprite);
240 wait(500);
241 }
242
243
244
245 unfreeze(1);
246 goto mainloop;
247 return;
248 goto mainloop;
249
250 }
251
252