Problems,problems, problems.. Need help
Hi.. What's wrong with this script? The tree won't burn. Treeburn should do it, and it works 100% sure. So problem must be in this script. Also the tree- globals are allright.
Please help.
//The tree blocking your way
void main( void )
{
sp_hard(¤t_sprite, 0);
draw_hard_map();
}
void talk( void )
{
if (&tree == 1)
{
say_stop("i need to do something for this tree!", 1);
return;
}
if (&tree == 4)
{
say_stop("Your days are over, tree..", 1);
return;
}
if (&tree > 4)
{
say_stop("How does it feel to be burned up? Haw haw!", 1);
return;
}
if (&tree == 0)
{
freeze(1);
say_stop("When the hell did this tree pop up in here!?", 1);
wait(500);
say_stop("It's blocking my way to the dock, ", 1);
say_stop("i need to do something!", 1);
&tree = 1;
unfreeze(1);
return;
}
}
void hit( void )
{
int &fireball = compare_magic("item-fb");
if (&fireball == 1)
{
sp_script(¤t_sprite, "s1-treeburn");
return;
}
if (&tree > 4)
{
say_stop("Loser!", 1);
return;
}
if (&tree < 4 )
{
say_stop("Why won't you just DIE!?!", 1);
}
}
Please help.
//The tree blocking your way
void main( void )
{
sp_hard(¤t_sprite, 0);
draw_hard_map();
}
void talk( void )
{
if (&tree == 1)
{
say_stop("i need to do something for this tree!", 1);
return;
}
if (&tree == 4)
{
say_stop("Your days are over, tree..", 1);
return;
}
if (&tree > 4)
{
say_stop("How does it feel to be burned up? Haw haw!", 1);
return;
}
if (&tree == 0)
{
freeze(1);
say_stop("When the hell did this tree pop up in here!?", 1);
wait(500);
say_stop("It's blocking my way to the dock, ", 1);
say_stop("i need to do something!", 1);
&tree = 1;
unfreeze(1);
return;
}
}
void hit( void )
{
int &fireball = compare_magic("item-fb");
if (&fireball == 1)
{
sp_script(¤t_sprite, "s1-treeburn");
return;
}
if (&tree > 4)
{
say_stop("Loser!", 1);
return;
}
if (&tree < 4 )
{
say_stop("Why won't you just DIE!?!", 1);
}
}