Back to index

freedink-data  1.08.20080920
S2-CAVE2.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  if (&caveguy == 5)
00004  {
00005   script_attach(1000);
00006   //preload_seq(740);  <-- for sucking.
00007 preload_seq(375);
00008   preload_seq(168);
00009   int &junk;
00010   int &dude;
00011   int &evil;
00012   int &evil2;
00013   int &evil3;
00014   freeze(1);
00015   &dude = create_sprite(551, 157, 0, 0, 0);
00016   sp_brain(&dude, 0);
00017   sp_base_walk(&dude, 370);
00018   sp_speed(&dude, 2);
00019   sp_timing(&dude, 0);
00020   //set starting pic
00021   sp_pseq(&dude, 371);
00022   sp_pframe(&dude, 1);
00023   //Now EVIL
00024   &evil = create_sprite(-20, 130, 0, 0, 0);
00025   sp_brain(&evil, 0);
00026   sp_base_walk(&evil, 300);
00027   sp_speed(&evil, 1);
00028   sp_timing(&evil, 0);
00029   //set starting pic
00030   sp_pseq(&evil, 303);
00031   sp_pframe(&evil, 1);
00032   //Now EVIL's friend
00033   &evil2 = create_sprite(-20, 210, 0, 0, 0);
00034   sp_brain(&evil2, 0);
00035   sp_base_walk(&evil2, 300);
00036   sp_speed(&evil2, 1);
00037   sp_timing(&evil2, 0);
00038   //set starting pic
00039   sp_pseq(&evil2, 303);
00040   sp_pframe(&evil2, 1);
00041   //And the third EVIL
00042   &evil3 = create_sprite(300, 470, 0, 0, 0);
00043   sp_brain(&evil3, 0);
00044   sp_base_walk(&evil3, 300);
00045   sp_speed(&evil3, 1);
00046   sp_timing(&evil3, 0);
00047   //set starting pic
00048   sp_pseq(&evil3, 307);
00049   sp_pframe(&evil3, 1);
00050   Playmidi("1004.mid");
00051   say_stop("`5Ok, let's get going before they come.", &dude);
00052   wait(500);
00053   say_stop("`5This way.", &dude);
00054   move(&dude, 4, 500, 1);
00055   wait(50);
00056   move(1, 4, 550, 1);
00057   wait(150);
00058   say("`4Not so fast.", &evil);
00059   move(&evil, 6, 100, 1);
00060   wait(850);
00061   move(&evil3, 8, 380, 1);
00062   move_stop(&evil2, 6, 67, 1);
00063   say_stop("`4We have a small matter to discuss with your friend.", &evil);
00064   say("`4Hahahaaahaha", &evil);
00065   say("`4Haha ha ha", &evil2);
00066   say_stop("`4Ha ha haaa", &evil3);
00067   wait(800);
00068   sp_dir(&dude, 3);
00069   say_stop("`5It's okay Dink, I can take 'em.", &dude);
00070   wait(250);
00071   say("`5Allright.", &dude);
00072   move_stop(&dude, 4, 400, 1);
00073   sp_dir(&dude, 1);
00074   say_stop("`5Which one of you is first?", &dude);
00075   wait(250);
00076   say("`4Haha ha ha", &evil2);
00077   wait(500);
00078   say_stop("`4Ha ha haaa", &evil3);
00079   wait(500);
00080   say_stop("`4I am!!", &evil);
00081   move_stop(&evil, 2, 157, 1);
00082   move_stop(&evil, 6, 170, 1);
00083   wait(500);
00084   //say("`4I'm attacking now...", &evil);
00085   &junk = create_sprite(240, 157, 11, 506, 1);
00086   sp_seq(&junk, 506); 
00087   sp_dir(&junk, 6);
00088   sp_speed(&junk, 6);
00089   sp_flying(&junk, 1);
00090   wait(390);
00091   sp_active(&junk, 0);
00092   &junk = create_sprite(390, 157, 7, 168, 1);
00093   sp_seq(&junk, 168);
00094   sp_pseq(&dude, 375);
00095   sp_pframe(&dude, 1);
00096 
00097   say_stop("`5Ahhhhhh!", &dude);
00098   wait(50);
00099   sp_active(&junk, 0);
00100   //Kill guy too
00101 
00102   say("Noooo!!", 1);
00103   move(1, 4, 450, 1);
00104   wait(500);
00105   say("`4Haha ha ha", &evil2);
00106   say_stop("`4Ha ha haaa", &evil3);
00107   wait(500);
00108   say_stop("`4Our work is done here.", &evil);
00109   wait(500);
00110   say_stop("`4You may live, if you forget all that you've seen here.", &evil);
00111   wait(250);
00112   say_stop("Forget ...", 1);
00113   wait(500);
00114   say_stop("I'll forget allright.", 1);
00115   wait(250);
00116   move(&evil, 4, -20, 1);
00117   wait(360);
00118   move(&evil2, 4, -20, 1);
00119   move_stop(&evil3, 4, 180, 1);
00120   move_stop(&evil3, 2, 470, 1);
00121   sp_active(&evil, 0);
00122   sp_active(&evil2, 0);
00123   sp_active(&evil3, 0);
00124   wait(250);
00125   say_stop("Forget to remove my foot from your ASS!!", 1);
00126   wait(500);
00127   say_stop("Are you okay?", 1);
00128   wait(500);
00129   say_stop("`5I just got hit by a fireball", &dude);
00130   wait(500);
00131   say_stop("`5I'm going to die!", &dude);
00132   wait(250);
00133   say_stop("I'm sorry I wasn't fast enough.", 1);
00134   wait(500);
00135   say_stop("`5It's not your fault", &dude);
00136   wait(500);
00137   say_stop("`5Just .. just be careful... also, take this...", &dude);
00138   wait(500);
00139   say_stop("Alright.. what is it?", 1);
00140   wait(500);
00141   say_stop("`5The Mordavia scroll.  It contains magic I needed to...", &dude);
00142   say_stop("`5Ahhhhhh.", &dude);
00143   wait(1000);
00144   say_stop("Ah man...", 1);
00145   sp_active(&dude, 0);
00146   &caveguy = 6;
00147   add_magic("item-p1", 438,14);
00148   &story = 7;
00149   unfreeze(1);
00150   //Fade
00151   fade_down();
00152   fill_screen(0);
00153   //move Dink
00154   &player_map = 625;
00155   sp_x(1, 268);
00156   sp_y(1, 173);
00157   sp_dir(1, 8);
00158   load_screen();
00159   draw_screen();
00160   draw_status();
00161   fade_up();
00162   kill_this_task();
00163  }
00164 }