main(void)1 void main ( void )
2 {
3 //this script needs to survive a screen load, lets unattach it from the
4 //letter
5 
6 int &mycur = &current_sprite;
7 
8   script_attach(1000);
9 
10  //1000 means can't be killed unless we do it, but now &current_sprite
11  //won't work..
12 
13  freeze(1);
14  &letter = 2;
15  &story = 6;
16  wait(2000);
17  say_stop("`2Dear Dink,", &mycur);
18  wait(250);
19  say_stop("`2We've just gotten word of the tragic accident that happened at...", &mycur);
20  say_stop("`2your home a short while ago.  Needless to say we are shocked.", &mycur);
21  say_stop("`2This must be a hard time for you, being so young and suffering...", &mycur);
22  say_stop("`2such a great loss.  You are completely welcome to come and stay...", &mycur);
23  say_stop("`2with us in Terris for a while, I don't think Jack will mind.", &mycur);
24 
25  say_stop("`2Sincerely, Aunt Maria Kneedlewood", &mycur);
26  wait(500);
27  say_stop("Hmm... Terris.  I think that is west of here.", 1);
28  wait(500);
29  say_stop("Hey!  A map was enclosed!", 1);
30  wait(500);
31  &s2-map = 1;
32  say_stop_xy("`%(Press M or button 6 for map toggle)", 20,380);
33  fade_down();
34  fill_screen(0);
35  //move Dink
36  &player_map = 439;
37  sp_x(1, 362);
38  sp_y(1, 303);
39  load_screen();
40  draw_screen();
41  draw_status();
42  fade_up();
43  unfreeze(1);
44 
45  kill_this_task();
46 }
47