deanster's Profile
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(¤t_sprite, -1);
sp_nohit(¤t_sprite, 1);
sp_sound(64, 22050, 0, ¤t_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(¤t_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(¤t_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;
}
}
whats going wrong here
//script for hole of death
void main( void )
{
sp_touch_damage(¤t_sprite, -1);
sp_nohit(¤t_sprite, 1);
sp_sound(64, 22050, 0, ¤t_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(¤t_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(¤t_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;
}
}
deanster has written 3 reviews
| Title | File | Type | Score | Date |
|---|---|---|---|---|
| awesome | Ultimate Cheat | Normal | 7.9 | December 21st, 2008 |
| win dinkedit is better | Mapnuke for Windows | Normal | 6.1 | October 19th, 2008 |
| the greatest editor ever | WinDinkEdit Plus | Normal | 8.9 | May 19th, 2008 |

7.9
6.1




