Re: CHANGEING VISIONS WONT WORK!!!! ~.~
Can any one give me a straight script to change visions or tell me what the problem might be? >.<
To change visions you have to use &vision = x; (x being the vision you want to be shown.) There is another rule though. It must be done on a script attached to the screen.
June 13th 2008, 04:45 AM

"...&qu


I've always had trouble with visions... I believe that fully learning DinkC takes time away from making d-mods, so I suggest that you blow off the whole vision thing. Here's what I do:
Duplicate the screen we'll be vision-ing today, then just have the original screen transport Dink to the duplicated screen, retaining his x and y position.
Duplicate the screen we'll be vision-ing today, then just have the original screen transport Dink to the duplicated screen, retaining his x and y position.
June 13th 2008, 04:48 AM

"...&qu


Err, but obviously make the changes in the duplicated screen that you want to occur...
To change the vision you do it like this:
void main(void) (
&vision = 1;
}
You could also make the vision change based upon the global story variable.
if ($story == 3) (
&vision = 1;
) else (
&vision = 0;
)
void main(void) (
&vision = 1;
}
You could also make the vision change based upon the global story variable.
if ($story == 3) (
&vision = 1;
) else (
&vision = 0;
)
You need to attach the script to the screen itself. I would go into more detail, but I'm kinda pressed for time...
Yeah, there's nothing complicated about changing visions, your examples are completely ducking broken though. =)
It don't remember it really having been highlighted anywhere, even Rabidwolf mentioned is as some kind of a secondary detail, but the important thing to remember is that VISIONS MUST BE CHANGED IN THE BASE SCRIPT OF THE SCREEN. Assigning such a script is done by pressing B in the editor.
Also, it must be changed at the beginning of the script. Having a wait();, say_stop(); or some other wait command before changing the vision won't work.
It don't remember it really having been highlighted anywhere, even Rabidwolf mentioned is as some kind of a secondary detail, but the important thing to remember is that VISIONS MUST BE CHANGED IN THE BASE SCRIPT OF THE SCREEN. Assigning such a script is done by pressing B in the editor.
Also, it must be changed at the beginning of the script. Having a wait();, say_stop(); or some other wait command before changing the vision won't work.