Back to index

freedink-data  1.08.20080920
S1-LTR.c
Go to the documentation of this file.
00001 void main ( void )
00002 {
00003 //this script needs to survive a screen load, lets unattach it from the
00004 //letter
00005 
00006 int &mycur = &current_sprite;
00007 
00008   script_attach(1000);
00009 
00010  //1000 means can't be killed unless we do it, but now &current_sprite
00011  //won't work..
00012 
00013  freeze(1);
00014  &letter = 2;
00015  &story = 6;
00016  wait(2000);
00017  say_stop("`2Dear Dink,", &mycur);
00018  wait(250);
00019  say_stop("`2We've just gotten word of the tragic accident that happened at...", &mycur);
00020  say_stop("`2your home a short while ago.  Needless to say we are shocked.", &mycur);
00021  say_stop("`2This must be a hard time for you, being so young and suffering...", &mycur);
00022  say_stop("`2such a great loss.  You are completely welcome to come and stay...", &mycur);
00023  say_stop("`2with us in Terris for a while, I don't think Jack will mind.", &mycur);
00024 
00025  say_stop("`2Sincerely, Aunt Maria Kneedlewood", &mycur);
00026  wait(500);
00027  say_stop("Hmm... Terris.  I think that is west of here.", 1);
00028  wait(500);
00029  say_stop("Hey!  A map was enclosed!", 1);
00030  wait(500);
00031  &s2-map = 1;
00032  say_stop_xy("`%(Press M or button 6 for map toggle)", 20,380);
00033  fade_down();
00034  fill_screen(0);
00035  //move Dink
00036  &player_map = 439;
00037  sp_x(1, 362);
00038  sp_y(1, 303);
00039  load_screen();
00040  draw_screen();
00041  draw_status();
00042  fade_up();
00043  unfreeze(1);
00044 
00045  kill_this_task();
00046 }