main(void)1 void main( void )
2 {
3  int &pap;
4  int &wherex;
5  int &wherey;
6 }
7 
talk(void)8 void talk( void )
9 {
10  &wherex = sp_x(&current_sprite, -1);
11  &wherey = sp_y(&current_sprite, -1);
12  freeze(1);
13  freeze(&current_sprite);
14  if (&story > 14)
15  {
16   say_stop("`6Good job on winning.", &current_sprite);
17   wait(250);
18   say_stop("`6Bye.", &current_sprite);
19   int &mcrap = create_sprite(&wherex, &wherey, 7, 167, 1);
20   sp_seq(&mcrap, 167);
21   playsound(24, 22052, 0, 0, 0);
22   unfreeze(1);
23   unfreeze(&current_sprite);
24   &snowc = 1;
25   sp_active(&current_sprite, 0);
26   return;
27  }
28  say_stop("Who, who are you?", 1);
29  wait(250);
30  say_stop("`6Me, who are you, someone not a goblin in these parts?!?", &current_sprite);
31  wait(250);
32  say_stop("What are you talking about?", 1);
33  wait(250);
34  say_stop("`6The war, the goblin war!", &current_sprite);
35  wait(250);
36  say_stop("`6I must defend this castle, I can't let them take it back.", &current_sprite);
37  wait(250);
38  say_stop("The .. the goblin wars, those ended a long long time ago!!", 1);
39  wait(250);
40  say_stop("They haven't fought for over 100 years!", 1);
41  wait(250);
42  say_stop("`6What!?!", &current_sprite);
43  wait(250);
44  say_stop("`6Is this true?", &current_sprite);
45  wait(250);
46  say_stop("I'm afraid so ...", 1);
47  wait(250);
48  say_stop("`6What ... what of the city of KernSin?", &current_sprite);
49  wait(250);
50  say_stop("Ooooo, well, both the city and its castle were destroyed", 1);
51  wait(250);
52  say_stop("during the last part of the war 100 years ago.", 1);
53  wait(250);
54  say_stop("Later it was partly rebuilt and now is the smaller town of KernSin.", 1);
55  wait(250);
56  say_stop("`6This, this is so much.  Did we win the war?", &current_sprite);
57  wait(250);
58  say_stop("Yes.", 1);
59  wait(1000);
60  say_stop("`6I .. I have to go somewhere, think about what has happened.", &current_sprite);
61  wait(250);
62  say_stop("`6Thank you ... what is your name friend?", &current_sprite);
63  wait(250);
64  say_stop("Dink Smallwood sir.", 1);
65  wait(250);
66  say_stop("`6SMALLWOOD ?!?", &current_sprite);
67  wait(250);
68  say_stop("`6I thought you were exiled.", &current_sprite);
69  wait(250);
70  say_stop("What??", 1);
71  wait(250);
72  say_stop("`6Of course, 100 years ago, he would've had children by now.", &current_sprite);
73  wait(250);
74  say_stop("Hey, you wanna tell me what you're talking about?", 1);
75  wait(250);
76  say_stop("`6Your family has an interesting lineage.", &current_sprite);
77  wait(250);
78  say_stop("`6The ancient ones are drawn to you,", &current_sprite);
79  wait(250);
80  say_stop("`6they can draw and feed upon magic from your family.", &current_sprite);
81  wait(250);
82  say_stop("`6And if one were to destroy you, they would gain immense power.", &current_sprite);
83  wait(250);
84  say_stop("There is some chaos brewing in this land now.", 1);
85  wait(250);
86  say_stop("We don't know who's behind it either.  I was on my way to", 1);
87  wait(250);
88  say_stop("the darklands when I came here, I have to rescue a friend.", 1);
89  wait(250);
90  say_stop("`6Be careful Dink, whoever is behind this is probably an ancient,", &current_sprite);
91  wait(250);
92  say_stop("`6making it all seem to be someone else.", &current_sprite);
93  wait(500);
94  say_stop("`6I must go, beware Dink, and good luck.", &current_sprite);
95  int &mcrap = create_sprite(&wherex, &wherey, 7, 167, 1);
96  sp_seq(&mcrap, 167);
97  playsound(24, 22052, 0, 0, 0);
98  unfreeze(1);
99  unfreeze(&current_sprite);
100  &snowc = 1;
101  sp_active(&current_sprite, 0);
102 }
103 
hit(void)104 void hit( void )
105 {
106  &wherex = sp_x(&current_sprite, -1);
107  &wherey = sp_y(&current_sprite, -1);
108  say("`6Bad idea ...", &current_sprite);
109  &pap = random(3, 1);
110  if (&pap == 1)
111  {
112   int &mcrap = create_sprite(&wherex, &wherey, 7, 167, 1);
113   sp_seq(&mcrap, 167);
114   playsound(24, 22052, 0, 0, 0);
115   int &mcrap2 = create_sprite(100, 143, 7, 167, 1);
116   sp_seq(&mcrap2, 167);
117   sp_x(&current_sprite, 100);
118   sp_y(&current_sprite, 143);
119  }
120  if (&pap == 2)
121  {
122   int &mcrap = create_sprite(&wherex, &wherey, 7, 167, 1);
123   sp_seq(&mcrap, 167);
124   playsound(24, 22052, 0, 0, 0);
125   int &mcrap2 = create_sprite(429, 151, 7, 167, 1);
126   sp_seq(&mcrap2, 167);
127   sp_x(&current_sprite, 429);
128   sp_y(&current_sprite, 151);
129  }
130  if (&pap == 3)
131  {
132   int &mcrap = create_sprite(&wherex, &wherey, 7, 167, 1);
133   sp_seq(&mcrap, 167);
134   playsound(24, 22052, 0, 0, 0);
135   int &mcrap2 = create_sprite(288, 301, 7, 167, 1);
136   sp_seq(&mcrap2, 167);
137   sp_x(&current_sprite, 288);
138   sp_y(&current_sprite, 301);
139  }
140 }
141