The Dink Network

Reply to Re: cutscene with several monsters

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:
 
 
August 13th 2009, 03:58 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Count brackets. You have 6 opening and 7 closing brackets, so something is wrong.

void main( void )
{
if (&story == 6)
{
freeze(1)
freeze(&current_sprite)
say_stop("`5blah blah", &current_sprite);
say_stop("blah blah", 1);
say_stop("`blah blah blah. blah blah", &current_sprite);
say_stop("blah?", 1);
say_stop("`5blah blah blah", &current_sprite);
say_stop("blah blah", 1);
say_stop("`blah blah blah blah blah", &current_sprite);
say_stop("blah blah blah blah", 1);
say_stop("`5blah blah blah. call other monsters here!", &current_sprite);

int &monster1 = create_sprite(900, 080, 9, 613, 1);
sp_base_walk(&monster1, 610);
sp_speed(&monster1, 1);
sp_script(&monster1, "monster");
move_stop(&monster1, 4, 425, 1);
freeze(&monster1);

int &monster2 = create_sprite(900, 220, 9, 611, 1);
sp_base_walk(&monster2, 610);
sp_speed(&monster2, 1);
sp_script(&monster2, "monster");
move_stop(&monster2, 4, 425, 1);
freeze(&monster2);

say_stop("blah blah", 1)
say_stop("`5blah blah blah!", &current_sprite);

unfreeze(&current_sprite);
unfreeze(&monster1);
unfreeze(&monster2);
unfreeze(1);

sp_target(&current_sprite, 1);
sp_target(&monster1, 1);
sp_target(&monster2, 1);

}
////////////////////////////////////////////////////
//Here's the bracket you need to remove:
//(The rest of the main procedure is being ignored!)
}

//can't get out of screen until this dude is DEAD
screenlock(1);
int &mcounter;
sp_brain(&current_sprite, 9);
sp_speed(&current_sprite, 2);
sp_nohit(&current_sprite, 0);
sp_distance(&current_sprite, 50);
sp_timing(&current_sprite, 33);
sp_exp(&current_sprite, 500);
sp_base_walk(&current_sprite, 610);
sp_base_death(&current_sprite, 550);
sp_base_attack(&current_sprite, 620);
sp_defense(&current_sprite, 6);
sp_strength(&current_sprite, 12);
sp_touch_damage(&current_sprite, 10);
sp_hitpoints(&current_sprite, 250);
preload_seq(531);
preload_seq(533);
preload_seq(537);
preload_seq(539);
preload_seq(551);
preload_seq(553);
preload_seq(557);
preload_seq(559);

preload_seq(542);
preload_seq(544);
preload_seq(546);
preload_seq(548);

}

void hit( void )
{
playsound(29, 22050,0,&current_sprite, 0);

sp_target(&current_sprite, &enemy_sprite);
//lock on to the guy who just hit us
//playsound

}

void die( void )
{

if (get_sprite_with_this_brain(9, &current_sprite) == 0)
{
//no more brain 9 monsters here, lets unlock the screen

screenlock(0);
playsound(43, 22050,0,0,0);

}

int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
editor_type(&hold, 6);

&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);
external("emake","medium");
&story = 7
}

void attack( void )
{
playsound(31, 22050,0,&current_sprite, 0);
&mcounter = random(4000,0);
sp_attack_wait(&current_sprite, &mcounter);
&story = 7
}