Back to index

freedink-data  1.08.20080920
S8-GUY.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 sp_hitpoints(&current_sprite, 30);
00004 sp_base_walk(&current_sprite, 370);
00005 preload_seq(371);
00006 preload_seq(373);
00007 preload_seq(375);
00008 preload_seq(377);
00009 preload_seq(379);
00010 sp_speed(&current_sprite, 1);
00011 sp_timing(&current_sprite, 33);
00012 }
00013 
00014 void talk( void )
00015 {
00016 
00017 if (&story < 14)
00018  {
00019  freeze(1);
00020  freeze(&current_sprite);
00021 
00022   say_stop("`5I am working on the most powerful bow in the world!", &current_sprite);
00023   wait(300);
00024   say_stop("Great!  Give it to me now!", 1);
00025   wait(300);
00026   say_stop("`5I'm not finished yet.  Come back later.", &current_sprite);
00027         unfreeze(1);
00028         unfreeze(&current_sprite);
00029         return;
00030  }
00031 
00032 int &mcrap = count_item("item-b3");
00033 
00034  freeze(1);
00035  freeze(&current_sprite);
00036  choice_start();
00037         set_y 240
00038         set_title_color 5
00039         title_start();
00040 "My masterpiece is finished!"
00041         title_end();
00042 (&mcrap == 0) "Buy the FlameBow for $25,000"
00043 "Leave"
00044  choice_end();
00045   if (&result == 1)
00046     {
00047      if (&gold < 25000)
00048        {
00049         say("I don't have enough money!", 1);
00050        }
00051        else
00052        {
00053 
00054 
00055 int &junk = free_items();
00056 
00057 
00058 if (&junk < 1)
00059  {
00060          choice_start()
00061         set_y 240
00062         title_start();
00063 You are carrying too much.
00064         title_end();
00065          "Ok"
00066          choice_end()
00067 unfreeze(1);
00068 unfreeze(&current_sprite);
00069 
00070  return;
00071  }
00072 
00073 
00074         say("`0* FLAMEBOW BOUGHT *", 1);
00075          playsound(43, 22050,0,0,0);
00076          &gold -= 25000;
00077  add_item("item-b3",438, 13);
00078        }
00079     }
00080 
00081 unfreeze(1);
00082 unfreeze(&current_sprite);
00083 
00084 
00085 }
00086 
00087 void hit( void )
00088 {
00089 say("`5Help!!! Murderer!", &current_sprite);
00090 
00091 }
00092 
00093 void die ( void )
00094 {
00095 
00096 //come back in 5 mins
00097 
00098   int &hold = sp_editor_num(&current_sprite);
00099   if (&hold != 0)
00100   editor_type(&hold, 6); 
00101 
00102 }