Back to index

freedink-data  1.08.20080920
S3-BH.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &guy;
00004  int &what;
00005  &what = random(3,1);
00006  //Spawn the guy...
00007  &guy = create_sprite(258, 146, 0, 0, 0);
00008  sp_brain(&guy, 0);
00009  sp_base_walk(&guy, 410);
00010  sp_speed(&guy, 1);
00011  sp_timing(&guy, 0);
00012  //set starting pic
00013  sp_pseq(&guy, 417);
00014  sp_pframe(&guy, 1);
00015  //Coversation
00016  freeze(1);
00017  freeze(&guy);
00018  move_stop(1, 8, 222, 1);
00019  move_stop(&guy, 3, 265, 1);
00020  wait(250);
00021  if (&what == 1)
00022  {
00023   say_stop("`9Can I HELP you?", &guy);
00024   wait(250);
00025   say_stop("Uhh ... maybe.", 1);
00026   wait(1000);
00027   say_stop("`9Yeah well, what the hell are you doing??", &guy);
00028   wait(250);
00029   say_stop("What do you mean?", 1);
00030   wait(250);
00031   say_stop("`9I mean you just barging in here, no knocking, nothing!", &guy);
00032   say_stop("`9What's with that?", &guy);
00033   wait(500);
00034   sp_dir(1, 2);
00035   wait(500);
00036   sp_dir(1, 8);
00037   wait(1000);
00038   say_stop("And there's like ... something WRONG with that?", 1);
00039   wait(250);
00040   say_stop("`9YES, now get the HELL OUT!!", &guy);
00041  }
00042  if (&what == 2)
00043  {
00044   say_stop("`9Can I HELP you?", &guy);
00045   wait(250);
00046   say_stop("Nope, just looking through houses and stuff.", 1);
00047   wait(750);
00048   say_stop("`9You know, you've got a lot of nerve.", &guy);
00049   wait(250);
00050   say_stop("Yea whatever ...", 1);
00051   wait(250);
00052   say_stop("`9Hmmmph.", &guy);
00053   wait(250);
00054   say_stop("Hey old man, the funeral house called ...", 1);
00055   say_stop("they're ready for you now!", 1);
00056   wait(250);
00057   say_stop("`9WHAT, now get OUT!!", &guy);
00058  }
00059  if (&what == 3)
00060  {
00061   say_stop("`9What do you want?", &guy);
00062   wait(250);
00063   say_stop("I've come for your daughter.", 1);
00064   wait(250);
00065   say_stop("`9Just ... just please leave.", &guy);
00066  }
00067  //Leave.
00068  unfreeze(1);
00069  move_stop(1, 2, 640, 0);
00070   unfreeze(&guy);
00071 }