Back to index

freedink-data  1.08.20080920
S6-ST1P.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &hi;
00004  &hi = 0;
00005 }
00006 
00007 
00008 void buys3( void)
00009 {
00010 int &junk = free_items();
00011 
00012 
00013 if (&junk < 1)
00014  {
00015          choice_start()
00016         set_y 240
00017         title_start();
00018 You are carrying too much.
00019         title_end();
00020          "Ok"
00021          choice_end()
00022  return;
00023  }
00024 
00025 
00026 if (&gold < 4000)
00027  {
00028          choice_start()
00029         set_y 240
00030         title_start();
00031 You are a little short of cash right now.
00032         title_end();
00033          "Ok"
00034          choice_end()
00035  return;
00036  }
00037 
00038 &gold -= 4000;
00039 add_item("item-sw3",438, 21);
00040 
00041 }
00042 
00043 
00044 
00045 void buyb2( void)
00046 {
00047 int &junk = free_items();
00048 
00049 
00050 if (&junk < 1)
00051  {
00052          choice_start()
00053         set_y 240
00054         title_start();
00055 You are carrying too much.
00056         title_end();
00057          "Ok"
00058          choice_end()
00059  return;
00060  }
00061 
00062 
00063 if (&gold < 5000)
00064  {
00065          choice_start()
00066         set_y 240
00067         title_start();
00068 You are a little short of cash right now.
00069         title_end();
00070          "Ok"
00071          choice_end()
00072  return;
00073  }
00074 
00075 &gold -= 5000;
00076 add_item("item-b2",438, 12);
00077 
00078 }
00079 
00080 
00081 void talk( void )
00082 {
00083  freeze(1);
00084  freeze(&current_sprite);
00085  choice_start()
00086  "Say hi"
00087  "See what she has"
00088  "Leave"
00089  choice_end()
00090   if (&result == 1)
00091   {
00092   if (&story > 14)
00093     {
00094     say_stop("`2I see you are back, adventurer Smallwood.", &current_sprite);
00095    wait(250);
00096    say_stop("I killed Seth.", 1);
00097    wait(250);
00098    say_stop("`2Praise be!  You are a true hero, Dink!", &current_sprite);
00099     unfreeze(1);
00100     unfreeze(&current_sprite);
00101     return;
00102 
00103 
00104     }
00105 
00106    if (&hi == 1)
00107    {
00108     say_stop("`2Please Dink, you must hurry to your friend.", &current_sprite);
00109    wait(250);
00110    say_stop("But how!  Where is he?", 1);
00111    wait(250);
00112    say_stop("`2The portal is very close to here.  You will find it.", &current_sprite);
00113     unfreeze(1);
00114     unfreeze(&current_sprite);
00115     return;
00116    }
00117    say_stop("`2Ah, Dink, I've heard of you.", &current_sprite);
00118    wait(250);
00119    say_stop("`2I didn't think you'd be to these parts so quickly.", &current_sprite);
00120    &hi = 1;
00121    wait(250);
00122    say_stop("Sometimes I amaze even myself.", 1);
00123    wait(500);
00124    say_stop("How've things here been lately?", 1);
00125    wait(250);
00126    say_stop("`2Strange, I've seen a lot of movement out of the darklands.", &current_sprite);
00127    wait(250);
00128    say_stop("`2Seems they're pushing out into the world.", &current_sprite);
00129    wait(250);
00130    say_stop("Well, they can do all they want,", 1);
00131    wait(250);
00132    say_stop("but I have to find Milder!", 1);
00133    wait(250);
00134    say_stop("`2I'm sure time's running out for your friend Dink.", &current_sprite);
00135    wait(250);
00136    say_stop("`2For all we know they could've converted Milder to evil.", &current_sprite);
00137    wait(500);
00138    say_stop("`2Dink, if they keep getting stronger I fear my church", &current_sprite);
00139    wait(250);
00140    say_stop("`2will no longer be able to hold the evil off.", &current_sprite);
00141    wait(250);
00142    say_stop("What is the 'evil' you keep talking about?", 1);
00143    wait(250);
00144    say_stop("`2It is an abomination of nature.  I will not speak of it.", &current_sprite);
00145   }
00146 
00147   if (&result == 2)
00148   {
00149 
00150          choice_start()
00151         set_y 240
00152         set_title_color 2
00153         title_start();
00154 "I only have a few things... power weapons I found near the 'machine'..."
00155         title_end();
00156          "Light Sword - $4000"
00157          "Massive Bow - $5000"
00158          "Leave"
00159          choice_end()
00160 
00161           if (&result == 1)
00162           {
00163            buys3();
00164            unfreeze(&current_sprite);
00165            unfreeze(1);
00166            return;
00167           }
00168 
00169           if (&result == 2)
00170           {
00171            buyb2();
00172            unfreeze(&current_sprite);
00173            unfreeze(1);
00174            return;
00175           }
00176 
00177 
00178    }
00179 
00180 
00181  unfreeze(1);
00182  wait(500);
00183  unfreeze(&current_sprite);
00184 }
00185 
00186 void hit( void )
00187 {
00188  say("Hahaha!!", 1);
00189 }