Back to index

freedink-data  1.08.20080920
S1-ROB2.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  //This is the rest of the robbery
00004  int &bad1;
00005  int &bad2;
00006  int &guy;
00007  &bad1 = sp(4);
00008  &bad2 = sp(3);
00009  &guy = sp(5);
00010  int &mcounter;
00011  sp_strength(&bad1, 3);
00012  sp_strength(&bad2, 2);
00013  sp_distance(&bad1, 50);
00014  sp_distance(&bad2, 50);
00015  sp_exp(&bad1, 30);
00016  sp_exp(&bad2, 35);
00017 
00018  freeze(1);
00019  freeze(&bad1);
00020  freeze(&bad2);
00021  freeze(&guy);
00022  //Ok, now start it!
00023  wait(1000);
00024  playmidi("battle.mid");
00025  say_stop("`3Please, I've no money, I'm just traveling light.", &guy);
00026  wait(200);
00027  say_stop("`4We'll be the judge of that, where are you headed?", &bad2);
00028  wait(200);
00029  move(&guy, 6, 455, 0);
00030  say_stop("`3I'm just passing through to Windemere sir.", &guy);
00031  wait(200);
00032  say_stop("Those are Royal Guards, what are they doing out here ...", 1);
00033  wait(200);
00034  say_stop("`4Hah, you still owe us 5 gold pieces for passing through the land.", &bad1);
00035  wait(200);
00036  move(&guy, 4, 400, 0);
00037  say_stop("`3I don't have that much sir.", &guy);
00038  wait(200);
00039  say_stop("I don't remember ever being charged.", 1);
00040  say("`4Ha ha ha ha", &bad1);
00041  say_stop("`4Ha ha ha ha", &bad2);
00042  wait(200);
00043  say("`3Someone, help!", &guy);
00044  //They attack him...
00045  sp_target(&bad1, &guy);
00046  sp_target(&bad2, &guy);
00047  unfreeze(1);
00048  unfreeze(&bad1);
00049  unfreeze(&bad2);
00050  unfreeze(&guy); 
00051 }
00052 
00053 void die( void )
00054 {
00055        &robbed = 1;
00056     &safe = 1;
00057        freeze(&current_sprite);
00058        say("`1Ahhhhhhh", &current_sprite);
00059        wait(400);
00060        sp_active(&current_sprite, 0);
00061 }
00062 
00063 void attack( void )
00064 {
00065 playsound(36, 22050,0,&current_sprite, 0);
00066 &mcounter = random(4000,0);
00067 sp_attack_wait(&current_sprite, &mcounter);
00068 }
00069 
00070