Reply to Re: Need help, DinkC
If you don't have an account, just leave the password field blank.
HEY!! Wait a minute! It looks like it has no void talk( void ) attached to it. So here's the working one I guess.
void main(void)
{
if (&story == 0)
{
freeze(1);
int &boss1 = create_sprite(330, 257, 16, 587, 1);
sp_base_walk(&boss1, 580);
sp_speed(&boss1, 2);
freeze(&boss1);
void talk( void )
{
Wait(200);
say_stop("Hello there! Are you a wizard?", 1);
Wait(500);
say_stop("`3Yes, and get out of my cave!", &boss1);
Wait(500);
say_stop("Eeh... Wait, could you learn me fireball magic?", 1);
Wait(500);
say_stop("`3Annoying human, I'll teach you the magic the day I'm dead, haha!" ,&boss1);
Wait(1000);
say_stop("Well, thats TODAY!" ,1);
Wait(500);
screenlock(1);
unfreeze(1);
unfreeze(&boss1);
//Boss 1 music.
playmidi("Boss1.mid");
sp_brain(&boss1, 9);
sp_exp(&boss1, 200);
sp_touch_damage(&boss1, 1);
sp_hitpoints(&boss1, 150);
preload_seq(581);
preload_seq(583);
preload_seq(587);
preload_seq(589);
if (random(2,1) == 1)
{
sp_target(&boss1, 1);
}
}
void hit( void )
{
sp_target(&boss1, &enemy_sprite);
//lock on to the guy who just hit us
//playsound
if (random(3,1) == 1)
{
say("`3You'll never find ME, haha!", &boss1);
&save_x = sp_x(&boss1, -1);
&save_y = sp_y(&boss1, -1);
freeze(&boss1);
wait(200);
int &newdubble = create_sprite(&save_x, &save_y, 0, 420, 1);
sp_script(&newdubble, "dubble");
wait(200);
unfreeze(&boss1);
}
}
void main(void)
{
if (&story == 0)
{
freeze(1);
int &boss1 = create_sprite(330, 257, 16, 587, 1);
sp_base_walk(&boss1, 580);
sp_speed(&boss1, 2);
freeze(&boss1);
void talk( void )
{
Wait(200);
say_stop("Hello there! Are you a wizard?", 1);
Wait(500);
say_stop("`3Yes, and get out of my cave!", &boss1);
Wait(500);
say_stop("Eeh... Wait, could you learn me fireball magic?", 1);
Wait(500);
say_stop("`3Annoying human, I'll teach you the magic the day I'm dead, haha!" ,&boss1);
Wait(1000);
say_stop("Well, thats TODAY!" ,1);
Wait(500);
screenlock(1);
unfreeze(1);
unfreeze(&boss1);
//Boss 1 music.
playmidi("Boss1.mid");
sp_brain(&boss1, 9);
sp_exp(&boss1, 200);
sp_touch_damage(&boss1, 1);
sp_hitpoints(&boss1, 150);
preload_seq(581);
preload_seq(583);
preload_seq(587);
preload_seq(589);
if (random(2,1) == 1)
{
sp_target(&boss1, 1);
}
}
void hit( void )
{
sp_target(&boss1, &enemy_sprite);
//lock on to the guy who just hit us
//playsound
if (random(3,1) == 1)
{
say("`3You'll never find ME, haha!", &boss1);
&save_x = sp_x(&boss1, -1);
&save_y = sp_y(&boss1, -1);
freeze(&boss1);
wait(200);
int &newdubble = create_sprite(&save_x, &save_y, 0, 420, 1);
sp_script(&newdubble, "dubble");
wait(200);
unfreeze(&boss1);
}
}