Back to index

freedink-data  1.08.20080920
S3-GOB.c
Go to the documentation of this file.
00001 //Goblin George
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_timing(&current_sprite, 66);
00010 sp_exp(&current_sprite, 50);
00011 sp_base_walk(&current_sprite, 760);
00012 sp_defense(&current_sprite, 2);
00013 sp_hitpoints(&current_sprite, 40);
00014 preload_seq(765);
00015 preload_seq(761);
00016 preload_seq(763);
00017 preload_seq(767);
00018 preload_seq(769);
00019 wait(3500);
00020 
00021 say("`6heeloo, freen.  We kan took tegether?", &current_sprite);
00022 }
00023 
00024 void hit( void )
00025 {
00026 playsound(28, 22050,0,&current_sprite, 0);
00027 &mcounter = random(3, 1);
00028 sp_frame_delay(&current_sprite, 30);
00029 sp_timing(&current_sprite, 0);
00030 sp_speed(&current_sprite, 2);
00031 sp_brain(&current_sprite, 9);
00032 if (&mcounter == 1)
00033   say("`6osh!  Puheaze hooman! We chan bey freens!", &current_sprite);
00034 
00035 if (&mcounter == 2)
00036   say("`6doon hort meeee!", &current_sprite);
00037 
00038 if (&mcounter == 3)
00039   say("`6i won oose vilens!", &current_sprite);
00040 
00041 }
00042 
00043 void die( void )
00044 {
00045   int &hold = sp_editor_num(&current_sprite);
00046   if (&hold != 0)
00047   editor_type(&hold, 1); 
00048   say("Let that be a clear message to his people.  Haw!", 1);
00049 }
00050 void talk( void )
00051 {
00052         freeze(&current_sprite);
00053         freeze(1);
00054 
00055  choice_start()
00056  "Ask the Goblin's name"
00057  "Ask what he is doing way out here"
00058  "Ask about the Goblin Sanctuary"
00059  "Leave"
00060  choice_end()
00061 
00062   if (&result == 1)
00063    {
00064     say_stop("What is your name, Goblin?", 1);
00065     wait(500);
00066     say_stop("`6my nam is george.  whe kin bey gud frins?", &current_sprite);
00067     wait(500);
00068     say_stop("I don't understand a thing you're saying.", 1);
00069    }
00070 
00071 
00072   if (&result == 2)
00073    {
00074     say_stop("Say, why aren't you in the Goblin sanctuary?", 1);
00075     wait(500);
00076     say_stop("`6i wans tu leaf weth hoomankind.", &current_sprite);
00077     wait(500);
00078     say_stop("Many people are afraid of goblins, you know.", 1);
00079     wait(500);
00080     say_stop("`6george is hoomankind.", &current_sprite); 
00081     wait(500);
00082     say_stop("Ah, I see.  Good luck to you.", 1);
00083    }
00084 
00085   if (&result == 3)
00086    {
00087     say_stop("So what's with that Goblin Sanctuary place?", 1);
00088     wait(500);
00089     say_stop("`6they ar BAD.  they can oonly anderstund ONE theng.", &current_sprite);
00090     wait(500);
00091     say_stop("And just what thing is that?  I may need to know this.", 1);
00092     wait(500);
00093     say_stop("`6voilense.  too summon mog yoo mus KILL many guuards.", &current_sprite); 
00094     wait(500);
00095     say_stop("Ah.  I'm not entirely sure who Mog is but..uh thanks.", 1);
00096    }
00097 
00098 
00099 unfreeze(&current_sprite);
00100 unfreeze(1);
00101 
00102  
00103 
00104 }
00105