Back to index

freedink-data  1.08.20080920
START-2.c
Go to the documentation of this file.
00001 //for continue button
00002 
00003 void main( void )
00004 {
00005 int &crap;
00006 }
00007 
00008 void buttonon( void )
00009 {
00010 sp_pframe(&current_sprite, 2);
00011 Playsound(20,22050,0,0,0);
00012 &crap = create_sprite(358, 93, 0, 200, 1);
00013 sp_noclip(&crap, 1);
00014 sp_seq(&crap, 200);
00015 sp_reverse(&crap, 0);
00016 
00017 }
00018 
00019 void buttonoff( void )
00020 {
00021 sp_pframe(&current_sprite, 1);
00022 Playsound(21,22050,0,0,0);
00023 sp_brain(&crap, 7);
00024 sp_reverse(&crap, 1);
00025 sp_seq(&crap, 200);
00026 }
00027 
00028 void load( void )
00029 {
00030 Playsound(18,22050,0,0,0);
00031         choice_start();
00032         "&savegameinfo"
00033         "&savegameinfo"
00034         "&savegameinfo"
00035         "&savegameinfo" 
00036         "&savegameinfo" 
00037         "&savegameinfo" 
00038         "&savegameinfo" 
00039         "&savegameinfo" 
00040         "&savegameinfo" 
00041         "&savegameinfo" 
00042         "Nevermind"
00043         choice_end();
00044 
00045 if (&result == 11)
00046    return;
00047 
00048 if (game_exist(&result) == 0)
00049     return;
00050 
00051 
00052 
00053     stopmidi();
00054     stopcd();
00055      sp_active(1, 1);
00056    sp_x(1, 334);
00057    sp_y(1, 161);
00058    sp_base_walk(1, 70);
00059    sp_base_attack(1, 100);
00060     sp_dir(1, 4);
00061     sp_brain(1, 1);
00062     sp_que(1, 0);
00063     sp_noclip(1, 0);
00064     set_mode(2);
00065    //script now can't die when the load is preformed..
00066 
00067 init("load_sequence_now graphics\dink\walk\ds-w1- 71 43 38 72 -14 -9 14 9");
00068 init("load_sequence_now graphics\dink\walk\ds-w2- 72 43 37 69 -13 -9 13 9");
00069 init("load_sequence_now graphics\dink\walk\ds-w3- 73 43 38 72 -14 -9 14 9");
00070 init("load_sequence_now graphics\dink\walk\ds-w4- 74 43 38 72 -12 -9 12 9");
00071 
00072 init("load_sequence_now graphics\dink\walk\ds-w6- 76 43 38 72 -13 -9 13 9");
00073 init("load_sequence_now graphics\dink\walk\ds-w7- 77 43 38 72 -12 -10 12 10");
00074 init("load_sequence_now graphics\dink\walk\ds-w8- 78 43 37 69 -13 -9 13 9");
00075 init("load_sequence_now graphics\dink\walk\ds-w9- 79 43 38 72 -14 -9 14 9");
00076 
00077 
00078 init("load_sequence_now graphics\dink\idle\ds-i2- 12 250 33 70 -12 -9 12 9");
00079 init("load_sequence_now graphics\dink\idle\ds-i4- 14 250 30 71 -11 -9 11 9");
00080 init("load_sequence_now graphics\dink\idle\ds-i6- 16 250 36 70 -11 -9 11 9");
00081 init("load_sequence_now graphics\dink\idle\ds-i8- 18 250 32 68 -12 -9 12 9");
00082 
00083 init("load_sequence_now graphics\dink\hit\normal\ds-h2- 102 75 60 72 -19 -9 19 9");
00084 init("load_sequence_now graphics\dink\hit\normal\ds-h4- 104 75 61 73 -19 -10 19 10");
00085 init("load_sequence_now graphics\dink\hit\normal\ds-h6- 106 75 58 71 -18 -10 18 10");
00086 init("load_sequence_now graphics\dink\hit\normal\ds-h8- 108 75 61 71 -19 -10 19 10");
00087 
00088    load_game(&result);
00089   kill_this_task();
00090 }
00091 
00092 void click ( void )
00093 {
00094 sp_brain(1, 0);
00095 load();
00096 sp_brain(1, 13);
00097 if (&result != 11)
00098 Say_xy("`%Try loading a saved game that exists, friend.", 0, 390);
00099 
00100 }