The Dink Network

min lilla skript

July 12th 2004, 11:23 PM
spike.gif
if (&vision == 4)
sp_seq(&flow, 195);

why does that not work? or rather, why does it always work? I tried adding brackets but it didn't help.
July 13th 2004, 03:34 AM
fairy.gif
glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
if (&vision == 4)
{
sp_seq(&flow, 195);
}
this will work. i think
July 13th 2004, 03:36 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Glenn; I tried adding brackets but it didn't help.
July 13th 2004, 03:37 AM
fairy.gif
glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
oh i tought he main this brackets if (&vision == 1), but i tried to help!
July 13th 2004, 05:32 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
but i tried to help!

That's the spirit
July 13th 2004, 06:20 AM
farmer.gif
yes, but what will he say to his wife? "i tried" isn't an excuse for shooting blanks, you know.
July 13th 2004, 07:15 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Hmm, the script itself looks okay, so the problem should be somewhere else...

possibility 1: The vision is always 4. You should check the screens base script. Maybe there's another if-statement that's always true and changes the vision to 4.

possibility 2: &flow already has sequence 195. Note that if &flow hasn't got brain 6, the animation should only be played once, so if it keeps playing, and it hasn't got brain 6, there's something else (or this check must be in a loop, of course...)

possibility 3: I give up
July 13th 2004, 04:14 PM
spike.gif
*sigh* it's possibility 3. I got that script to work by playing around with
if (&story < blahblahblah)
if (&story > blahblahblah)
if (&story != blahblahblah)
commands, but now I like visions even less than I did before... I've never quite got it why in the heck those things only work in the base scripts of screens. It's just stupid.
July 13th 2004, 04:40 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Did you do a wait(1) in the base script? When a base script is first run, it is ran before any sprites are placed on the screen. This is why you can only change the vision in the base script; if you change it anywhere else the sprites have already been placed on the screen, and changing the vision affects nothing.

I usually do something like this for a base script:

void main(void)
{
//Change visions
if (&story < 5)
{
&vision = 1;
}

//Wait for the sprites to be drawn
wait(1);

//Do other stuff
if (&vision == 1)
{
sp_seq(&flow, 156);
}
}