Back to index

freedink-data  1.08.20080920
S2-RYAN3.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &crap;
00004  int &jcrap;
00005  sp_brain(&current_sprite, 0);
00006  sp_base_walk(&current_sprite, 370);
00007  sp_speed(&current_sprite, 2);
00008  sp_timing(&current_sprite, 0);
00009 //set starting pic
00010  sp_pseq(&current_sprite, 377);
00011  sp_pframe(&current_sprite, 1);
00012  //Ok Go
00013  freeze(1);
00014  move_stop(1, 8, 375, 1);
00015  move_stop(1, 4, 300, 1);
00016  move_stop(1, 8, 350, 1);
00017  move_stop(&current_sprite, 8, 330, 1);
00018  //playmidi("mystery.mid");
00019  say_stop("`2Ok, it's up here", &current_sprite);
00020  move_stop(&current_sprite, 8, 200, 1);
00021  say_stop("`2Follow me...", &current_sprite);
00022  move_stop(&current_sprite, 6, 399, 1);
00023  move_stop(&current_sprite, 8, 165, 1);
00024  playsound(19, 22052, 0, 0, 0);
00025  wait(100);
00026  playsound(19, 44102, 0, 0, 0);
00027  wait(100);
00028  playsound(19, 44102, 0, 0, 0);
00029  say("`2Now if I can just pick this lock...", &current_sprite);
00030  move_stop(1, 8, 190, 1);
00031  move_stop(1, 6, 350, 1);
00032  say_stop("What are we doing?", 1);
00033  playsound(19, 44102, 0, 0, 0);
00034  wait(100);
00035  playsound(19, 44102, 0, 0, 0);
00036  say_stop("`2Just one more second...", &current_sprite);
00037  playmidi("battle.mid");
00038  //build guards
00039  preload_seq(291);
00040  preload_seq(293);
00041  preload_seq(297);
00042  preload_seq(299);
00043  preload_seq(722);
00044  preload_seq(724);
00045  preload_seq(725);
00046  preload_seq(726);
00047  &crap = create_sprite(380,450, 9, 0, 0);
00048  freeze(&crap);
00049  sp_base_walk(&crap, 290);
00050  sp_base_attack(&crap, 720); 
00051  sp_speed(&crap, 1);
00052  sp_strength(&crap, 10);
00053  sp_touch_damage(&crap, 2);
00054  sp_timing(&crap, 0);
00055  move(&crap, 7,250, 1);
00056  sp_target(&crap, 1);
00057  sp_hitpoints(&crap, 40);
00058  &jcrap = create_sprite(280,450, 9, 0, 0);
00059  freeze(&jcrap);
00060  sp_base_walk(&jcrap, 290);
00061  sp_base_attack(&jcrap, 720); 
00062  sp_strength(&jcrap, 10);
00063  sp_distance(&crap, 50);
00064 
00065  sp_touch_damage(&jcrap, 2);
00066 
00067  sp_speed(&jcrap, 1);
00068  sp_timing(&jcrap, 0);
00069  move_stop(&jcrap, 9,400, 1);
00070  sp_distance(&jcrap, 50);
00071  sp_target(&jcrap, 1);
00072  sp_hitpoints(&jcrap, 40);
00073  say_stop("`2Oh no, guards!!  Run for it!", &current_sprite);
00074  wait(250);
00075  sp_dir(1, 2);
00076  &thief = 3;
00077  say_stop("This ain't good.", 1);
00078  unfreeze(1);
00079  unfreeze(&jcrap);
00080  unfreeze(&crap);
00081  move_stop(&current_sprite, 6, 700, 1);
00082  sp_active(&current_sprite, 0);
00083 }