Back to index

freedink-data  1.08.20080920
S3-CAMPS.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 if (&gobpass < 5)
00004   {
00005    return;
00006   }
00007 
00008  if (&mayor == 3)
00009  {
00010 
00011   int &evil;
00012   int &evil2;
00013   int &evil3;
00014   int &evil4;
00015   //Make Em
00016   &evil = create_sprite(120, -30, 0, 0, 0);
00017   sp_brain(&evil, 0);
00018   sp_base_walk(&evil, 300);
00019   sp_speed(&evil, 1);
00020   sp_timing(&evil, 0);
00021   //set starting pic
00022   sp_pseq(&evil, 303);
00023   sp_pframe(&evil, 1);
00024   //Now EVIL's friend
00025   &evil2 = create_sprite(490, -30, 0, 0, 0);
00026   sp_brain(&evil2, 9);
00027   sp_base_walk(&evil2, 300);
00028   sp_speed(&evil2, 1);
00029   sp_timing(&evil2, 0);
00030   //set starting pic
00031   sp_pseq(&evil2, 303);
00032   sp_pframe(&evil2, 1);
00033   //One more
00034   &evil3 = create_sprite(310, -30, 0, 0, 0);
00035   sp_brain(&evil3, 9);
00036   sp_base_walk(&evil3, 300);
00037   sp_speed(&evil3, 1);
00038   sp_timing(&evil3, 0);
00039   //set starting pic
00040   sp_pseq(&evil3, 303);
00041   sp_pframe(&evil3, 1);
00042   //Hell
00043   &evil4 = create_sprite(210, 470, 0, 0, 0);
00044   sp_brain(&evil4, 9);
00045   sp_base_walk(&evil4, 300);
00046   sp_speed(&evil4, 1);
00047   sp_timing(&evil4, 0);
00048   //set starting pic
00049   sp_pseq(&evil4, 303);
00050   sp_pframe(&evil4, 1);
00051   //Done, now move on
00052   freeze(1);
00053   freeze(&evil2);
00054   freeze(&evil3);
00055   freeze(&evil4);
00056   //Should just be escaping from the Camp
00057   fade_up();
00058   move_stop(1, 6, 300, 1);
00059   move(1, 2, 210, 1);
00060   wait(1000);
00061   say_stop("Man, that was close!", 1);
00062   wait(500);
00063   say_stop("It looks like this scroll might just be the proof I need.", 1);
00064   wait(1000);
00065   playmidi("1004.mid");
00066   move(&evil, 2, 120, 1);
00067   wait(75);
00068   move(&evil2, 2, 174, 1);
00069   wait(65);
00070   move(&evil3, 2, 140, 1);
00071   wait(24);
00072   move(&evil4, 8, 370, 1);
00073   say("`4Not so fast ...", &evil);
00074   say_stop("`7Ha Ha Haaa", &evil2);
00075   wait(500);
00076   move(&evil2, 4, 450, 1);
00077   move_stop(1, 2, 290, 1);
00078   move_stop(1, 8, 280, 1);
00079   wait(400);
00080   say_stop("`4Looks like you have trouble learning, small one.", &evil);
00081   wait(250);
00082   say_stop("`4I thought I told you to stay away from us.", &evil);
00083   wait(250);
00084   say_stop("Yeah well, my foot still has an appointment with you.", 1);
00085   wait(250);
00086   say_stop("What do you freaks want with town anyway?", 1);
00087   wait(250);
00088   say_stop("`4Our business doesn't need to be told to the dead..", &evil);
00089   wait(250);
00090   say_stop("`4Finish him.", &evil);
00091   wait(250);
00092   screenlock(1);
00093   move_stop(&evil, 8, -30, 1);
00094   sp_active(&evil, 0);
00095   //Battle starts...
00096   sp_base_attack(&evil2, 740);
00097   sp_base_attack(&evil3, 740);
00098   sp_base_attack(&evil4, 740);
00099   sp_strength(&evil2, 10);
00100   sp_strength(&evil3, 10);
00101   sp_strength(&evil4, 10);      
00102   sp_defense(&evil2, 8);
00103   sp_defense(&evil3, 8);
00104   sp_defense(&evil4, 8);
00105   sp_touch_damage(&evil2, 6);
00106   sp_touch_damage(&evil3, 6);
00107   sp_touch_damage(&evil4, 6);
00108   sp_script(&evil2, "s3-dorks");
00109   sp_script(&evil3, "s3-dorks");
00110   sp_script(&evil4, "s3-dorks");
00111   sp_hitpoints(&evil2, 40);
00112   sp_hitpoints(&evil3, 40);
00113   sp_hitpoints(&evil4, 40);
00114   sp_target(&evil2, 1);
00115   sp_target(&evil3, 1);
00116   sp_target(&evil4, 1);
00117   unfreeze(1);
00118   unfreeze(&evil2);
00119   unfreeze(&evil3);
00120   unfreeze(&evil4);
00121   //Like if Dink lives ... give him the proof
00122   &mayor = 4;
00123  }
00124 }