main(void)1 void main ( void )
2 {
3 int &maybe;
4 &maybe = random(3,1);
5 if (&maybe == 1)
6 {
7 &maybe = random(3,1);
8 if (&maybe == 1)
9 {
10 sp_speed(¤t_sprite, 7);
11 sp_timing(¤t_sprite, 0);
12 move(¤t_sprite, 6, 510, 1);
13 sp_speed(¤t_sprite, 1);
14 sp_timing(¤t_sprite, 33);
15 say_stop("`9I hope they didn't follow me ..", ¤t_sprite);
16 }
17 else
18 {
19 say_stop("`9Hello friend..", ¤t_sprite);
20 }
21 }
22 }
23
talk(void)24 void talk ( void )
25 {
26 freeze(1);
27 freeze(¤t_sprite);
28 choice_start()
29 "Ask about his travels"
30 "Ask for news"
31 (&story == 2)"Ask if he has any AlkTree nuts"
32 "Leave"
33 choice_end()
34
35 if (&result == 1)
36 {
37 story();
38 }
39 if (&result == 2)
40 {
41 news();
42 }
43 if (&result == 3)
44 {
45 say_stop("`9AlkTree nuts?? I haven't had those in a long long time.", ¤t_sprite);
46 say_stop("`9In my old town I might have been able to tell you,", ¤t_sprite);
47 say_stop("`9but I don't know of any around here.", ¤t_sprite);
48 }
49 unfreeze(1);
50 unfreeze(¤t_sprite);
51 }
52
hit(void)53 void hit ( void )
54 {
55 int &dir;
56 say("`9Ow, the hell's your problem?!", ¤t_sprite);
57 sp_speed(¤t_sprite, 4);
58 sp_timing(¤t_sprite, 0);
59 //Dissapear off screen
60 &dir = random(4, 1);
61 if (&dir == 1)
62 {
63 move(¤t_sprite, 1, -100, 1);
64 }
65 if (&dir == 2)
66 {
67 move(¤t_sprite, 3, 700, 1);
68 }
69 if (&dir == 3)
70 {
71 move(¤t_sprite, 7, -100, 1);
72 }
73 if (&dir == 4)
74 {
75 move(¤t_sprite, 9, 700, 1);
76 }
77 sp_brain(¤t_sprite, 0);
78 sp_kill(¤t_sprite, 2000);
79 script_attach(0);
80 }
81
die(void)82 void die ( void )
83 {
84 say_stop("He won't bother anyone anymore...", 1);
85 }
86
story(void)87 void story( void )
88 {
89 int &maybe = random(3,1);
90 if (&maybe == 1)
91 {
92 say_stop("`9I just escaped from the Goblin Sanctuary.", ¤t_sprite);
93 say_stop("`9It's quite a horrible place and I wouldn't recommend going there.", ¤t_sprite);
94 wait(250);
95 say_stop("That place is far to the west, how'd you get out here?", 1);
96 say_stop("`9Well I've just been headed away from it ever since I got out.", ¤t_sprite);
97 say_stop("`9I hope I can make it to PortTown and get away for a while.", ¤t_sprite);
98 }
99 if (&maybe == 2)
100 {
101 say_stop("`9I've always wanted to go out into the world and find adventure.", ¤t_sprite);
102 say_stop("`9Whether it be working with the Royal Guard or signing up", ¤t_sprite);
103 say_stop("`9with a band of mercenaries.", ¤t_sprite);
104 wait(250);
105 say_stop("`9Unfortunately for me one of my first jobs led me right into", ¤t_sprite);
106 say_stop("`9being captured by the goblins. Last time I go to the WestLands.", ¤t_sprite);
107 }
108 if (&maybe == 3)
109 {
110 say_stop("`9After being around those goblins for so long I'm glad to be out.", ¤t_sprite);
111 say_stop("`9Those guy are dumb as bricks man!", ¤t_sprite);
112 say_stop("`9I'm embarrassed that I got captured in the first place.", ¤t_sprite);
113 }
114 }
115
news(void)116 void news( void )
117 {
118 int &maybe = random(5,1);
119
120 if (&maybe == 1)
121 {
122 makefun();
123
124 }
125
126 &maybe = random(3,1);
127 if (&maybe == 1)
128 {
129 //playmidi("creepy.mid");
130 wait(1000);
131 say_stop("`9When I was captured at the Goblin Sanctuary I did notice something.", ¤t_sprite);
132 say_stop("`9All their patrols that came back from the north seemed different.", ¤t_sprite);
133 say_stop("`9Soon they started behaving really weird, not much later a few were", ¤t_sprite);
134 say_stop("`9locked up right next to me and going crazy!", ¤t_sprite);
135 wait(200);
136 say_stop("Man, sounds pretty creepy.", 1);
137 wait(200);
138 say_stop("`9Just another reason I'm headed away for a while.", ¤t_sprite);
139 wait(200);
140 }
141 if (&maybe == 2)
142 {
143 say_stop("`9While imprisoned, the goblins said that by the Crag cliffs", ¤t_sprite);
144 say_stop("`9There was a wizard that they were fighting, they thought", ¤t_sprite);
145 say_stop("`9they could actually get his magic if they defeated him.", ¤t_sprite);
146 say_stop("`9Anyway they said this guy could actually turn people to ice!!", ¤t_sprite);
147 say_stop("`9I'd guess they lost about 30 troops before they gave up.", ¤t_sprite);
148 }
149 if (&maybe == 3)
150 {
151 say_stop("`9I hear your Mom's a slut. But that's just the word on", ¤t_sprite);
152 say_stop("`9the street. Ha Ha Ha", ¤t_sprite);
153 say_stop("`9Ha Ha .. Ha ..", ¤t_sprite);
154 say_stop("`9 ... Ha ... ", ¤t_sprite);
155 say_stop("Ha Ha Ha ...", 1);
156 say_stop("`9 .. Ha Ha ..", ¤t_sprite);
157
158 if (&story > 4)
159 {
160 say_stop("Ha Ha ... wait!!!!", 1);
161 say_stop("My Mom's dead!!!!!", 1);
162 }
163 }
164
165 }
166
makefun(void)167 void makefun( void )
168 {
169 if (&story == 5)
170 {
171 say_stop("`9Some other guy I meet wandering told me there was a bad fire", ¤t_sprite);
172 say_stop("`9around these parts. Hope no one was injured.", ¤t_sprite);
173 wait(200);
174 say_stop("Yes.. I'm sure no one was ... hurt ...", 1);
175 unfreeze(1);
176 unfreeze(¤t_sprite);
177 return;
178 }
179 say_stop("Greetings friend, any news?", 1);
180 wait(200);
181 say_stop("`9Not really. What's your name anyway?", ¤t_sprite);
182 wait(200);
183 say_stop("Smallwood,", 1);
184 wait(250);
185 say_stop("Dink Smallwood.", 1);
186 wait(200);
187 say_stop("`9Hello, I'm Chance `Zands", ¤t_sprite);
188 wait(200);
189 say_stop("`9You have an interesting name there.", ¤t_sprite);
190 wait(200);
191 say_stop("Thank you.", 1);
192 }
193