Reply to Re: Button Global
If you don't have an account, just leave the password field blank.
September 17th 2004, 05:26 PM

Ric


That's the whole learning to write .c scripts idea. There is a lot to it.
Like the story variable...
void main ()
{
if (&story == 1)
{
say_stop("the story variable is &story",1);
}
&story += 1;
}
If this script is attached to a sprite, then as soon as the sprite appears it will check to see if the value of &story is currently set at 1. If it is, Dink will say 'the story variable is 1'.
Then the next line will add 1, so &story will then be 2.
There is much to learn, but it can do so much!
Like the story variable...
void main ()
{
if (&story == 1)
{
say_stop("the story variable is &story",1);
}
&story += 1;
}
If this script is attached to a sprite, then as soon as the sprite appears it will check to see if the value of &story is currently set at 1. If it is, Dink will say 'the story variable is 1'.
Then the next line will add 1, so &story will then be 2.
There is much to learn, but it can do so much!