The Dink Network

Reply to Re: Script problem.

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 2nd 2006, 11:09 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Is &wiz the boss? Because bossdie.c only spawns when &current_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...", &current_sprite);
}

void hit( void )
{
sp_target(&current_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(&current_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(&current_sprite, &enemy_sprite);

}

void die( void )
{
spawn("bossdie");
}
}

From this script.