Reply to Re: Burnin trees
If you don't have an account, just leave the password field blank.
You shouldn't have to modify the hellfire script (dam-sfb.c) at all, or give the trees special scripts to make them burnable. In fact, giving a script to a tree will make it so you can't burn it (and might cause your problem with hellfire killing the hardness and not playing the sequence). But you do have to change the fireball script (dam-fire.c) like so:
//dam-fire.c (normal fireball)
void main( void )
{
int &mcrap;
int &scrap;
int &junk;
}
void damage( void )
{
playsound(18, 8000,0,0,0);
&scrap = &current_sprite;
kill_shadow(&scrap);
sp_seq(&scrap, 70);
sp_pseq(&scrap, 70);
sp_frame(&scrap, 1);
sp_brain(&scrap, 7);
&mcrap = sp_y(&scrap, -1);
&mcrap -= 35;
sp_y(&scrap, &mcrap);
&mcrap = sp_pseq(&missile_target, -1);
&scrap = sp_pframe(&missile_target, -1);
if (&mcrap == 32)
{
if (&scrap == 1)
{
//they hit a tree, lets taunt the player
say("HA! Your puny magic can't hurt me!",&current_sprite);
}
}
}
//dam-fire.c (normal fireball)
void main( void )
{
int &mcrap;
int &scrap;
int &junk;
}
void damage( void )
{
playsound(18, 8000,0,0,0);
&scrap = &current_sprite;
kill_shadow(&scrap);
sp_seq(&scrap, 70);
sp_pseq(&scrap, 70);
sp_frame(&scrap, 1);
sp_brain(&scrap, 7);
&mcrap = sp_y(&scrap, -1);
&mcrap -= 35;
sp_y(&scrap, &mcrap);
&mcrap = sp_pseq(&missile_target, -1);
&scrap = sp_pframe(&missile_target, -1);
if (&mcrap == 32)
{
if (&scrap == 1)
{
//they hit a tree, lets taunt the player
say("HA! Your puny magic can't hurt me!",&current_sprite);
}
}
}