Reply to Re: Pine Tree Script please
If you don't have an account, just leave the password field blank.
July 26th 2004, 03:20 PM

MiloBones


Method 1. If you don't have any trees that do something special when burned, just open the file named dam-fire.c (you can find it in the source) and comment (put // before) the following line:
return;
Then save it into your story folder.
Method two: Try adding some "tree burning" lines as your tree's die() proc. You can probably find these lines in the above mention dam-fire.c. Something like:
void die( void )
{
int &hold = sp_editor_num(¤t_sprite);
sp_hard(¤t_sprite, 1);//why???
draw_hard_sprite(¤t_sprite);
if (&hold != 0)
{
editor_type(&hold, 4);
editor_seq(&hold, 20);
editor_frame(&hold, 29);
}
sp_pseq(¤t_sprite, 20);
sp_pframe(¤t_sprite, 29);
sp_hard(¤t_sprite, 0);
draw_hard_sprite(¤t_sprite);
sp_seq(¤t_sprite, 20);
playsound(6, 8000,0,¤t_sprite,0);
}
Someone else might explain this better or more correctly...
return;
Then save it into your story folder.
Method two: Try adding some "tree burning" lines as your tree's die() proc. You can probably find these lines in the above mention dam-fire.c. Something like:
void die( void )
{
int &hold = sp_editor_num(¤t_sprite);
sp_hard(¤t_sprite, 1);//why???
draw_hard_sprite(¤t_sprite);
if (&hold != 0)
{
editor_type(&hold, 4);
editor_seq(&hold, 20);
editor_frame(&hold, 29);
}
sp_pseq(¤t_sprite, 20);
sp_pframe(¤t_sprite, 29);
sp_hard(¤t_sprite, 0);
draw_hard_sprite(¤t_sprite);
sp_seq(¤t_sprite, 20);
playsound(6, 8000,0,¤t_sprite,0);
}
Someone else might explain this better or more correctly...