Back to index

freedink-data  1.08.20080920
LRAISE.c
Go to the documentation of this file.
00001 //raise their level
00002 
00003 void raise( void )
00004 {
00005 playsound(33, 22000, 0, 0,0);
00006 script_attach(1000);
00007 
00008 
00009    Playsound(10,22050,0,0,0);
00010 wait(1000);
00011 if (&level < 32)
00012   {
00013 stop_entire_game(1);
00014    &level += 1;
00015         choice_start();
00016         set_y 240
00017         title_start();
00018 YOU ARE NOW LEVEL &level
00019 
00020 You may increase one of your attributes.
00021         title_end();
00022         "Increase Attack"
00023         "Increase Defense"
00024         "Increase Magic"
00025         choice_end();
00026     
00027   if (&result == 1)
00028   {
00029    &strength += 1;
00030   }
00031   if (&result == 2)
00032   {
00033    &defense += 1;
00034   }
00035   if (&result == 3)
00036   {
00037    &magic += 1;
00038   }
00039 
00040    &lifemax += 3;
00041        }
00042 else
00043 {
00044        &exp = 0;
00045        say("What a gyp!", 1);
00046 }
00047 draw_status();
00048 kill_this_task();
00049 }
00050