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(&current_sprite, 7);
11      sp_timing(&current_sprite, 0);
12      move(&current_sprite, 6, 510, 1);
13 	 sp_speed(&current_sprite, 1);
14      sp_timing(&current_sprite, 33);
15 	 say_stop("`9I hope they didn't follow me ..", &current_sprite);
16 	 }
17 	 else
18      {
19      say_stop("`9Hello friend..", &current_sprite);
20 	 }
21   }
22 }
23 
talk(void)24 void talk ( void )
25 {
26  freeze(1);
27  freeze(&current_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.", &current_sprite);
46     say_stop("`9In my old town I might have been able to tell you,", &current_sprite);
47     say_stop("`9but I don't know of any around here.", &current_sprite);
48    }
49  unfreeze(1);
50  unfreeze(&current_sprite);
51 }
52 
hit(void)53 void hit ( void )
54 {
55  int &dir;
56  say("`9Ow, the hell's your problem?!", &current_sprite);
57  sp_speed(&current_sprite, 4);
58  sp_timing(&current_sprite, 0);
59  //Dissapear off screen
60  &dir = random(4, 1);
61  if (&dir == 1)
62  {
63          move(&current_sprite, 1, -100, 1);
64  }
65  if (&dir == 2)
66  {
67          move(&current_sprite, 3, 700, 1);
68  }
69  if (&dir == 3)
70  {
71          move(&current_sprite, 7, -100, 1);
72  }
73  if (&dir == 4)
74  {
75          move(&current_sprite, 9, 700, 1);
76  }
77  sp_brain(&current_sprite, 0);
78  sp_kill(&current_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.", &current_sprite);
93    say_stop("`9It's quite a horrible place and I wouldn't recommend going there.", &current_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.", &current_sprite);
97    say_stop("`9I hope I can make it to PortTown and get away for a while.", &current_sprite);
98   }
99  if (&maybe == 2)
100   {
101    say_stop("`9I've always wanted to go out into the world and find adventure.", &current_sprite);
102    say_stop("`9Whether it be working with the Royal Guard or signing up", &current_sprite);
103    say_stop("`9with a band of mercenaries.", &current_sprite);
104    wait(250);
105    say_stop("`9Unfortunately for me one of my first jobs led me right into", &current_sprite);
106    say_stop("`9being captured by the goblins.  Last time I go to the WestLands.", &current_sprite);
107   }
108  if (&maybe == 3)
109   {
110    say_stop("`9After being around those goblins for so long I'm glad to be out.", &current_sprite);
111    say_stop("`9Those guy are dumb as bricks man!", &current_sprite);
112    say_stop("`9I'm embarrassed that I got captured in the first place.", &current_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.", &current_sprite);
132    say_stop("`9All their patrols that came back from the north seemed different.", &current_sprite);
133    say_stop("`9Soon they started behaving really weird, not much later a few were", &current_sprite);
134    say_stop("`9locked up right next to me and going crazy!", &current_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.", &current_sprite);
139    wait(200);
140   }
141  if (&maybe == 2)
142   {
143    say_stop("`9While imprisoned, the goblins said that by the Crag cliffs", &current_sprite);
144    say_stop("`9There was a wizard that they were fighting, they thought", &current_sprite);
145    say_stop("`9they could actually get his magic if they defeated him.", &current_sprite);
146    say_stop("`9Anyway they said this guy could actually turn people to ice!!", &current_sprite);
147    say_stop("`9I'd guess they lost about 30 troops before they gave up.", &current_sprite);
148   }
149  if (&maybe == 3)
150   {
151    say_stop("`9I hear your Mom's a slut.  But that's just the word on", &current_sprite);
152    say_stop("`9the street.  Ha Ha Ha", &current_sprite);
153    say_stop("`9Ha Ha .. Ha ..", &current_sprite);
154    say_stop("`9 ... Ha ... ", &current_sprite);
155    say_stop("Ha Ha Ha ...", 1);
156    say_stop("`9 .. Ha Ha ..", &current_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", &current_sprite);
172    say_stop("`9around these parts.  Hope no one was injured.", &current_sprite);
173    wait(200);
174    say_stop("Yes.. I'm sure no one was ... hurt ...", 1);
175    unfreeze(1);
176    unfreeze(&current_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?", &current_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", &current_sprite);
188   wait(200);
189   say_stop("`9You have an interesting name there.", &current_sprite);
190   wait(200);
191   say_stop("Thank you.", 1);
192 }
193