Back to index

freedink-data  1.08.20080920
S2-CULG.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 int &randy;
00004 sp_hitpoints(&current_sprite, 20);
00005 int &crap;
00006 }
00007 
00008 void talk( void )
00009 {
00010 
00011 
00012 
00013 if (get_sprite_with_this_brain(9, &current_sprite) == 0)
00014  {
00015   Playmidi("love.mid");
00016 
00017 
00018   //no more brain 9 monsters here, lets unlock the screen
00019   freeze(1);
00020   freeze(&current_sprite);
00021 
00022    say_stop("Mary, are you alright?", 1);
00023    wait(500);
00024    say_stop("`#Thanks to you.  Who are you?", &current_sprite);
00025    wait(500);
00026    choice_start();
00027    "A friend of the land."
00028    "A hero, in other words, your magic man."
00029    "Your worst nightmare."
00030    "The leader of another and more sadistic cult"
00031    choice_end();
00032    wait(500);
00033 
00034    say_stop("`#I see.  You will always be a hero to me.", &current_sprite);
00035    wait(500);
00036    say_stop("Time to go home.  Follow me.", 1);
00037    dink_can_walk_off_screen(1);
00038    move(1, 2, 700, 1);
00039    move(&current_sprite, 2, 700, 1);
00040    script_attach(1000);
00041    fade_down();
00042 &player_map = 66;
00043 load_screen(66);
00044 freeze(1);
00045 draw_screen();
00046 sp_x(1, 320);
00047 sp_y(1, 480);
00048 
00049  //build little girls
00050  &temp2hold = create_sprite(320,480, 0, 0, 0);
00051  
00052  sp_script(&temp2hold, "s2-qgirl");
00053  freeze(&temp2hold);
00054  freeze(&temp1hold);
00055  Debug("Ok, mother is &temp1hold and chick is &temp2hold");
00056  fade_up();
00057  wait(1500);
00058 
00059 move_stop(1, 8, 353, 1)
00060 move_stop(1, 9, 391, 1)
00061 move_stop(1, 4, 388, 1)
00062 wait(800);
00063 say_stop("`5Why.. Dink.  What are you doing here?", &temp1hold);
00064 
00065 wait(500);
00066 say_stop("I brought someone with me.", 1);
00067 wait(500);
00068   move_stop(&temp2hold, 8, 292, 1)
00069   say_stop("`#Mother!", &temp2hold);
00070   wait(500);
00071   say_stop("`5Oh Mary!  You are home!",&temp1hold);
00072   wait(500);
00073   say_stop("`#This man saved me from some naughty people!", &temp2hold);
00074   wait(500);
00075   say_stop("`5Dink, thank you.  If you ever need anything, just ask.",&temp1hold);
00076   wait(500);
00077 say_stop("I was just doing my job, ma'am.", 1);
00078 &s2-nad = 3;
00079 &story = 8;
00080 wait(500);
00081   unfreeze(&temp1hold);
00082   unfreeze(&temp2hold);
00083 
00084   unfreeze(1);
00085    dink_can_walk_off_screen(0);
00086     kill_this_task();
00087  }
00088 
00089 
00090 
00091 &randy = random(3, 1);
00092 
00093  if (&randy == 1)
00094  say("`#Help me!", &current_sprite);
00095  if (&randy == 2)
00096  say("`#Save me!", &current_sprite);
00097  if (&randy == 3)
00098  say("`#I wanna go home!", &current_sprite);
00099 
00100 }
00101 
00102 void hit ( void )
00103 {
00104  playsound(12, 22050, 0, 0, 0);
00105 }
00106 
00107 
00108 void die ( void )
00109 {
00110  &life = 0;
00111  say("Noooooooooooo!  The girl has died! I HAVE FAILED!!!!", 1);
00112 }