The Dink Network

Reply to Re: i could use some help

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:
 
 
June 2nd 2008, 08:33 PM
pq_skull.gif
this script doesnt work cant figure out why just keeps killing me
whats going wrong here

//script for hole of death

void main( void )
{
sp_touch_damage(&current_sprite, -1);
sp_nohit(&current_sprite, 1);
sp_sound(64, 22050, 0, &current_sprite, 1);
}

void talk( void )
{
say("Hmmm, I wonder where this hole leads?", 1);
}

void touch( void )
{
int &rand = random(4, 1);
if (&rand == 2)
{
//Take Dink to treasure room
sp_touch_damage(&current_sprite, 0);
script_attach(1000);
fade_down();
wait(200);
&player_map = 224;
sp_x(1, 300);
sp_y(1, 220);
load_screen();
draw_screen();
draw_status();
fade_up();
say("Looks like I choose the right hole!", 1);
&boat = 10;
unfreeze(1);
kill_this_task();
else
{
//Kill Dink off
sp_touch_damage(&current_sprite, 0);
freeze(1);
script_attach(1000);
playsound(69, 11025, 0, 0, 0);
fade_down();
wait(4000);
&life = 0;
wait(200);
&player_map = 416;
sp_x(1, 315);
sp_y(1, 220);
load_screen();
draw_screen();
draw_status();
wait(200);
playsound(53, 22050, 0, 0, 0);
fade_up();
unfreeze(1);
kill_this_task();
return;
}

}