Reply to Re: Story scripts suck
If you don't have an account, just leave the password field blank.
Here's the full script (in case I made nay mistakes in the "void main ( void )" thing):
void main( void )
void talk( void )
{
say("Hmmmm, maybe I can destroy this rock...", 1);
}
void hit( void )
{
say("Line 1.", 1);
int &rcrap = compare_sprite_script(&missle_source, "dam-bomn");
//Got rid of int crap here
say("Line 2.", 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
say("Line 3.", 1);
sp_hard(¤t_sprite, 1);
say("Line 4.", 1);
draw_hard_sprite(¤t_sprite);
say("Line 5.", 1);
sp_active(¤t_sprite, 0);
say("Line 6.", 1);
playsound(43, 22050, 0,0,0);
say("Line 7.", 1);
//kill this item so it doesn't show up again for this player
if (&hold != 0)
say("Line 8.", 1);
{
say("Line 9.", 1);
editor_type(&hold, 1);
}
void main( void )
void talk( void )
{
say("Hmmmm, maybe I can destroy this rock...", 1);
}
void hit( void )
{
say("Line 1.", 1);
int &rcrap = compare_sprite_script(&missle_source, "dam-bomn");
//Got rid of int crap here
say("Line 2.", 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
say("Line 3.", 1);
sp_hard(¤t_sprite, 1);
say("Line 4.", 1);
draw_hard_sprite(¤t_sprite);
say("Line 5.", 1);
sp_active(¤t_sprite, 0);
say("Line 6.", 1);
playsound(43, 22050, 0,0,0);
say("Line 7.", 1);
//kill this item so it doesn't show up again for this player
if (&hold != 0)
say("Line 8.", 1);
{
say("Line 9.", 1);
editor_type(&hold, 1);
}