The Dink Network

Reply to Another 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, 12:39 PM
fairy.gif
Glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
s1-boss.c
----------
void main( void )
{
int &wiz = create_sprite(470, 200, 9, 581, 1);
sp_speed(&wiz, 1);
sp_base_walk(&wiz, 580);
sp_touch_damage(&wiz, 1);
sp_hitpoints(&wiz, 155);
sp_dir(1, 6);
sp_script(&wiz, "s1-boss1");
}

s1-boss1.c
-----------
void main( void )
{
freeze(1);
freeze(&wiz);
say_stop("I'm going to get all the food you have stolen from me back.", 1);
say_stop("`7Bite me", &wiz);
//and then the batle begins
unfreeze(1);
unfreeze(&wiz);
}

if (random(2,1) == 1)
{
sp_target(&current_sprite, 1);
}

void talk( void )
{
say("`7DIE...", &wiz);
}

void hit( void )
{
sp_target(&current_sprite, &enemy_sprite);

}

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

The spawn thing works here, but the wizard won't talk!