Back to index

freedink-data  1.08.20080920
S2-RYANT.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 preload_seq(371);
00004 preload_seq(373);
00005 int &myrand;
00006 sp_brain(&current_sprite, 0);
00007 sp_base_walk(&current_sprite, 370);
00008 sp_speed(&current_sprite, 2);
00009 sp_timing(&current_sprite, 0);
00010 //set starting pic
00011 
00012 sp_pseq(&current_sprite, 371);
00013 sp_pframe(&current_sprite, 1);
00014 }
00015 
00016 void talk( void )
00017 {
00018  freeze(1);
00019  choice_start()
00020  "Say hi"
00021 (&thief == 0) "Ask what he does"
00022 (&thief == 1) "Offer to help him out"
00023  "Leave"
00024  choice_end()
00025 
00026  if (&result == 1)
00027  {
00028   wait(400);
00029   say_stop("Hey, how's it going?", 1);
00030   wait(400);
00031   say_stop("`2Are you the guy for the job?", &current_sprite);
00032   wait(400);
00033   say_stop("Uh, what job?", 1);
00034   wait(400);
00035   say_stop("`2Oh, never mind.", &current_sprite);
00036   say("`2Ahh, where is that guy?!", &current_sprite);
00037   unfreeze(1);
00038  }
00039  if (&result == 2)
00040  {
00041   wait(400);
00042   say_stop("So what do you do pal?", 1);
00043   wait(400);
00044   say_stop("`2Who me?", &current_sprite);
00045   wait(400);
00046   say_stop("Yup, myself, why if you couldn't tell I'm an adventurer.", 1);
00047   wait(400);
00048   say_stop("`2Hehe, yes well, I'm a ... a .. specialist.", &current_sprite);
00049   wait(400);
00050   say_stop("Oh, what do you specialize in?", 1);
00051   wait(400);
00052   say_stop("`2Let's just say I help acquire things..", &current_sprite);
00053   wait(400);
00054   say_stop("Ahh, I see, just what are you acquiring now?", 1);
00055   wait(400);
00056   say_stop("`2Nothing that should interest you.", &current_sprite);
00057   wait(400);
00058   say_stop("`2Now be on your way.", &current_sprite);
00059   //Set it up
00060   &thief = 1;
00061  }
00062  if (&result == 3)
00063  //Helping the guy out!!
00064  {
00065   wait(400);
00066   say_stop("`2You again?", &current_sprite);
00067   wait(400);
00068   say_stop("Whatever you're doing .. I can help you out.", 1);
00069   wait(400);
00070   say_stop("`2YOU?!?", &current_sprite);
00071   wait(400);
00072   say_stop("`2Are you sure?", &current_sprite);
00073   wait(400);
00074   say_stop("Yeah, I know how to do all sorts of things.", 1);
00075   wait(400);
00076   say_stop("`2Hmmmmm", &current_sprite);
00077   wait(400);
00078   say_stop("`2Well I guess my other guy's not showing up.", &current_sprite);
00079   wait(400);
00080   say_stop("`2So you're in.", &current_sprite);
00081   wait(400);
00082   say_stop("`2Meet me west of here when you're ready", &current_sprite);
00083   move_stop(&current_sprite, 4, 317, 1);
00084   move_stop(&current_sprite, 2, 430, 1);
00085   unfreeze(1);                                         
00086   &thief = 2;
00087   sp_active(&current_sprite, 0);
00088  }
00089 unfreeze(1);                                         
00090 }