Back to index

freedink-data  1.08.20080920
Functions
S3-BOWL.c File Reference

Go to the source code of this file.

Functions

void main (void)
void talk (void)

Function Documentation

void main ( void  )

Definition at line 3 of file S3-BOWL.c.

{
 if (&bowlore > 0)
 {
  sp_active(&current_sprite, 0);
  return;
}
 preload_seq(381);
 preload_seq(383);
 preload_seq(385);
 preload_seq(387);
 preload_seq(389);
 sp_base_walk(&current_sprite, 380);
 sp_hitpoints(&current_sprite, 5);
 sp_brain(&current_sprite, 16);
 sp_speed(&current_sprite, 1);
 sp_timing(&current_sprite, 33);
}

Here is the call graph for this function:

void talk ( void  )

Definition at line 22 of file S3-BOWL.c.

{
 freeze(1);
 freeze(&current_sprite);
 choice_start();
        set_y 240
        set_title_color 4
        title_start();
"Hello, friend.  I will teach you bow lore for $1500 gold."
        title_end();
(&bowlore == 0) "Learn bow lore"
"Leave"
 choice_end();

  if (&result == 1)
    {
     if (&gold < 1500)
       {
        say("I don't have enough money!", 1);
       }
       else
       {
        say("`4* YOU LEARN BOW LORE *", 1);
         playsound(43, 22050,0,0,0);
         &bowlore = 1;
         &gold -= 1500;
       }
    }

unfreeze(1);
unfreeze(&current_sprite);


}

Here is the call graph for this function: