The Dink Network

Reply to blackness

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:
 
 
May 27th 2005, 01:11 PM
dragon.gif
in my "last battle" script something is wrong, it is ment to fade as quick as the enemy is killed,but the screen turns black (as it shall do)but you dont get teleported to another screen, here is the script

this is the first script i made, here the screen dosent even turn black, but when i took the talking away the screen turned black atleast
what is wrong?
void main( void )
{
screenlock(1);
int &mcounter;
sp_target(¤t_sprite, 1);
sp_brain(¤t_sprite, 9);
sp_speed(¤t_sprite, 2);
sp_distance(¤t_sprite, 50);
sp_range(¤t_sprite, 35);
sp_timing(¤t_sprite, 0);
sp_frame_delay(¤t_sprite, 55);
sp_exp(¤t_sprite, 120);
sp_base_walk(¤t_sprite, 780);
sp_base_attack(¤t_sprite, 770);
sp_defense(¤t_sprite, 4);
sp_strength(¤t_sprite, 20);
sp_touch_damage(¤t_sprite, 8);
sp_hitpoints(¤t_sprite, 80);
preload_seq(792);
preload_seq(794);
preload_seq(796);
preload_seq(798);
preload_seq(805);

preload_seq(801);
preload_seq(803);
preload_seq(807);
preload_seq(809);
}

void hit( void )
{
sp_brain(¤t_sprite, 9);
sp_target(¤t_sprite, &enemy_sprite);
//lock on to the guy who just hit us
//playsound
playsound(28, 22050,0,¤t_sprite, 0);

}

void talk( void )
{
int &randy = random(4, 1);
if (&randy == 1)
say("`3do you think we are friends?", ¤t_sprite);
if (&randy == 2)
say("`3die, bigwood!", ¤t_sprite);
if (&randy == 3)
say("`3he, he, i will rip out your insides!", ¤t_sprite);
if (&randy == 4)
say("`3THE WORLD IS MINE!", ¤t_sprite);

}

void die( void )
{
say_stop("DIE, WORM!!", 1);
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 6);
screenlock(0);

fade_down();
fill_screen(0);
&player_map = 219;
sp_x(1, 301);
sp_y(1, 107);
script_attach(1000);
load_screen();
draw_screen();
draw_status();
fade_up();

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

stupid script! i was neraly done with my dmod when this problem came loose!