main(void)1 void main ( void )
2 {
3 int &maybe;
4 &maybe = random(3,1);
5 if (&maybe == 1)
6 {
7 say_stop("`6Hello fellow traveller.", ¤t_sprite);
8 }
9 }
10
11 //playmidi("xfiles.mid");
12
talk(void)13 void talk ( void )
14 {
15 freeze(1);
16 freeze(¤t_sprite);
17 choice_start()
18 "Inquire about his travels"
19 "Ask about news"
20 (&story == 2)"Ask about AlkTree nuts"
21 "Leave"
22 choice_end()
23 wait(300);
24 if (&result == 1)
25 {
26 story();
27 }
28 if (&result == 2)
29 {
30 news();
31 }
32 if (&result == 3)
33 {
34 say_stop("`6AlkTree nuts?? Those make for a hearty meal. Let's see..", ¤t_sprite);
35 say_stop("`6I think there's a tree to the south east of the small village", ¤t_sprite);
36 say_stop("`6near here.", ¤t_sprite);
37 }
38 unfreeze(1);
39 unfreeze(¤t_sprite);
40 }
41
hit(void)42 void hit ( void )
43 {
44 int &dir;
45 say("`6Ow, crazy bastard!!", ¤t_sprite);
46 sp_speed(¤t_sprite, 4);
47 sp_timing(¤t_sprite, 0);
48 //Disappear off screen
49 &dir = random(4, 1);
50 if (&dir == 1)
51 {
52 move(¤t_sprite, 1, -100, 1);
53 }
54 if (&dir == 2)
55 {
56 move(¤t_sprite, 3, 700, 1);
57 }
58 if (&dir == 3)
59 {
60 move(¤t_sprite, 7, -100, 1);
61 }
62 if (&dir == 4)
63 {
64 move(¤t_sprite, 9, 700, 1);
65 }
66 sp_brain(¤t_sprite, 0);
67 sp_kill(¤t_sprite, 2000);
68 script_attach(0);
69
70 }
71
die(void)72 void die ( void )
73 {
74 say("I'm afraid he wont be making it to his destination.", 1);
75 }
76
story(void)77 void story( void )
78 {
79 int &maybe = random(3,1);
80 if (&maybe == 1)
81 {
82 say_stop("`6Be careful in the West. The Goblin castle has extreme", ¤t_sprite);
83 say_stop("`6defenses to say the least.", ¤t_sprite);
84 wait(250);
85 say_stop("`6I've seen many a traveler lose his head if you know what I mean.", ¤t_sprite);
86 }
87 if (&maybe == 2)
88 {
89 say_stop("`6I've heard of an old man who lives just north of SunCool pond.", ¤t_sprite);
90 say_stop("`6Although I've never seen him I have heard noises when I've", ¤t_sprite);
91 say_stop("`6gone by there.", ¤t_sprite);
92 }
93 if (&maybe == 3)
94 {
95 say_stop("`6Travel by sea is quite spendy these days. I suggest if", ¤t_sprite);
96 say_stop("`6you aren't a person of wealth you look towards perhaps", ¤t_sprite);
97 say_stop("`6working for your voyage or find a friend who will pay", ¤t_sprite);
98 say_stop("`6for you. Otherwise you could be saving for a long time.", ¤t_sprite);
99 }
100 }
101
news(void)102 void news( void )
103 {
104 int &maybe = random(3,1);
105 if (&maybe == 1)
106 {
107 makefun();
108 return;
109 }
110 &maybe = random(3,1);
111 if (&maybe == 1)
112 {
113 say_stop("`6There's some talk of an old evil awakening to", ¤t_sprite);
114 say_stop("`6the west. I don't know though, I think it's all", ¤t_sprite);
115 say_stop("`6just silly superstition.", ¤t_sprite);
116 wait(500);
117 say_stop("Yes.. I'm sure it's super ... stition ...", 1);
118 }
119 if (&maybe == 2)
120 {
121 say_stop("`6In the city of PortTown, the populous can seem quite", ¤t_sprite);
122 say_stop("`6rowdy at times. Some say it's because of the frequenting", ¤t_sprite);
123 say_stop("`6of pirates in the town. Either way, be careful if you", ¤t_sprite);
124 say_stop("`6ever travel there.", ¤t_sprite);
125 }
126 if (&maybe == 3)
127 {
128 say_stop("`6If you ever run into goblins, be careful.", ¤t_sprite);
129 say_stop("`6They're pretty prone to violence, so just don't", ¤t_sprite);
130 say_stop("`6upset them. However they're quite stupid.", ¤t_sprite);
131 say_stop("`6You could probably tell them just about anything,", ¤t_sprite);
132 say_stop("`6they'll believe it.", ¤t_sprite);
133 }
134 }
135
makefun(void)136 void makefun( void )
137 {
138 //I think story = 5 ???
139 if (&story == 6)
140 {
141 int &maybe = random(3,1);
142 if(&maybe == 1)
143 {
144 say_stop("`6I heard there was a bad fire in a nearby village,", ¤t_sprite);
145 say_stop("`6hope no one was hurt too bad.", ¤t_sprite);
146 wait(500);
147 say_stop("Yes.. I'm sure no one was ... hurt ...", 1);
148 }
149 }
150 if (&old_womans_duck == 3)
151 {
152 say_stop("`6In the small village nearby, I've heard there's", ¤t_sprite);
153 say_stop("`6a madman. A murderer who stalks and kills the pets of the people!", ¤t_sprite);
154 wait(250);
155 say_stop("`6Horrible isn't it?", ¤t_sprite);
156 wait(250);
157 say_stop("Yes.. very .. horrible ..", 1);
158 }
159 if (&old_womans_duck == 5)
160 {
161 say_stop("`6In the small village nearby, I've heard there's", ¤t_sprite);
162 say_stop("`6a madman. A murderer who stalks and kills the pets of the people!", ¤t_sprite);
163 wait(250);
164 say_stop("`6Horrible isn't it?", ¤t_sprite);
165 wait(250);
166 say_stop("Yes.. very uh .. horrible ..", 1);
167 }
168 else
169 {
170 say_stop("`6So young man, what's your name?", ¤t_sprite);
171 say_stop("Smallwood, Dink Smallwood.", 1);
172 wait(250);
173 say_stop("`6Greetings Mr. Smallwood.", ¤t_sprite);
174 }
175 }
176