main(void)1 void main( void )
2 {
3  int &pap;
4  int &beat;
5  &beat = 0;
6  &pap = random(15, 1)
7  if (&pap == 1)
8  {
9   say_stop("`4Hello there sir.", &current_sprite);
10  }
11 }
12 
talk(void)13 void talk( void )
14 {
15  freeze(1);
16  freeze(&current_sprite);
17  choice_start()
18  "Say Hi"
19  "Ask about his tales"
20  "Leave"
21  choice_end()
22   if (&result == 1)
23   {
24    say_stop("So what do you do?", 1);
25    wait(250);
26    say_stop("`4Well, I'm a hunter.", &current_sprite);
27    wait(250);
28    say_stop("`4Hope to find some good furs in these parts.", &current_sprite);
29    wait(250);
30    say_stop("That's a good job", 1);
31    wait(250);
32    say_stop("Any luck lately?", 1);
33    wait(250);
34    say_stop("`4No, not really.  It's been kinda weird.", &current_sprite);
35    wait(250);
36    say_stop("`4I've seen a lot of monsters around lately though,", &current_sprite);
37    wait(250);
38    say_stop("`4it's like maybe they scared off all the animals.", &current_sprite);
39   }
40   if (&result == 2)
41   {
42    &pap = random(2, 1);
43    if (&pap == 1)
44    {
45     goto story1;
46    }
47    if (&pap == 2)
48    {
49     goto story2;
50    }
51   }
52  unfreeze(1);
53  unfreeze(&current_sprite);
54 }
55 
hit(void)56 void hit( void )
57 {
58  if (&beat == 0)
59  {
60   &beat = 1;
61   say_stop("`4Sir, nooo.  I don't take kindly to bruising.", &current_sprite);
62   return;
63  }
64  if (&beat == 1)
65  {
66   &beat = 2;
67   say_stop("`4I'm warning you sir, please stop that.", &current_sprite);
68   return;
69  }
70  if (&beat == 2)
71  {
72   say_stop("`4That's it, I'm outta here!", &current_sprite);
73   sp_speed(&current_sprite, 4);
74   move_stop(&current_sprite, 3, 700, 1);
75   freeze(&current_sprite);
76   wait(500);
77   say_stop("See ya.", 1);
78   sp_active(&current_sprite, 0);
79  }
80 }
81 
story1(void)82 void story1( void )
83 {
84  story1:
85  say_stop("`4I've heard many strange tales in my day.", &current_sprite);
86  wait(250);
87  say_stop("`4One particular tale spoke of an island in the sea.", &current_sprite);
88  wait(250);
89  say_stop("`4Where both humans and dragons lived.", &current_sprite);
90  wait(250);
91  say_stop("`4And in peace, no wars, no fighting.", &current_sprite);
92  wait(250);
93  say_stop("`4I even heard there was an underground tunnel to it.", &current_sprite);
94  wait(250);
95  say_stop("`4They say it was a beautiful island to visit.", &current_sprite);
96  wait(250);
97  say_stop("`4But I don't think it exists, just an old tale.", &current_sprite);
98  unfreeze(1);
99  unfreeze(&current_sprite);
100 }
101 
story2(void)102 void story2( void )
103 {
104  story2:
105  say_stop("`4A long time ago there used to be an entire goblin castle", &current_sprite);
106  wait(250);
107  say_stop("`4in this land.", &current_sprite);
108  wait(250);
109  say_stop("`4It's said they launched attack and attack from it,", &current_sprite);
110  wait(250);
111  say_stop("`4terrorizing the land.", &current_sprite);
112  wait(250);
113  say_stop("`4But they say a magic user came and cast a mighty spell on the castle.", &current_sprite);
114  wait(250);
115  say_stop("`4So strong that it teleported the castle to the icelands in the north.", &current_sprite);
116  wait(250);
117  say_stop("`4Presumably the goblins died in the harsh weather.", &current_sprite);
118  wait(250);
119  say_stop("`4Otherwise, no one has heard of the castle since.", &current_sprite);
120  unfreeze(1);
121  unfreeze(&current_sprite);
122 }
123