Back to index

freedink-data  1.08.20080920
S7-WARP.c
Go to the documentation of this file.
00001 void talk( void )
00002 {
00003         freeze(1);
00004 
00005      choice_start();
00006      "Press the red button"
00007      "Leave"
00008      choice_end();
00009 
00010 if (&result == 1)
00011   {
00012        //get sprite # of item four (spinny thing) (in the editer)
00013         int &dcrap = sp(8);
00014 
00015 Playsound(34,12050,0,0,1);
00016         sp_brain(&dcrap, 6);
00017         sp_frame_delay(&dcrap, 500);
00018         wait(1000);
00019 Playsound(34,17050,0,0,1);
00020 
00021         sp_frame_delay(&dcrap, 400);
00022         wait(1000);
00023 Playsound(34,19050,0,0,1);
00024 
00025         sp_frame_delay(&dcrap, 300);
00026         wait(900);
00027 Playsound(34,22050,0,0,1);
00028         sp_frame_delay(&dcrap, 200);
00029         wait(800);
00030 Playsound(34,24050,0,0,1);
00031         sp_frame_delay(&dcrap, 100);
00032         wait(700);
00033 Playsound(34,26050,0,0,1);
00034         sp_frame_delay(&dcrap, 50);
00035         wait(600);
00036 Playsound(34,29050,0,0,1);
00037         sp_frame_delay(&dcrap, 25);
00038         wait(500);
00039 
00040 playsound(21, 8000, 0,0,0);
00041 
00042 sp_nodraw(1, 1);
00043 wait(500);
00044        script_attach(1000);
00045         fade_down();
00046         &player_map = 253;
00047         sp_x(1, 327);
00048         sp_y(1, 378);
00049         load_screen(253);
00050         draw_screen();
00051 freeze(1);
00052         fade_up();
00053 wait(1000);
00054 playsound(21, 8000, 0,0,0);
00055 sp_nodraw(1, 0);
00056 unfreeze(1);
00057 
00058 kill_this_task();
00059    }
00060 
00061 unfreeze(1);
00062 }