Reply to Re: more trouble with these dang scripts
If you don't have an account, just leave the password field blank.
ok its fixed now
i think it was b/c this needed to be the first line of void touch ( void )
sp_touch_damage(¤t_sprite, 0);
thank you everybody
-rabidwolf9
here's the finished script(may put back in say_stop_npc)
void main ( void )
{
preload_seq(251);
preload_seq(253);
preload_seq(257);
preload_seq(259);
int &wife = create_sprite(435, 200, 16, 251, 4);
sp_script(&wife, "wife");
sp_base_walk(&wife, 250);
sp_timing(&wife, 33);
sp_speed(&wife, 1);
sp_touch_damage(¤t_sprite, -1);
}
void touch ( void )
{
sp_touch_damage(¤t_sprite, 0);
freeze(1);
freeze(&wife);
say_stop("`1 Dink", &wife);
wait(200);
sp_dir(1, 8);
wait(400);
say_stop(" Yes Alyssa?", 1);
wait(400);
say_stop("`1 Will you go to the store and buy some milk?", &wife);
wait(400);
say_stop("`1 We just ran out", &wife);
wait(400);
say_stop(" Anything for you my lovely wife", 1);
wait(400);
sp_dir(1, 2);
unfreeze(1);
unfreeze(&wife);
kill_this_task();
}
i think it was b/c this needed to be the first line of void touch ( void )
sp_touch_damage(¤t_sprite, 0);
thank you everybody
-rabidwolf9
here's the finished script(may put back in say_stop_npc)
void main ( void )
{
preload_seq(251);
preload_seq(253);
preload_seq(257);
preload_seq(259);
int &wife = create_sprite(435, 200, 16, 251, 4);
sp_script(&wife, "wife");
sp_base_walk(&wife, 250);
sp_timing(&wife, 33);
sp_speed(&wife, 1);
sp_touch_damage(¤t_sprite, -1);
}
void touch ( void )
{
sp_touch_damage(¤t_sprite, 0);
freeze(1);
freeze(&wife);
say_stop("`1 Dink", &wife);
wait(200);
sp_dir(1, 8);
wait(400);
say_stop(" Yes Alyssa?", 1);
wait(400);
say_stop("`1 Will you go to the store and buy some milk?", &wife);
wait(400);
say_stop("`1 We just ran out", &wife);
wait(400);
say_stop(" Anything for you my lovely wife", 1);
wait(400);
sp_dir(1, 2);
unfreeze(1);
unfreeze(&wife);
kill_this_task();
}