Dr. Ralph Engelschall has published a series of scripts on GitHub that are well documented and provide an extended introduction to the scripting language used in vMix. Can be found here:
Engeschall Scripts on GitHub