sephirothff7's Profile
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(¤t_sprite);
say_stop("Hi Mrs. Cornelison.",1);
say_stop("What happened to your house?",1);
say_stop("`4Oh, thank god you are here, Dink.", ¤t_sprite);
say_stop("IT'S BOPO!!",1);
say_stop("`4Oh... well... Bopo, could you please help me.", ¤t_sprite);
say_stop("`4I have a pest problem.",¤t_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.", ¤t_sprite);
say_stop("Ok, i'll do it.",1);
say_stop("`4Great. Just be careful when you go inside.", ¤t_sprite);
&story = 1;
unfreeze(1);
unfreeze(¤t_sprite); return; }
if (&story == 1) { say_stop("`4Good luck.",¤t_sprite) } return; }
if (&story == 2) {
say_stop("`4Oh, I almost forgot, than you Bopo.", ¤t_sprite); }
wait(1000) }
add_item("item-bt" 464, 1) }
} void hit(void)
} say_stop("`4Please stop, I'm just an old lady.", ¤t_sprite); }
}
HERE IS THE ANT SCRIPT:...
//ant brain
void main( void )
{
screenlock(1);
sp_brain(¤t_sprite, 9);
sp_speed(¤t_sprite, 1);
sp_timing(¤t_sprite, 10);
sp_exp(¤t_sprite, 4);
sp_base_walk(¤t_sprite, 130);
sp_base_death(¤t_sprite, 140);
sp_touch_damage(¤t_sprite, 1);
sp_hitpoints(¤t_sprite, 1);
preload_seq(131);
preload_seq(133);
preload_seq(141);
preload_seq(143);
if (random(2,1) == 1) { sp_target(¤t_sprite, 1); }
}
void hit( void )
{
sp_target(¤t_sprite, &enemy_sprite);
playsound(30, 15050, 4000, ¤t_sprite, 0);
//lock on to the guy who just hit us
//playsound
}
void die( void )
{
if (get_sprite_with_this_brain(9, ¤t_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(¤t_sprite); if (&hold != 0) editor_type(&hold, 6);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_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...
HERE'S the script
void talk( void )
{
if (&story == 0)
{
freeze(1);
freeze(¤t_sprite);
say_stop("Hi Mrs. Cornelison.",1);
say_stop("What happened to your house?",1);
say_stop("`4Oh, thank god you are here, Dink.", ¤t_sprite);
say_stop("IT'S BOPO!!",1);
say_stop("`4Oh... well... Bopo, could you please help me.", ¤t_sprite);
say_stop("`4I have a pest problem.",¤t_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.", ¤t_sprite);
say_stop("Ok, i'll do it.",1);
say_stop("`4Great. Just be careful when you go inside.", ¤t_sprite);
&story = 1;
unfreeze(1);
unfreeze(¤t_sprite); return; }
if (&story == 1) { say_stop("`4Good luck.",¤t_sprite) } return; }
if (&story == 2) {
say_stop("`4Oh, I almost forgot, than you Bopo.", ¤t_sprite); }
wait(1000) }
add_item("item-bt" 464, 1) }
} void hit(void)
} say_stop("`4Please stop, I'm just an old lady.", ¤t_sprite); }
}
HERE IS THE ANT SCRIPT:...
//ant brain
void main( void )
{
screenlock(1);
sp_brain(¤t_sprite, 9);
sp_speed(¤t_sprite, 1);
sp_timing(¤t_sprite, 10);
sp_exp(¤t_sprite, 4);
sp_base_walk(¤t_sprite, 130);
sp_base_death(¤t_sprite, 140);
sp_touch_damage(¤t_sprite, 1);
sp_hitpoints(¤t_sprite, 1);
preload_seq(131);
preload_seq(133);
preload_seq(141);
preload_seq(143);
if (random(2,1) == 1) { sp_target(¤t_sprite, 1); }
}
void hit( void )
{
sp_target(¤t_sprite, &enemy_sprite);
playsound(30, 15050, 4000, ¤t_sprite, 0);
//lock on to the guy who just hit us
//playsound
}
void die( void )
{
if (get_sprite_with_this_brain(9, ¤t_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(¤t_sprite); if (&hold != 0) editor_type(&hold, 6);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_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...