Back to index

freedink-data  1.08.20080920
S5-ST1.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003 
00004 if (&story > 11)
00005 {
00006  //Script for the weapons shop in the Dragon Town on Joppa
00007  preload_seq(411);
00008  preload_seq(413);
00009  preload_seq(417);
00010  preload_seq(419);
00011  int &what;
00012  int &pep;
00013  &what = random(2, 1);
00014  if (&what == 1)
00015  {
00016   &pep = create_sprite(196, 118, 0, 0, 0);
00017  }
00018  if (&what == 2)
00019  {
00020   &pep = create_sprite(443, 176, 0, 0, 0);
00021  }
00022  sp_brain(&pep, 16);
00023  sp_base_walk(&pep, 410);
00024  sp_speed(&pep, 1);
00025  sp_timing(&pep, 0);
00026  //set starting pic
00027  sp_pseq(&pep, 411);
00028  sp_pframe(&pep, 1);
00029  sp_script(&pep, "s5-st1p");
00030 
00031  }
00032 }