Back to index

freedink-data  1.08.20080920
S1-MH-F.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 }
00004 
00005 
00006 void talk( void )
00007 {
00008    if (&wizard_see > 3)
00009    {
00010     return;
00011    }
00012  freeze(1);
00013  say_stop("Hey, it's a scroll from Martridge!", 1);
00014  say_stop("Let's see ...", 1);
00015  wait(200);
00016  say_stop("`0Dear Dink,", &current_sprite);
00017  say_stop("`0If you're able to see this then it means you", &current_sprite);
00018  say_stop("`0truly do possess the ability for magic.", &current_sprite);
00019  wait(200);
00020  say_stop("`0I unfortunately have been called away and cannot", &current_sprite);
00021  say_stop("`0instruct you any further.  But there are many", &current_sprite);
00022  say_stop("`0teachers out there, you will find one and further", &current_sprite);
00023  say_stop("`0your training.", &current_sprite);
00024  wait(200);
00025  say_stop("`0There are 200 gold pieces enclosed, spend them wisely.", &current_sprite);
00026  &gold += 200;
00027  wait(200);
00028  say_stop("`0For now I leave you with this, your first spell.", &current_sprite);
00029  say_stop("`0Enjoy it Dink, you've earned it.", &current_sprite);
00030  wait(200);
00031  say_stop("All right, my first spell! Maybe I can burn down some trees...", 1);
00032  wait(200);
00033    script_attach(1000);
00034  
00035  Playsound(22,22050,0,0,0);
00036  &wizard_see = 4;
00037  sp_brain_parm(&current_sprite, 5);
00038  sp_brain(&current_sprite, 12); 
00039  sp_touch_damage(&current_sprite, 0);
00040  sp_timing(&current_sprite, 0);
00041  &magic += 1;
00042  add_magic("item-fb",437, 1);
00043  say_stop("I now have fireball magic!", 1);
00044 
00045  unfreeze(1);
00046 kill_this_task();
00047 }