Function VirtualReal(varname: string, [createval: Real=0.0], [group:Integer=0]) : Real
Returns the value of the VirtualReal with name varname.
(For how to use groups, see the advanced topic VirtualVariable Groups)
If a VirtualVariable doesn't exist with that name, a new one is created (in the specified group) with the value of createval. This means that you can add the VirtualVariables to your program with sane default values so that you don't have to define so many settings in script files, but you leave the option there if the settings are needed. This might be useful if you pack all media into one exe but the exe saves its settings after it is run.
Here is an example of a settings file:
Here is how it would work in a program:
VirtualReals can be created either by calling VirtualReal on a variable that doesn't exist, using the function ReadSettings or the function MapVirtualReal.
This demonstrates use of the second parameter: