Back to index

freedink-data  1.08.20080920
S2-JACK.c
Go to the documentation of this file.
00001 //script for jack
00002 
00003 void main( void )
00004 {
00005 preload_seq(341);
00006 preload_seq(343);
00007 preload_seq(347);
00008 preload_seq(349);
00009 if (&s2-aunt > 2)
00010 {
00011  sp_hitpoints(&current_sprite, 50);
00012 }
00013 int &myrand;
00014 sp_base_walk(&current_sprite, 340);
00015 sp_speed(&current_sprite, 1);
00016 sp_pseq(&current_sprite, 341);
00017 sp_pframe(&current_sprite, 1);
00018 sp_brain(&current_sprite, 16);
00019 }
00020 
00021 void talk( void )
00022 {
00023 
00024  freeze(1);
00025  freeze(&current_sprite);
00026          choice_start()
00027 (&s2-aunt == 1)         "Say hi to Jack"
00028 (&s2-aunt == 1)         "Thank Jack for his hospitality"
00029 (&s2-aunt == 1)         "Say something rude to Jack"
00030 (&s2-aunt == 3)         "Tell Jack to lay off Maria"
00031 (&s2-aunt == 3)         "Coerce Jack into hitting Maria again"
00032          "Leave"
00033          choice_end()
00034 
00035         if (&result == 1)
00036         {
00037         wait(400);
00038          say_stop("Hi Jack! Whacha doing?", 1);
00039         wait(400);
00040          say_stop("`6Get lost.", &current_sprite);
00041         }
00042 
00043         if (&result == 2)
00044         {
00045         wait(400);
00046          say_stop("It's real nice of you letting me stay here and all.", 1);
00047         wait(400);
00048          say_stop("`6<grumble>  You find a new place tomorrow.", &current_sprite);
00049         }
00050         if (&result == 3)
00051         {
00052         wait(400);
00053          say_stop("Hey Jack!", 1);
00054         wait(400);
00055          say_stop("`6Yeah?", &current_sprite);
00056         wait(400);
00057          say_stop("Eat me!", 1);
00058         wait(400);
00059          say_stop("`6Why you little!!  Take this!", &current_sprite);
00060 sp_touch_damage(&current_sprite, 10);
00061 sp_speed(&current_sprite, 2);
00062 sp_brain(&current_sprite, 9);
00063 sp_target(&current_sprite, 1):
00064         }
00065 
00066         if (&result == 4)
00067         {
00068         wait(400);
00069          say_stop("Jack.  I know I'm your guest and all but...", 1);
00070         wait(400);
00071          say_stop("`6Yeah?", &current_sprite);
00072         wait(400);
00073         say_stop("If you touch Maria again, you won't live to see tomorrow.", 1);
00074         wait(400);
00075          say_stop("`6How about I touch you right now?", &current_sprite);
00076         wait(400);
00077         say_stop("Sorry, not into that.  But I know this guy named Milder...", 1);
00078         }
00079 
00080         if (&result == 5)
00081         {
00082         wait(400);
00083          say_stop("Jack.  Guess who was badmouthing you a second ago...", 1);
00084         wait(400);
00085          say_stop("`6My bitch wife?", &current_sprite);
00086         wait(400);
00087         say_stop("Yup.  Better lay a bit o law into her, if you know what I mean.", 1);
00088         wait(400);
00089          say_stop("`6Ok.", &current_sprite);
00090         wait(400);
00091 
00092        move_stop(&current_sprite, 8, 140, 1);
00093        move_stop(&current_sprite, 2, 140, 1);
00094        move_stop(&current_sprite, 4, 255, 1);
00095        move_stop(&current_sprite, 6, 256, 1);
00096        say_stop("`6Oh honey.. could you come here a sec?", &current_sprite);
00097         wait(400);
00098  freeze(&temp2hold);
00099 
00100        say_stop("`#Yes, Jack.",&temp2hold);
00101        move_stop(&temp2hold, 8, 140, 1);
00102        move_stop(&temp2hold, 2, 140, 1);
00103        move_stop(&temp2hold, 6, 310, 1);
00104        move_stop(&temp2hold, 4, 309, 1);
00105 wait(500);
00106        say_stop("`#What is it?",&temp2hold);
00107 wait(500);
00108        say_stop("`6Just this", &current_sprite);
00109 
00110 wait(500);
00111 
00112    playsound(9, 17050,0,0,0);
00113 &save_x = sp_x(&temp2hold, -1);
00114 &save_y = sp_y(&temp2hold, -1);
00115 &save_y -= 40; 
00116  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
00117  sp_seq(&mcrap, 188);
00118 wait(100);
00119    playsound(9, 22050,0,0,0);
00120  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
00121  sp_seq(&mcrap, 189);
00122 wait(100);
00123    playsound(9, 17050,0,0,0);
00124  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
00125  sp_seq(&mcrap, 188);
00126 wait(100);
00127    playsound(9, 22050,0,0,0);
00128  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
00129  sp_seq(&mcrap, 189);
00130 wait(100);
00131  wait(500);
00132        say_stop("Haw!  Good one Jack!",1);
00133        
00134  wait(500);
00135 
00136        say_stop("`6Now go clean up.", &current_sprite);
00137  wait(500);
00138 
00139    say_stop("`#<sob>  Dink... I..thought you were different.",&temp2hold);
00140  wait(500);
00141        say_stop("Get a clue, honey.  How do you think I kept my mom in line?  Haw!",1);
00142 
00143        unfreeze(&temp2hold);
00144 
00145         }
00146 
00147 
00148    unfreeze(1);
00149    unfreeze(&current_sprite);
00150    return;
00151 
00152 }
00153 
00154 void hit(void)
00155 {
00156 Say("`6Oh, NOW YOU'VE DONE IT!", &current_sprite);
00157 sp_touch_damage(&current_sprite, 10);
00158 sp_speed(&current_sprite, 2);
00159 sp_brain(&current_sprite, 9);
00160 sp_target(&current_sprite, 1):
00161 }
00162 
00163 void die(void)
00164 {
00165 script_attach(1000);
00166 freeze(1);
00167 freeze(&temp2hold);
00168 wait(500);
00169 say_stop("`#Dink!  What have you done!", &temp2hold);
00170 wait(500);
00171 say_stop('I guess I just killed your husband.", 1);
00172 wait(500);
00173 say_stop("`#Jack wasn't always like that.  He used to be.. <bursts into tears>", &temp2hold);
00174 wait(500);
00175 say_stop("I know.  It's ok, I'm here now.", 1);
00176 &exp += 100;
00177 &s2-aunt = 4;
00178 unfreeze(1);
00179 unfreeze(&temp2hold);
00180 }