1 //script for jack
2 
main(void)3 void main( void )
4 {
5 preload_seq(341);
6 preload_seq(343);
7 preload_seq(347);
8 preload_seq(349);
9 if (&s2-aunt > 2)
10 {
11  sp_hitpoints(&current_sprite, 50);
12 }
13 int &myrand;
14 sp_base_walk(&current_sprite, 340);
15 sp_speed(&current_sprite, 1);
16 sp_pseq(&current_sprite, 341);
17 sp_pframe(&current_sprite, 1);
18 sp_brain(&current_sprite, 16);
19 }
20 
talk(void)21 void talk( void )
22 {
23 
24  freeze(1);
25  freeze(&current_sprite);
26          choice_start()
27 (&s2-aunt == 1)         "Say hi to Jack"
28 (&s2-aunt == 1)         "Thank Jack for his hospitality"
29 (&s2-aunt == 1)         "Say something rude to Jack"
30 (&s2-aunt == 3)         "Tell Jack to lay off Maria"
31 (&s2-aunt == 3)         "Coerce Jack into hitting Maria again"
32          "Leave"
33          choice_end()
34 
35         if (&result == 1)
36         {
37         wait(400);
38          say_stop("Hi Jack! Whacha doing?", 1);
39         wait(400);
40          say_stop("`6Get lost.", &current_sprite);
41         }
42 
43         if (&result == 2)
44         {
45         wait(400);
46          say_stop("It's real nice of you letting me stay here and all.", 1);
47         wait(400);
48          say_stop("`6<grumble>  You find a new place tomorrow.", &current_sprite);
49         }
50         if (&result == 3)
51         {
52         wait(400);
53          say_stop("Hey Jack!", 1);
54         wait(400);
55          say_stop("`6Yeah?", &current_sprite);
56         wait(400);
57          say_stop("Eat me!", 1);
58         wait(400);
59          say_stop("`6Why you little!!  Take this!", &current_sprite);
60 sp_touch_damage(&current_sprite, 10);
61 sp_speed(&current_sprite, 2);
62 sp_brain(&current_sprite, 9);
63 sp_target(&current_sprite, 1):
64         }
65 
66         if (&result == 4)
67         {
68         wait(400);
69          say_stop("Jack.  I know I'm your guest and all but...", 1);
70         wait(400);
71          say_stop("`6Yeah?", &current_sprite);
72         wait(400);
73         say_stop("If you touch Maria again, you won't live to see tomorrow.", 1);
74         wait(400);
75          say_stop("`6How about I touch you right now?", &current_sprite);
76         wait(400);
77         say_stop("Sorry, not into that.  But I know this guy named Milder...", 1);
78         }
79 
80         if (&result == 5)
81         {
82         wait(400);
83          say_stop("Jack.  Guess who was badmouthing you a second ago...", 1);
84         wait(400);
85          say_stop("`6My bitch wife?", &current_sprite);
86         wait(400);
87         say_stop("Yup.  Better lay a bit o law into her, if you know what I mean.", 1);
88         wait(400);
89          say_stop("`6Ok.", &current_sprite);
90         wait(400);
91 
92        move_stop(&current_sprite, 8, 140, 1);
93        move_stop(&current_sprite, 2, 140, 1);
94        move_stop(&current_sprite, 4, 255, 1);
95        move_stop(&current_sprite, 6, 256, 1);
96        say_stop("`6Oh honey.. could you come here a sec?", &current_sprite);
97         wait(400);
98  freeze(&temp2hold);
99 
100        say_stop("`#Yes, Jack.",&temp2hold);
101        move_stop(&temp2hold, 8, 140, 1);
102        move_stop(&temp2hold, 2, 140, 1);
103        move_stop(&temp2hold, 6, 310, 1);
104        move_stop(&temp2hold, 4, 309, 1);
105 wait(500);
106        say_stop("`#What is it?",&temp2hold);
107 wait(500);
108        say_stop("`6Just this", &current_sprite);
109 
110 wait(500);
111 
112    playsound(9, 17050,0,0,0);
113 &save_x = sp_x(&temp2hold, -1);
114 &save_y = sp_y(&temp2hold, -1);
115 &save_y -= 40;
116  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
117  sp_seq(&mcrap, 188);
118 wait(100);
119    playsound(9, 22050,0,0,0);
120  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
121  sp_seq(&mcrap, 189);
122 wait(100);
123    playsound(9, 17050,0,0,0);
124  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
125  sp_seq(&mcrap, 188);
126 wait(100);
127    playsound(9, 22050,0,0,0);
128  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
129  sp_seq(&mcrap, 189);
130 wait(100);
131  wait(500);
132        say_stop("Haw!  Good one Jack!",1);
133 
134  wait(500);
135 
136        say_stop("`6Now go clean up.", &current_sprite);
137  wait(500);
138 
139    say_stop("`#<sob>  Dink... I..thought you were different.",&temp2hold);
140  wait(500);
141        say_stop("Get a clue, honey.  How do you think I kept my mom in line?  Haw!",1);
142 
143        unfreeze(&temp2hold);
144 
145         }
146 
147 
148    unfreeze(1);
149    unfreeze(&current_sprite);
150    return;
151 
152 }
153 
hit(void)154 void hit(void)
155 {
156 Say("`6Oh, NOW YOU'VE DONE IT!", &current_sprite);
157 sp_touch_damage(&current_sprite, 10);
158 sp_speed(&current_sprite, 2);
159 sp_brain(&current_sprite, 9);
160 sp_target(&current_sprite, 1):
161 }
162 
die(void)163 void die(void)
164 {
165 script_attach(1000);
166 freeze(1);
167 freeze(&temp2hold);
168 wait(500);
169 say_stop("`#Dink!  What have you done!", &temp2hold);
170 wait(500);
171 say_stop('I guess I just killed your husband.", 1);
172 wait(500);
173 say_stop("`#Jack wasn't always like that.  He used to be.. <bursts into tears>", &temp2hold);
174 wait(500);
175 say_stop("I know.  It's ok, I'm here now.", 1);
176 &exp += 100;
177 &s2-aunt = 4;
178 unfreeze(1);
179 unfreeze(&temp2hold);
180 }
181