Back to index

freedink-data  1.08.20080920
EN-GS.c
Go to the documentation of this file.
00001 //slayer.. we don't have the death graphics yet, oh well
00002 
00003 void main( void )
00004 {
00005 int &mcounter;
00006 sp_brain(&current_sprite, 16);
00007 sp_speed(&current_sprite, 1);
00008 sp_distance(&current_sprite, 50);
00009 sp_range(&current_sprite, 35);
00010 sp_timing(&current_sprite, 0);
00011 sp_frame_delay(&current_sprite, 55);
00012 sp_exp(&current_sprite, 150);
00013 sp_base_walk(&current_sprite, 800);
00014 sp_base_attack(&current_sprite, 790);
00015 sp_defense(&current_sprite, 2);
00016 sp_strength(&current_sprite, 20);
00017 sp_touch_damage(&current_sprite, 8);
00018 sp_hitpoints(&current_sprite, 60);
00019 preload_seq(792);
00020 preload_seq(794);
00021 preload_seq(796);
00022 preload_seq(798);
00023 preload_seq(805);
00024 
00025 preload_seq(801);
00026 preload_seq(803);
00027 preload_seq(807);
00028 preload_seq(809);
00029 }
00030 
00031 
00032 void hit( void )
00033 {
00034 sp_brain(&current_sprite, 9);
00035 sp_target(&current_sprite, &enemy_sprite);
00036 //lock on to the guy who just hit us
00037 //playsound
00038 playsound(28, 22050,0,&current_sprite, 0);
00039 
00040 }
00041 
00042 void talk( void )
00043 {
00044  int &randy = random(4, 1);
00045  if (&randy == 1)
00046  say("`4Gro'k ki owab dakis gedi!", &current_sprite);
00047  if (&randy == 2)
00048  say("`4Tig glock sigre!", &current_sprite);
00049  if (&randy == 3)  
00050  say("`4Oston tewers inat'l meen o mistary!", &current_sprite);
00051  if (&randy == 4)
00052  say("`4Hoglim dack byork!", &current_sprite);
00053 
00054 }
00055 
00056 
00057 void die( void )
00058 {
00059   int &hold = sp_editor_num(&current_sprite);
00060   if (&hold != 0)
00061   editor_type(&hold, 6); 
00062 }
00063 void attack( void )
00064 {
00065 playsound(27, 22050,0,&current_sprite, 0);
00066 &mcounter = random(4000,0);
00067 sp_attack_wait(&current_sprite, &mcounter);
00068 }
00069 
00070