Back to index

freedink-data  1.08.20080920
SAVEBOT.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 sp_seq(&current_sprite, 449);
00004 sp_sound(&current_sprite, 34);
00005 sp_brain(&current_sprite, 6);
00006 sp_hitpoints(&current_sprite, 0);
00007 }
00008 
00009 void hit( void )
00010 {
00011  say("Die, strange machine that doesn't belong here!", 1);
00012 }
00013 
00014 void talk( void )
00015 {
00016 Playsound(18,22050,0,0,0);
00017 
00018        freeze(1);
00019         choice_start();
00020         "Save your game"
00021         "Leave the strange machine"
00022         choice_end();
00023          unfreeze(1);
00024 
00025         if (&result == 2)
00026         {
00027          unfreeze(1);
00028          return;
00029         }
00030         choice_start();
00031         "&savegameinfo"
00032         "&savegameinfo"
00033         "&savegameinfo"
00034         "&savegameinfo" 
00035         "&savegameinfo" 
00036         "&savegameinfo" 
00037         "&savegameinfo" 
00038         "&savegameinfo" 
00039         "&savegameinfo" 
00040         "&savegameinfo" 
00041          "Nevermind"
00042         choice_end();
00043 
00044   unfreeze(1);
00045 
00046   if (&result < 11)
00047  {
00048   save_game(&result);
00049   say_xy("`%Game saved", 1, 30);
00050   }
00051 
00052 }