Using scripts with variables and functions that have the same name on the same screen

Using scripts with variables and functions that have the same name on the same screen

  

Hi,

Does anyone know how to prevent scripts with variables and functions that have the same name from conflicting when being used on the same screen without renaming all of the variables and functions? I have around 12 scripts and each of them has a ton of variables and functions.

Thanks in advance.

Regards,

Louie

You need make your scripts function calls and declare all your variables/functions inside those functions instead of on the global scope.