Reply to Re: Vision and variables
If you don't have an account, just leave the password field blank.
I'm pretty sure 12 never equals 4.
Maybe in your math framework it doesn't, but this is DinkC we're talking about. Anything can happen.
Visions are picky!
Not really, but you should realize what they do. When a screen loads, this is what happens:
First the screen's script is run. It can change the value of the &vision variable however it likes. It can change it multiple times as well, and there is no restriction on how it is changed; nothing is done with it yet. If the script does an (implicit or explicit) wait, it has terminated for the purpose of this discussion; it will continue later, but that is not relevant here.
Then the sprites are loaded; sprites which don't match the then current value of &vision will be ignored.
After this, the &vision variable is not used anymore.
This means that if you want to do something with a vision, you must do it in the screen script before any wait. Any other place is allowed, but pointless. There is a DinkC function whose name suggests that it was meant for changing visions without reloading the screen (I don't remember what it's called), but that doesn't work.
Maybe in your math framework it doesn't, but this is DinkC we're talking about. Anything can happen.

Visions are picky!
Not really, but you should realize what they do. When a screen loads, this is what happens:
First the screen's script is run. It can change the value of the &vision variable however it likes. It can change it multiple times as well, and there is no restriction on how it is changed; nothing is done with it yet. If the script does an (implicit or explicit) wait, it has terminated for the purpose of this discussion; it will continue later, but that is not relevant here.
Then the sprites are loaded; sprites which don't match the then current value of &vision will be ignored.
After this, the &vision variable is not used anymore.
This means that if you want to do something with a vision, you must do it in the screen script before any wait. Any other place is allowed, but pointless. There is a DinkC function whose name suggests that it was meant for changing visions without reloading the screen (I don't remember what it's called), but that doesn't work.