The Dink Network

Reply to Re: Need Some Help for my First DMOD

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:
 
 
July 10th 2004, 10:33 PM
slayer.gif
Astral
Peasant He/Him
 
Hi I made a script and I have some problem whit it...

here is it

void main( void )
{
freeze(1);
freeze(&current_sprite);
stopmidi("9.mid");
say_stop(" Bla bla bla!",1);
say_stop("`5 Bla bla bla",&current_sprite);
unfreeze(1);
unfreeze(&current_sprite);
playmidi("2.mid");

screenlock(1);
int &mcounter;
sp_brain(&current_sprite, 9);
sp_speed(&current_sprite, 5);
sp_distance(&current_sprite, 60);
sp_range(&current_sprite, 45);
sp_frame_delay(&current_sprite, 45);
sp_timing(&current_sprite, 0);
sp_exp(&current_sprite, 0);
sp_base_walk(&current_sprite, 640);
//sp_base_death(&current_sprite, 680);
sp_base_attack(&current_sprite, 630);
sp_defense(&current_sprite, 2);
sp_strength(&current_sprite, 15);
sp_touch_damage(&current_sprite, 8);
sp_hitpoints(&current_sprite, 1000);
preload_seq(632);
preload_seq(634);
preload_seq(636);
preload_seq(638);

preload_seq(641);
preload_seq(643);
preload_seq(647);
preload_seq(649);
}

void hit( void )
{
sp_target(&current_sprite, &enemy_sprite);
playsound(28, 22050,0,&current_sprite, 0);
}

void die( void )
{
int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
editor_type(&hold, 2);
editor_seq(&hold, 645);
editor_frame(&hold, 1);
&save_x = sp_x(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);
}
{
stopmidi(2);
playmidi("12.mid");
freeze(1);
freeze(&current_sprite);
say_stop("`5 Bla bla bla",&current_sprite);
say_stop(" bla bla bla",1);
unfreeze(1);
unfreeze(&current_sprite);
}

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

It a boss and when i enter the screen i talk whit it after we fight and when he die the music change and dink stay there not moving but i want him to talk whit the sprite...

What I'm doing wrong?
---------------------------------------
And for the credit i dint test it for now...
But thank!