The Dink Network

sephirothff7's Profile

2006-07-23 21:52:51
pq_frog.gif
I want to make it so that when i kill all of the pesky ants in this old lady's house i get special boots.
HERE'S the script

void talk( void )
{
if (&story == 0)
{
freeze(1);
freeze(&current_sprite);
say_stop("Hi Mrs. Cornelison.",1);
say_stop("What happened to your house?",1);
say_stop("`4Oh, thank god you are here, Dink.", &current_sprite);
say_stop("IT'S BOPO!!",1);
say_stop("`4Oh... well... Bopo, could you please help me.", &current_sprite);
say_stop("`4I have a pest problem.",&current_sprite);
say_stop("What's in it for me?",1);
say_stop("`4Oh, well i do have these very nice boots, they used to be my husband's.", &current_sprite);
say_stop("Ok, i'll do it.",1);
say_stop("`4Great. Just be careful when you go inside.", &current_sprite);
&story = 1;
unfreeze(1);
unfreeze(&current_sprite); return; }
if (&story == 1) { say_stop("`4Good luck.",&current_sprite) } return; }

if (&story == 2) {
say_stop("`4Oh, I almost forgot, than you Bopo.", &current_sprite); }
wait(1000) }
add_item("item-bt" 464, 1) }
} void hit(void)
} say_stop("`4Please stop, I'm just an old lady.", &current_sprite); }

}

HERE IS THE ANT SCRIPT:...

//ant brain

void main( void )
{
screenlock(1);
sp_brain(&current_sprite, 9);
sp_speed(&current_sprite, 1);
sp_timing(&current_sprite, 10);
sp_exp(&current_sprite, 4);
sp_base_walk(&current_sprite, 130);
sp_base_death(&current_sprite, 140);
sp_touch_damage(&current_sprite, 1);
sp_hitpoints(&current_sprite, 1);
preload_seq(131);
preload_seq(133);
preload_seq(141);
preload_seq(143);

if (random(2,1) == 1) { sp_target(&current_sprite, 1); }
}

void hit( void )
{
sp_target(&current_sprite, &enemy_sprite);
playsound(30, 15050, 4000, &current_sprite, 0);
//lock on to the guy who just hit us
//playsound
}
void die( void )
{
if (get_sprite_with_this_brain(9, &current_sprite) == 0) { //no more brain 9 monsters here, lets unlock the screen screenlock(0); playsound(43, 22050,0,0,0); } int &hold = sp_editor_num(&current_sprite); if (&hold != 0) editor_type(&hold, 6);

&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);

external("emake","large");
&story = 2;

}

I don't see what im doing wrong...Everytime i talk to her after i kill the ants she just ignores me!The game acts like i don't exist...If you can fix the problem i will thank you in "special thanks" in my credits. PLEASE HELP...