main(void)1 void main( void )
2 {
3  preload_seq(221);
4  preload_seq(223);
5  preload_seq(225);
6  preload_seq(227);
7  preload_seq(229);
8  sp_base_walk(&current_sprite,220);
9  sp_brain(&current_sprite, 16);
10  sp_speed(&current_sprite,1);
11  sp_timing(&current_sprite,33);
12  sp_nohit(&current_sprite, 1);
13  sp_nodraw(&current_sprite, 1);
14  int &wait;
15 
16 loop:
17 
18 &wait = random(3000,1000);
19 wait(&wait);
20 
21 &wait = random(5, 1);
22 
23 if (&wait == 1)
24   {
25     say_stop("`#Woe are us!",&current_sprite);
26 
27   }
28 
29 if (&wait == 2)
30   {
31 
32     say_stop("`#You cannot hurt us Dink.",&current_sprite);
33 
34   }
35 
36 if (&wait == 3)
37   {
38     sp_nodraw(&current_sprite, 1);
39     say_stop("`#You cannot see us Dink.",&current_sprite);
40 
41   }
42 
43 if (&wait == 4)
44   {
45     sp_nodraw(&current_sprite, 0);
46     say_stop("`#LOOK UPON MY DEFORMED FACE!",&current_sprite);
47     wait(500);
48     say_stop("Spirit, leave me alone!",1);
49   }
50 
51 if (&wait == 5)
52   {
53     say_stop("`#Some of us like to eat humans.  I would leave if I were you.",&current_sprite);
54     wait(500);
55     say_stop("I am not afraid, ghost.",1);
56   }
57 
58 
59 
60 goto loop;
61 
62 }
63 
64 
65