The Dink Network

Visions

October 28th 2007, 10:25 AM
pillbug.gif
pillbug
Peasant He/Him United States
Love! True love! 
I'm working on a new (better) Dmod, and I'v done visions in the past, but this has never happened. Whenever I walk onto the screen with the visions, it freezes Dink, and I either have to go back to a weird looking desktop and use the Task Manager, or restart my computer. This is the script:

void main(void)
{
if(&story == 0)
{
&vision = 1;
}
}

if(&story == 10)
{
&vision = 0;
}

I used that and did the vision on the screen's property page.

P.S
The visions in use thing on WinDinkEdit isn't working, either. It just shows vision 0.

October 28th 2007, 10:59 AM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
It could be that you have the brackets little messed up. You don't want to close void main before the script is done... Move down 1 of the closing brackets to the end of the script.

void main(void)
{
if(&story == 0)
{
&vision = 1;
}
} <--- This one

I'm kinda tierd so I might have forgot something else, but try that. It may solve your problem
October 28th 2007, 10:59 AM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
brackets problem, pls write the script this way:

void main(void)
{
if(&story == 0)
{
&vision = 1;
}

if(&story == 10)
{
&vision = 0;
}

}
October 28th 2007, 01:05 PM
pillbug.gif
pillbug
Peasant He/Him United States
Love! True love! 


Thanks! That fixed it!
October 28th 2007, 01:59 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Braces, not brackets.
October 28th 2007, 02:06 PM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
Ahem! Wikipedia on brackets:

There are four main types of brackets:
* parentheses or round brackets: ( )
* box brackets or square brackets: [ ]
* curly brackets or braces: { }
* angle brackets or chevrons: 〈 〉
October 28th 2007, 03:57 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Yes, I looked it up on Wikipedia. That's why I said it.
October 28th 2007, 05:18 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
Me goblin. Me spek bad englash.
October 28th 2007, 05:49 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
It's one of those things everyone confuses, anyway. Don't mind me...
October 29th 2007, 01:18 AM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
It clearly also says brackets, though.