Back to index

freedink-data  1.08.20080920
S2-AUNTP.c
Go to the documentation of this file.
00001 //script for auntie
00002 
00003 void main( void )
00004 {
00005 preload_seq(251);
00006 preload_seq(253);
00007 preload_seq(257);
00008 preload_seq(259);
00009 
00010  if (&s2-aunt < 4)
00011  {
00012  int &temphold = create_sprite(160,150, 0, 0, 0);
00013  sp_script(&temphold, "s2-jack");
00014  wait(5);
00015  }
00016 int &myrand;
00017 sp_base_walk(&current_sprite, 250);
00018 sp_speed(&current_sprite, 1);
00019 //sp_timing(&current_sprite, 66);
00020 
00021 //set starting pic
00022 
00023 sp_pseq(&current_sprite, 251);
00024 sp_pframe(&current_sprite, 1);
00025 
00026 if (&s2-aunt == 2)
00027   {
00028    freeze(1);
00029    sp_hitpoints(&temphold, 50);
00030    sp_brain(&current_sprite, 0);
00031    sp_x(&current_sprite, 113);
00032    sp_y(&current_sprite, 180);
00033    sp_brain(&temphold, 0);
00034    sp_x(&temphold, 154);
00035    sp_y(&temphold, 160);
00036    sp_pseq(&current_sprite, 259);
00037    sp_pseq(&temphold, 341);
00038 &save_x = sp_x(&current_sprite, -1);
00039 &save_y = sp_y(&current_sprite, -1);
00040 &save_y -= 40; 
00041    wait(500);
00042    playsound(9, 22050,0,0,0);
00043  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
00044  sp_seq(&mcrap, 188);
00045   
00046    say_stop("`6This will learn you to talk back to me!", &temphold);
00047   sp_dir(&temphold, 1);
00048    wait(500);
00049   sp_dir(1, 1);
00050    playsound(9, 22050,0,0,0);
00051  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
00052  sp_seq(&mcrap, 189);
00053   wait(300);
00054    playsound(9, 22050,0,0,0);
00055  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
00056  sp_seq(&mcrap, 188);
00057  say_stop("`#Please Jack!  Stop...", &current_sprite);
00058   wait(300);
00059   say_stop("`6Shut your trap!", &temphold);
00060   sp_dir(&temphold, 1);
00061 
00062    playsound(9, 22050,0,0,0);
00063  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
00064  sp_seq(&mcrap, 189);
00065   wait(300);
00066  say_stop("`#I'm leaving you!  We're through!", &current_sprite);
00067   wait(300);
00068   say_stop("`6Through are we?", &temphold);
00069 
00070    playsound(9, 22050,0,0,0);
00071  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
00072  sp_seq(&mcrap, 188);
00073 wait(50);
00074    playsound(9, 22050,0,0,0);
00075  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
00076  sp_seq(&mcrap, 189);
00077 wait(50);
00078 
00079    playsound(9, 17050,0,0,0);
00080  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
00081  sp_seq(&mcrap, 188);
00082 wait(50);
00083    playsound(9, 22050,0,0,0);
00084  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
00085  sp_seq(&mcrap, 189);
00086 wait(50);
00087    playsound(9, 24050,0,0,0);
00088  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
00089  sp_seq(&mcrap, 188);
00090 wait(50);
00091    playsound(9, 22050,0,0,0);
00092  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
00093  sp_seq(&mcrap, 189);
00094 wait(50);
00095 
00096    playsound(9, 22050,0,0,0);
00097  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
00098  sp_seq(&mcrap, 188);
00099 wait(50);
00100    playsound(9, 22050,0,0,0);
00101  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
00102  sp_seq(&mcrap, 189);
00103 wait(50);
00104 
00105    playsound(9, 17050,0,0,0);
00106  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
00107  sp_seq(&mcrap, 188);
00108 wait(50);
00109    playsound(9, 22050,0,0,0);
00110  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
00111  sp_seq(&mcrap, 189);
00112 wait(50);
00113    playsound(9, 24050,0,0,0);
00114  int &mcrap = create_sprite(&save_x, &save_y, 5, 188, 1);
00115  sp_seq(&mcrap, 188);
00116 wait(50);
00117    playsound(9, 22050,0,0,0);
00118  int &mcrap = create_sprite(&save_x, &save_y, 5, 189, 1);
00119  sp_seq(&mcrap, 189);
00120 wait(50);
00121 
00122 
00123 
00124 
00125    wait(2000);
00126 
00127   say_stop("`6You ok, baby?", &temphold);
00128   wait(2000);
00129  &s2-aunt = 3;
00130 
00131   say_stop("`6You shouldn't make me so mad.", &temphold);
00132   wait(1000);
00133  sp_brain(&current_sprite, 16);
00134   unfreeze(1);
00135 
00136  say_stop("`#<sob>", &current_sprite);
00137  wait(1000);
00138  sp_brain(&temphold, 16);
00139   return;
00140   }
00141 
00142 
00143 if (&s2-aunt == 0)
00144   {
00145    freeze(1);
00146   
00147    sp_x(&current_sprite, 600);
00148    sp_y(&current_sprite, -50);
00149    wait(500);
00150    say_stop("Hello.", 1);
00151    freeze(&temphold);
00152    sp_dir(&temphold, 3);
00153    wait(500);
00154    say_stop("`6Who the hell are you?", &temphold);
00155    wait(500);
00156    say_stop("I'm.. I'm Dink Smallwood.  I got a letter and...", 1);
00157    wait(500);
00158    say_stop("`6I ain't sent no letter to nobody nohow.", &temphold);
00159    wait(500);
00160    say_stop("But I...", 1);
00161    wait(300);
00162    say_stop("`6Git outta my house.", &temphold);
00163 
00164    move_stop(&current_sprite, 1, 430, 1);
00165    sp_seq(&current_sprite, 0);
00166    wait(500);
00167    say_stop("`#Dink!  You made it!", &current_sprite);
00168    wait(500);
00169    say_stop("Auntie Maria!", 1);
00170    wait(500);
00171    say_stop("`6What the? How do you know my wife?  You two been cheatin' on me?", &temphold);
00172    wait(500);
00173    say_stop("`#Jack, this is my nephew from Stonebrook.", &current_sprite);
00174    wait(500);
00175    say_stop("`#He's going to be staying with us a while.", &current_sprite);
00176    wait(500);
00177    say_stop("`6Huh?  Since when? Gawd dammit!", &temphold);
00178    wait(500);
00179    say_stop("`#Dink, I've prepared a room for you upstairs.", &current_sprite);
00180    wait(500);
00181    say_stop("Thanks, I'm sure it will be fine.", 1);
00182    wait(500);
00183    say_stop("`#Just ask if you need anything.", &current_sprite);
00184    &s2-aunt = 1;
00185    unfreeze(&temphold);
00186     }
00187 
00188 
00189    unfreeze(1);
00190   }
00191 
00192 sp_brain(&current_sprite, 16);
00193 
00194 
00195 }
00196 
00197 void talk( void )
00198 {
00199 
00200  freeze(1);
00201  freeze(&current_sprite);
00202          choice_start()
00203 (&s2-aunt == 1) "Ask about your mother"
00204 (&s2-aunt == 1) "Ask her about the town"
00205 (&s2-aunt == 3) "Encourage her to dump Jack"
00206 (&s2-aunt == 3) "Encourage her to continue getting beaten by Jack"
00207 (&s2-aunt == 4) "Comfort her"
00208 (&s2-aunt == 4) "Ask for a bigger bed"
00209 (&s2-aunt == 4) (&story == 8) "Tell Maria about your latest adventure"
00210 (&s2-aunt == 5) "Talk about nothing"
00211 (&s2-aunt == 4) (&story > 15) "Brag to Maria about saving the world"
00212          "Leave"
00213          choice_end()
00214 
00215         if (&result == 8)
00216         {
00217         wait(400);
00218         say_stop("I just wanted to say, thanks for letting me stay with you.", 1);
00219         wait(400);
00220         say_stop("`#It's really no problem, Dink.  Have you been looking for a job at all?", &current_sprite);
00221         wait(400);
00222         say_stop("Whups, gotta get going!  See ya!", 1);
00223 
00224         }
00225         if (&result == 7)
00226         {
00227         wait(400);
00228         say_stop("Guess what I did today!", 1);
00229         wait(400);
00230         say_stop("`#Saved Nadine's girl?", &current_sprite);
00231         wait(400);
00232         say_stop("Uh, yeah.  How did you know?", 1);
00233         wait(400);
00234         say_stop("`#It's in the King's News, there is a copy at the healers.", &current_sprite);
00235         wait(400);
00236         say_stop("Ah.  Ok.", 1);
00237         &s2-aunt = 5;
00238         }
00239 
00240         if (&result == 1)
00241         {
00242         wait(400);
00243          say_stop("So how do you know my mom?", 1);
00244         wait(400);
00245         say_stop("`#Well, she's my sister.", &current_sprite);
00246         wait(400);
00247         say_stop("Ah, that explains a few things.", 1);
00248         }
00249         if (&result == 2)
00250         {
00251         wait(400);
00252          say_stop("So tell me about Terris.", 1);
00253         wait(400);
00254         say_stop("`#It's not a bad town to live in.", &current_sprite);
00255         wait(400);
00256         say_stop("You don't sound so enthusiastic.", 1);
00257         wait(400);
00258         say_stop("`#Well.. things have been rough lately, that's all.", &current_sprite);
00259         }
00260 
00261         if (&result == 3)
00262         {
00263         wait(400);
00264          say_stop("I saw Jack hit you.", 1);
00265         wait(400);
00266         say_stop("`#You.. you did?", &current_sprite);
00267         wait(400);
00268         say_stop("Why don't you leave him?  Now?  Tonight?", 1);
00269         wait(400);
00270         say_stop("`#I'm afraid of him.  He would find me.", &current_sprite);
00271         wait(400);
00272         say_stop("Well maybe I'll just have to do something about it myself.", 1);
00273         wait(400);
00274         say_stop("`#Be careful!  He's very strong,", &current_sprite);
00275         wait(400);
00276         say_stop("He ain't nothing, just you watch.", 1);
00277         }
00278 
00279         if (&result == 4)
00280         {
00281         wait(400);
00282          say_stop("I saw Jack hit you.", 1);
00283         wait(400);
00284         say_stop("`#You.. you did?", &current_sprite);
00285         wait(400);
00286         say_stop("Yes, he's good at it.  I hope to learn much from him.", 1);
00287         wait(400);
00288         say_stop("`#What?!", &current_sprite);
00289         wait(400);
00290         say_stop("I just admire his stroke - takes practice you know.", 1);
00291         }
00292 
00293         if (&result == 5)
00294         {
00295         wait(400);
00296          say_stop("How are you holding up?", 1);
00297         wait(400);
00298         say_stop("`#I'm ok.  How do you like our town?  And living here?", &current_sprite);
00299         wait(400);
00300         say_stop("I like it.  I think the locals like me too.", 1);
00301         wait(400);
00302         say_stop("`#I feel safe with you upstairs.", &current_sprite);
00303         wait(400);
00304         say_stop("Me too.", 1);
00305         }
00306         if (&result == 6)
00307         {
00308         wait(400);
00309          say_stop("Say.. I like the room and all, but my bed is a little small.", 1);
00310         wait(400);
00311         say_stop("`#I would trade, but mine is the exact same size.", &current_sprite);
00312         wait(400);
00313         say_stop("What if you traded them in for one big one we could share?", 1);
00314         wait(400);
00315         say_stop("`#I'm your aunt, Dink!", &current_sprite);
00316         wait(400);
00317         say_stop("And?", 1);
00318         wait(400);
00319         say_stop("`#I have some work I have to do.", &current_sprite);
00320         }
00321 
00322 
00323         if (&result == 9)
00324         {
00325         wait(400);
00326          say_stop("Hey guess what, I just got back from a huge adventure.", 1);
00327         wait(400);
00328         say_stop("`#That's great.", &current_sprite);
00329         wait(400);
00330         say_stop("I pretty much saved the universe.", 1);
00331         wait(400);
00332         say_stop("`#Uh huh, fine.", &current_sprite);
00333         wait(400);
00334         say_stop("You don't believe any of this.", 1);
00335         wait(400);
00336         say_stop("`#Sorry Dink, I know how young men like to tell tales.", &current_sprite);
00337         wait(400);
00338         choice_start()
00339         "Pass off her indifference lightly"
00340         "Get rude about it"
00341         choice_end();
00342          if (&result == 1)
00343          {
00344         say_stop("Heh - that's what I like about you auntie!", 1);
00345 
00346          }
00347          if (&result == 2)
00348          {
00349         say_stop("You stupid whore.", 1);
00350         wait(400);
00351         say_stop("`#Excuse me?", &current_sprite);
00352         wait(400);
00353         say_stop("I see now I shouldn't have killed Jack.", 1);
00354         wait(400);
00355         say_stop("I should have joined forces with him.", 1);       
00356          }
00357 
00358 
00359         }
00360 
00361 
00362 
00363    unfreeze(1);
00364    unfreeze(&current_sprite);
00365    return;
00366 
00367 }
00368 
00369 void hit(void)
00370 {
00371  int &mcrap = random(4, 1);
00372 
00373   if (&mcrap == 1)
00374     Say("Take your beatin' like a man, woman!", 1);
00375   if (&mcrap == 2)
00376     Say("`#Please.. please don't hit me!", &current_sprite);
00377   if (&mcrap == 3)
00378     Say("I hope you like it rough!", 1);
00379   if (&mcrap == 4)
00380     Say("I hate relatives!", 1);
00381 
00382 
00383 }