posted 11-26- 06:00 AM CT (US)
Your example should be:void talk(void)
{
&character = 0;
say_stop("whatever",1);
&character = 1;
}
For the intro script, do something like this:
void main(void)
{
if (&story > 0)
return;
&story = 1;
//add the intro stuff here
}
If you have lots of run-only scripts, you can use Paul's mad Dink trick (this may be confusing...):
void main(void)
{
int &run = editor_seq(2,-1);
if (&run == 1)
return;
editor_seq(2,1);
// enter stuff here
}
The advantages of the second way is that you don't need to have a global variable. The disadvantages is that you have no way of knowing whether or not that script has been run in another room.