changing vision
I have recently been trying to create my own Dmod but i am haveing trouble changing the vision, here is a copy of the script i'm using.
void main(void)
{
if(&story == 1)
{
&vision = 1;
move_stop(1, 2, 135, 1);
wait(200);
say_stop("blahblahblahblah", 1);
wait(200);
move_stop(1, 6, 509, 1);
wait(200);
say_stop("blahblahblahblah", 1);
sp_dir(1, 2);
wait(200);
unfreeze(1);
&story = 2;
}
}
void main(void)
{
if(&story == 1)
{
&vision = 1;
move_stop(1, 2, 135, 1);
wait(200);
say_stop("blahblahblahblah", 1);
wait(200);
move_stop(1, 6, 509, 1);
wait(200);
say_stop("blahblahblahblah", 1);
sp_dir(1, 2);
wait(200);
unfreeze(1);
&story = 2;
}
}
You can only change the vision in a script attached to the screen, called a base script.