: I sent It, maybe I try again......
or I'll try longhand.
void main (void)
void talk (void)
{
freeze (¤t_sprite);
Freeze (1);
int &chat
&chat= random (3,1);
if (&chat == 1)
say_stop("'4hello, may I help you?",¤t_sprite);
if (&chat == 2)
say_stop("'4Hi, do you need our services?",¤t_sprite);
if (&chat == 3)
say-stop("'4What can we do for you?",¤t_sprite);
wait (250);
}
{
choice_start()
"ask whats for sale"
"ask about the bringer of light"
"leave"
choice_end()
if (&result=1)
{
say_stop("what do you sell here?",1);
wait(250);
say_stop("'4A little of this and that.",¤t_sprite);
}
if (&result=2)
{
say_stop("what can you tell me about the Bringer of light?",1);
wait (250);
say_stop("'4Nothing! leave us now...",¤t_sprite);
}
if (&result=3)
{
say_stop("nothing for now thanks.",1);
}
unfreeze (¤t_sprite);
unfreeze (1);
}
//when run the rand. intro is ok, choices run ok, but then script skips to end ( and unfreezes)
WOW. Try this:
: if (&result == 1)
: {
: say_stop("what do you sell here?",1);
: wait(250);
: say_stop("'4A little of this and that.",¤t_sprite);
: }
: if (&result == 2)
: {
: say_stop("what can you tell me about the Bringer of light?",1);
: wait (250);
: say_stop("'4Nothing! leave us now...",¤t_sprite);
: }
: if (&result == 3)
: {
: say_stop("nothing for now thanks.",1);
: }
: unfreeze (¤t_sprite);
: unfreeze (1);
: }
: //when run the rand. intro is ok, choices run ok, but then script skips to end ( and unfreezes)
:
The rest ain't great either, but that's probably because the forum does something with the coded or something.
You need "==" with a space in any "test equality" statement
: WOW. Try this:
: : if (&result == 1)
: : {
: : say_stop("what do you sell here?",1);
: : wait(250);
: : say_stop("'4A little of this and that.",¤t_sprite);
: : }
: : if (&result == 2)
: : {
: : say_stop("what can you tell me about the Bringer of light?",1);
: : wait (250);
: : say_stop("'4Nothing! leave us now...",¤t_sprite);
: : }
: : if (&result == 3)
: : {
: : say_stop("nothing for now thanks.",1);
: : }
: : unfreeze (¤t_sprite);
: : unfreeze (1);
: : }
: : //when run the rand. intro is ok, choices run ok, but then script skips to end ( and unfreezes)
: :
: The rest ain't great either, but that's probably because the forum does something with the coded or something.
: You need "==" with a space in any "test equality" statement
Thanks ..................Ric