Reply to Help with script please
If you don't have an account, just leave the password field blank.
I need help with a script.After Dink pays this guy, the guy
is supposed to walk off the screen but it just freezes up.
After he walks off, it should also force vision to '0'.
And then DInk should unfreeze.(I have a vision sctipt on the base
of the screen as well)
Here is my script...
void main( void )
{
void hit( void )
{
say("`3Oww, bug off jerk!", ¤t_sprite);
}
void talk( void )
{
freeze(1);
choice_start();
set_y 240
set_title_color 9
title_start();
"A tall man with brown hair and a sly grin stands here"
title_end();
"Pay the toll"
"Argue"
"Leave"
choice_end();
if (&result == 1)
{
if (&gold < 100)
{
wait(500);
say_stop("`3You don't have enough gold!", ¤t_sprite);
unfreeze(1);
return;
}
if (&gold > 99)
{
wait(500);
say_stop("`3Thanks. See ya.", ¤t_sprite);
&gold -= 100;
move_stop(¤t_sprite, 4, -50, 1);
&story = 4;
unfreeze(1);
force_vision(0);
kill_this_task();
return;
}
}
if (&result == 2)
{
wait(500);
say_stop("How come I have to pay?",1);
wait(500);
say_stop("`3Just doing my job, kid.", ¤t_sprite);
wait(500);
say_stop("Well, 100 gold is a little high!", 1);
wait(500);
say_stop("`3Then leave!", ¤t_sprite);
wait(500);
say_stop("Jerk!", 1);
unfreeze(1);
return;
}
}
}
is supposed to walk off the screen but it just freezes up.
After he walks off, it should also force vision to '0'.
And then DInk should unfreeze.(I have a vision sctipt on the base
of the screen as well)
Here is my script...
void main( void )
{
void hit( void )
{
say("`3Oww, bug off jerk!", ¤t_sprite);
}
void talk( void )
{
freeze(1);
choice_start();
set_y 240
set_title_color 9
title_start();
"A tall man with brown hair and a sly grin stands here"
title_end();
"Pay the toll"
"Argue"
"Leave"
choice_end();
if (&result == 1)
{
if (&gold < 100)
{
wait(500);
say_stop("`3You don't have enough gold!", ¤t_sprite);
unfreeze(1);
return;
}
if (&gold > 99)
{
wait(500);
say_stop("`3Thanks. See ya.", ¤t_sprite);
&gold -= 100;
move_stop(¤t_sprite, 4, -50, 1);
&story = 4;
unfreeze(1);
force_vision(0);
kill_this_task();
return;
}
}
if (&result == 2)
{
wait(500);
say_stop("How come I have to pay?",1);
wait(500);
say_stop("`3Just doing my job, kid.", ¤t_sprite);
wait(500);
say_stop("Well, 100 gold is a little high!", 1);
wait(500);
say_stop("`3Then leave!", ¤t_sprite);
wait(500);
say_stop("Jerk!", 1);
unfreeze(1);
return;
}
}
}






