min lilla skript
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.
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.
if (&vision == 4)
{
sp_seq(&flow, 195);
}
this will work. i think
{
sp_seq(&flow, 195);
}
this will work. i think
Glenn; I tried adding brackets but it didn't help.
oh i tought he main this brackets if (&vision == 1), but i tried to help!
but i tried to help!
That's the spirit
That's the spirit
yes, but what will he say to his wife? "i tried" isn't an excuse for shooting blanks, you know.
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
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
*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.
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.
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);
}
}
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);
}
}