Back to index

freedink-data  1.08.20080920
S8-DUCK2.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &nut;
00004  int &talker;
00005  &talker = 1;
00006 }
00007 
00008 void talk( void )
00009 {
00010  freeze(1);
00011  freeze(&current_sprite);
00012  &nut = sp_dir(1, -1);
00013  if (&talker == 0)
00014  {
00015   say_stop("Hi giant duck.", 1);
00016   wait(250);
00017   say_stop("`3Hi there.", &current_sprite);
00018   wait(250);
00019   say_stop("`3Welcome to our island.", &current_sprite);
00020   wait(250);
00021   say_stop("Thanks.", 1);
00022   wait(250);
00023   say_stop("`3Would you like to play with me?", &current_sprite);
00024   wait(250);
00025   say_stop("Uhh, not right now, I'm ... busy.", 1);
00026   wait(250);
00027   say_stop("`3Okay, maybe later then.", 1);
00028   unfreeze(1);
00029   unfreeze(&current_sprite);
00030   &talker = 1;
00031   return;
00032  }
00033  if (&talker == 1)
00034  {
00035   say_stop("Hi giant duck.", 1);
00036   wait(250);
00037   say_stop("`3Hi there.", &current_sprite);
00038   wait(250);
00039   say_stop("`3Welcome to our island.", &current_sprite);
00040   wait(250);
00041   say_stop("Thanks.", 1);
00042   wait(250);
00043   say_stop("`3Would you like to play with me?", &current_sprite);
00044   choice_start()
00045   "Go ahead and play"
00046   "Not yet"
00047   choice_end()
00048   if (&result == 1)
00049   {
00050    &duckgame = 1;
00051    say_stop("Sure, let's play something.", 1);
00052    wait(250);
00053    say_stop("`3Okay, I have just the game, follow me.", &current_sprite);
00054    wait(250);
00055    script_attach(1000);
00056    //fadeout & cutscene?
00057    fade_down();
00058    //change maps and stuff ...
00059    &player_map = 731;
00060    sp_x(1, 112);
00061    sp_y(1, 300);
00062    load_screen();
00063    draw_screen();
00064    draw_status();
00065    fade_up();
00066    kill_this_task();
00067   }
00068   if (&result == 2)
00069   {
00070    say_stop("Sorry, not yet.", 1);
00071   }
00072  }
00073  unfreeze(1);
00074  unfreeze(&current_sprite);
00075 }
00076 
00077 void hit( void )
00078 {
00079  freeze(&current_sprite);
00080  say_stop("`3This is not a fun game!!!", &current_sprite);
00081  unfreeze(&current_sprite);
00082 }
00083 
00084 void die ( void )
00085 {
00086   int &hold = sp_editor_num(&current_sprite);
00087   if (&hold != 0)
00088   editor_type(&hold, 6); 
00089 
00090 }
00091 
00092