Reply to start1 help problem
If you don't have an account, just leave the password field blank.
I modified the start1.c file to suit my DMOD, but there is a tiny little bug keeping it from perfection. The script does function, just not the way I intended it to. When the choice menu pops up, you have to make two choices (not intended) the final one being the choice that functions, so basically, you can select from the choicebox twice. I tried to make that understandable, so hopefully someone can help
Here is the buggy script.
//start button
void buttonon( void )
{
sp_pframe(¤t_sprite, 2);
Playsound(20,22050,0,0,0);
}
void buttonoff( void )
{
sp_pframe(¤t_sprite, 1);
Playsound(21,22050,0,0,0);
}
void click ( void )
{
sp_brain(1, 1);
choice_start();
set_y 240
set_title_color 15
title_start();
Do not skip intro unless you have already seen.
title_end();
"Play With Intro"
"Skip Intro"
"Go Back"
choice_end();
if (&result != 3)
{
Say_xy("`%Please wait. (Creating new game)", 0, 394);
wait(1);
//"turns game on"
set_mode(2);
reset_timer();
fill_screen(0);
//put dink in this room
&player_map = 768;
freeze(1);
//make dink
dink_can_walk_off_screen(1);
sp_x(1, 999);
sp_y(1, 999);
sp_base_walk(1, 70);
sp_base_attack(1, 100);
sp_dir(1, 6);
sp_brain(1, 1);
sp_que(1, 0);
sp_noclip(1, 0);
//dinks weapons
add_item("item-fst",438, 1);
&cur_weapon = 1;
arm_weapon();
if (&result == 1)
{
spawn("intro");
}
if (&result == 2)
{
spawn("s2-begin");
}
kill_this_task();
}
sp_seq(1, 0);
sp_brain(1, 13);
sp_pseq(1,10);
sp_pframe(1,8);
sp_que(1,20000);
sp_noclip(1, 1);
}
//start button
void buttonon( void )
{
sp_pframe(¤t_sprite, 2);
Playsound(20,22050,0,0,0);
}
void buttonoff( void )
{
sp_pframe(¤t_sprite, 1);
Playsound(21,22050,0,0,0);
}
void click ( void )
{
sp_brain(1, 1);
choice_start();
set_y 240
set_title_color 15
title_start();
Do not skip intro unless you have already seen.
title_end();
"Play With Intro"
"Skip Intro"
"Go Back"
choice_end();
if (&result != 3)
{
Say_xy("`%Please wait. (Creating new game)", 0, 394);
wait(1);
//"turns game on"
set_mode(2);
reset_timer();
fill_screen(0);
//put dink in this room
&player_map = 768;
freeze(1);
//make dink
dink_can_walk_off_screen(1);
sp_x(1, 999);
sp_y(1, 999);
sp_base_walk(1, 70);
sp_base_attack(1, 100);
sp_dir(1, 6);
sp_brain(1, 1);
sp_que(1, 0);
sp_noclip(1, 0);
//dinks weapons
add_item("item-fst",438, 1);
&cur_weapon = 1;
arm_weapon();
if (&result == 1)
{
spawn("intro");
}
if (&result == 2)
{
spawn("s2-begin");
}
kill_this_task();
}
sp_seq(1, 0);
sp_brain(1, 13);
sp_pseq(1,10);
sp_pframe(1,8);
sp_que(1,20000);
sp_noclip(1, 1);
}






