Reply to Re: Script problem.
If you don't have an account, just leave the password field blank.
Is &wiz the boss? Because bossdie.c only spawns when ¤t_sprite dies. Nothing happens if &wiz dies, because &wiz doesn't have a script.
Make a new script with this (I'll call it boss.c):
void talk( void )
{
say("`7DIE...", ¤t_sprite);
}
void hit( void )
{
sp_target(¤t_sprite, &enemy_sprite);
}
void die( void )
{
spawn("bossdie");
}
And before "//and then the batle begins", add
sp_script(&wiz, "boss");
Next up: Change
if (random(2,1) == 1)
{
sp_target(¤t_sprite, 1);
}
to
if (random(2,1) == 1)
{
sp_target(&wiz, 1);
}
}
and remove
void talk( void )
{
say("`7DIE...", &wiz);
}
void hit( void )
{
sp_target(¤t_sprite, &enemy_sprite);
}
void die( void )
{
spawn("bossdie");
}
}
From this script.
Make a new script with this (I'll call it boss.c):
void talk( void )
{
say("`7DIE...", ¤t_sprite);
}
void hit( void )
{
sp_target(¤t_sprite, &enemy_sprite);
}
void die( void )
{
spawn("bossdie");
}
And before "//and then the batle begins", add
sp_script(&wiz, "boss");
Next up: Change
if (random(2,1) == 1)
{
sp_target(¤t_sprite, 1);
}
to
if (random(2,1) == 1)
{
sp_target(&wiz, 1);
}
}
and remove
void talk( void )
{
say("`7DIE...", &wiz);
}
void hit( void )
{
sp_target(¤t_sprite, &enemy_sprite);
}
void die( void )
{
spawn("bossdie");
}
}
From this script.