Reply to Re: Story scripts suck
If you don't have an account, just leave the password field blank.
Scratcher, the script I am using is listed above!
Here's the void hit part of it:
void hit( void )
{
int &rcrap = compare_sprite_script(&missle_source, "dam-bomn");
if (&rcrap == 1)
{
//rock just got hit by a sprite with a script named dam-bomn, I'm gonna
//guess it was the bomb.
//remove rocks hardness and sprite
sp_hard(¤t_sprite, 1);
draw_hard_sprite(¤t_sprite);
sp_active(¤t_sprite, 0);
playsound(43, 22050, 0,0,0);
//kill this item so it doesn't show up again for this player
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 1);
}
//minused a bracket there, don't think it was necessary
And about start.c, learnt that the hard way.
<Crying that time>

void hit( void )
{
int &rcrap = compare_sprite_script(&missle_source, "dam-bomn");
if (&rcrap == 1)
{
//rock just got hit by a sprite with a script named dam-bomn, I'm gonna
//guess it was the bomb.
//remove rocks hardness and sprite
sp_hard(¤t_sprite, 1);
draw_hard_sprite(¤t_sprite);
sp_active(¤t_sprite, 0);
playsound(43, 22050, 0,0,0);
//kill this item so it doesn't show up again for this player
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 1);
}
//minused a bracket there, don't think it was necessary
And about start.c, learnt that the hard way.
