The Dink Network

Reply to Re: more trouble with these dang scripts

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 25th 2005, 09:27 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
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(&current_sprite, -1);

}

void touch ( void )
{
sp_touch_damage(&current_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();
}