The Dink Network

Re: CHANGEING VISIONS WONT WORK!!!! ~.~

June 7th 2008, 06:18 PM
duckdie.gif
legendg
Peasant He/Him Australia
Why Do I Need A Tagline? 
Can any one give me a straight script to change visions or tell me what the problem might be? >.<
June 7th 2008, 08:24 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
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
anon.gif
"...&qu
Ghost They/Them
 
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.
June 13th 2008, 04:48 AM
anon.gif
"...&qu
Ghost They/Them
 
Err, but obviously make the changes in the duplicated screen that you want to occur...
June 13th 2008, 05:37 AM
fairy.gif
GlennGlenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
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;
)
June 13th 2008, 07:44 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
You need to attach the script to the screen itself. I would go into more detail, but I'm kinda pressed for time...

June 13th 2008, 07:45 AM
spike.gif
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.