main(void)1 void main( void )
2 {
3 preload_seq(371);
4 preload_seq(373);
5 int &myrand;
6 sp_brain(¤t_sprite, 0);
7 sp_base_walk(¤t_sprite, 370);
8 sp_speed(¤t_sprite, 2);
9 sp_timing(¤t_sprite, 0);
10 //set starting pic
11
12 sp_pseq(¤t_sprite, 371);
13 sp_pframe(¤t_sprite, 1);
14 }
15
talk(void)16 void talk( void )
17 {
18 freeze(1);
19 choice_start()
20 "Say hi"
21 (&thief == 0) "Ask what he does"
22 (&thief == 1) "Offer to help him out"
23 "Leave"
24 choice_end()
25
26 if (&result == 1)
27 {
28 wait(400);
29 say_stop("Hey, how's it going?", 1);
30 wait(400);
31 say_stop("`2Are you the guy for the job?", ¤t_sprite);
32 wait(400);
33 say_stop("Uh, what job?", 1);
34 wait(400);
35 say_stop("`2Oh, never mind.", ¤t_sprite);
36 say("`2Ahh, where is that guy?!", ¤t_sprite);
37 unfreeze(1);
38 }
39 if (&result == 2)
40 {
41 wait(400);
42 say_stop("So what do you do pal?", 1);
43 wait(400);
44 say_stop("`2Who me?", ¤t_sprite);
45 wait(400);
46 say_stop("Yup, myself, why if you couldn't tell I'm an adventurer.", 1);
47 wait(400);
48 say_stop("`2Hehe, yes well, I'm a ... a .. specialist.", ¤t_sprite);
49 wait(400);
50 say_stop("Oh, what do you specialize in?", 1);
51 wait(400);
52 say_stop("`2Let's just say I help acquire things..", ¤t_sprite);
53 wait(400);
54 say_stop("Ahh, I see, just what are you acquiring now?", 1);
55 wait(400);
56 say_stop("`2Nothing that should interest you.", ¤t_sprite);
57 wait(400);
58 say_stop("`2Now be on your way.", ¤t_sprite);
59 //Set it up
60 &thief = 1;
61 }
62 if (&result == 3)
63 //Helping the guy out!!
64 {
65 wait(400);
66 say_stop("`2You again?", ¤t_sprite);
67 wait(400);
68 say_stop("Whatever you're doing .. I can help you out.", 1);
69 wait(400);
70 say_stop("`2YOU?!?", ¤t_sprite);
71 wait(400);
72 say_stop("`2Are you sure?", ¤t_sprite);
73 wait(400);
74 say_stop("Yeah, I know how to do all sorts of things.", 1);
75 wait(400);
76 say_stop("`2Hmmmmm", ¤t_sprite);
77 wait(400);
78 say_stop("`2Well I guess my other guy's not showing up.", ¤t_sprite);
79 wait(400);
80 say_stop("`2So you're in.", ¤t_sprite);
81 wait(400);
82 say_stop("`2Meet me west of here when you're ready", ¤t_sprite);
83 move_stop(¤t_sprite, 4, 317, 1);
84 move_stop(¤t_sprite, 2, 430, 1);
85 unfreeze(1);
86 &thief = 2;
87 sp_active(¤t_sprite, 0);
88 }
89 unfreeze(1);
90 }
91